update tsconfig
This commit is contained in:
parent
f090e55642
commit
b55986b16b
|
@ -20,14 +20,14 @@
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"main": "lib/cjs/index.js",
|
"main": "lib/cjs/index.js",
|
||||||
"module": "lib/esm/index.mjs",
|
"module": "lib/esm/index.mjs",
|
||||||
"types": "lib/esm/index.d.ts",
|
"types": "lib/types/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
"import": "./lib/esm/index.mjs",
|
"import": "./lib/esm/index.mjs",
|
||||||
"require": "./lib/cjs/index.js"
|
"require": "./lib/cjs/index.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "shx rm -rf lib",
|
"clean": "shx rm -rf lib",
|
||||||
"build": "yarn clean && tsc -p tsconfig.json; tsc-esm -p tsconfig.json && tsc -p tsconfig-cjs.json",
|
"build": "yarn clean && tsc -p tsconfig.json; tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
|
||||||
"postbuild": "echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json && echo '{\"type\":\"module\"}' > lib/esm/package.json",
|
"postbuild": "echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json && echo '{\"type\":\"module\"}' > lib/esm/package.json",
|
||||||
"deploy": "yarn docs && gh-pages --dist docs --dotfiles",
|
"deploy": "yarn docs && gh-pages --dist docs --dotfiles",
|
||||||
"example": "node --experimental-specifier-resolution=node --loader ts-node/esm examples/create_mint_and_transfer_tokens.ts",
|
"example": "node --experimental-specifier-resolution=node --loader ts-node/esm examples/create_mint_and_transfer_tokens.ts",
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
"include": ["src", "types"],
|
"include": ["src", "types"],
|
||||||
"exclude": ["node_modules"],
|
"exclude": ["node_modules"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "esnext",
|
|
||||||
"target": "es2019",
|
"target": "es2019",
|
||||||
|
"module": "esnext",
|
||||||
"outDir": "lib/esm",
|
"outDir": "lib/esm",
|
||||||
"declarationDir": "lib/types",
|
"declarationDir": "lib/types",
|
||||||
"noEmit": false,
|
"noEmit": false,
|
||||||
|
@ -12,11 +12,12 @@
|
||||||
"noEmitOnError": true,
|
"noEmitOnError": true,
|
||||||
"stripInternal": true,
|
"stripInternal": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
|
"jsx": "react",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"typeRoots": ["node_modules/@types", "types"]
|
"typeRoots": ["node_modules/@types"]
|
||||||
},
|
},
|
||||||
"typedocOptions": {
|
"typedocOptions": {
|
||||||
"entryPoints": "src/index.ts",
|
"entryPoints": "src/index.ts",
|
||||||
|
|
Loading…
Reference in New Issue