update tsconfig

This commit is contained in:
Jordan Sexton 2022-01-22 00:24:56 -06:00
parent f090e55642
commit b55986b16b
3 changed files with 5 additions and 4 deletions

View File

@ -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",

View File

@ -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",