update tsconfig
This commit is contained in:
parent
f090e55642
commit
b55986b16b
|
@ -20,14 +20,14 @@
|
|||
"sideEffects": false,
|
||||
"main": "lib/cjs/index.js",
|
||||
"module": "lib/esm/index.mjs",
|
||||
"types": "lib/esm/index.d.ts",
|
||||
"types": "lib/types/index.d.ts",
|
||||
"exports": {
|
||||
"import": "./lib/esm/index.mjs",
|
||||
"require": "./lib/cjs/index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"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",
|
||||
"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",
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
"include": ["src", "types"],
|
||||
"exclude": ["node_modules"],
|
||||
"compilerOptions": {
|
||||
"module": "esnext",
|
||||
"target": "es2019",
|
||||
"module": "esnext",
|
||||
"outDir": "lib/esm",
|
||||
"declarationDir": "lib/types",
|
||||
"noEmit": false,
|
||||
|
@ -12,11 +12,12 @@
|
|||
"noEmitOnError": true,
|
||||
"stripInternal": true,
|
||||
"moduleResolution": "node",
|
||||
"jsx": "react",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"typeRoots": ["node_modules/@types", "types"]
|
||||
"typeRoots": ["node_modules/@types"]
|
||||
},
|
||||
"typedocOptions": {
|
||||
"entryPoints": "src/index.ts",
|
||||
|
|
Loading…
Reference in New Issue