From 7ac61bc957094a06f08efe5d76a8923e12b67804 Mon Sep 17 00:00:00 2001 From: Jordan Sexton Date: Sun, 26 Dec 2021 12:31:25 -0600 Subject: [PATCH] target esnext with esm build, es6 with cjs --- token/ts/tsconfig-cjs.json | 3 ++- token/ts/tsconfig.json | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/token/ts/tsconfig-cjs.json b/token/ts/tsconfig-cjs.json index a6ccb462..2b27d46c 100644 --- a/token/ts/tsconfig-cjs.json +++ b/token/ts/tsconfig-cjs.json @@ -1,7 +1,8 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "CommonJS", + "module": "commonjs", + "target": "es6", "outDir": "lib/cjs" } } diff --git a/token/ts/tsconfig.json b/token/ts/tsconfig.json index 10ff3024..badcc9a0 100644 --- a/token/ts/tsconfig.json +++ b/token/ts/tsconfig.json @@ -1,4 +1,6 @@ { + "include": ["src", "types"], + "exclude": ["node_modules"], "compilerOptions": { "outDir": "lib/esm", "noEmit": false, @@ -6,8 +8,8 @@ "sourceMap": true, "noEmitOnError": true, "stripInternal": true, - "target": "es6", "module": "esnext", + "target": "esnext", "moduleResolution": "node", "strict": true, "esModuleInterop": true, @@ -15,8 +17,6 @@ "isolatedModules": true, "typeRoots": ["node_modules/@types", "types"] }, - "include": ["src", "types"], - "exclude": ["node_modules"], "typedocOptions": { "entryPoints": "src/index.ts", "out": "docs",