mirror of
https://github.com/appy-one/acebase.git
synced 2026-06-30 06:02:02 -06:00
Merge pull request #222 from appy-one/fix/tsc-node16-module-resolution
fix tsc node16 module resolution
This commit is contained in:
commit
39bd07ac4d
2 changed files with 6 additions and 9 deletions
|
|
@ -20,7 +20,7 @@ JSON
|
|||
|
||||
# Write typings to support Node16 module resolution
|
||||
cat >dist/cjs/index.d.ts <<TYPESCRIPT
|
||||
export * from '../types';
|
||||
export * from '../types/index.js';
|
||||
TYPESCRIPT
|
||||
|
||||
# Create ESM package.json
|
||||
|
|
@ -43,7 +43,7 @@ JSON
|
|||
|
||||
# Write typings to support Node16 module resolution
|
||||
cat >dist/esm/index.d.ts <<TYPESCRIPT
|
||||
export * from '../types/index.d.ts';
|
||||
export * from '../types/index.js';
|
||||
TYPESCRIPT
|
||||
|
||||
# Write example file for runkit
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"lib": ["esnext","dom"],
|
||||
"listEmittedFiles": true,
|
||||
"listEmittedFiles": false,
|
||||
"noImplicitAny": true,
|
||||
"sourceMap": true,
|
||||
"module": "es2020",
|
||||
"rootDir": "./src",
|
||||
"outDir": "./dist/esm",
|
||||
"moduleResolution": "node",
|
||||
"target": "es2020",
|
||||
|
|
@ -13,10 +14,6 @@
|
|||
"declarationMap": true,
|
||||
"declarationDir": "./dist/types",
|
||||
"resolveJsonModule": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
"skipLibCheck": false
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue