Merge pull request #222 from appy-one/fix/tsc-node16-module-resolution

fix tsc node16 module resolution
This commit is contained in:
Ewout Stortenbeker 2023-04-30 12:28:19 +02:00 committed by GitHub
commit 39bd07ac4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 9 deletions

View file

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

View file

@ -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
}
}