target esnext with esm build, es6 with cjs
This commit is contained in:
parent
1844efe298
commit
7ac61bc957
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS",
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"outDir": "lib/cjs"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue