From b55986b16bfdb3294a7f4cbcdb1644e35d6933c7 Mon Sep 17 00:00:00 2001 From: Jordan Sexton Date: Sat, 22 Jan 2022 00:24:56 -0600 Subject: [PATCH] update tsconfig --- token/ts/package.json | 4 ++-- token/ts/{tsconfig-cjs.json => tsconfig.cjs.json} | 0 token/ts/tsconfig.json | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) rename token/ts/{tsconfig-cjs.json => tsconfig.cjs.json} (100%) diff --git a/token/ts/package.json b/token/ts/package.json index 9f584d1f..81251d0d 100644 --- a/token/ts/package.json +++ b/token/ts/package.json @@ -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", diff --git a/token/ts/tsconfig-cjs.json b/token/ts/tsconfig.cjs.json similarity index 100% rename from token/ts/tsconfig-cjs.json rename to token/ts/tsconfig.cjs.json diff --git a/token/ts/tsconfig.json b/token/ts/tsconfig.json index 683f2f98..f06fe4da 100644 --- a/token/ts/tsconfig.json +++ b/token/ts/tsconfig.json @@ -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",