fix: added support for publishing both cjs and esm

This commit is contained in:
StevanFreeborn
2023-02-04 00:25:08 -06:00
parent 3af7368e44
commit 081fb73eaa
3 changed files with 19 additions and 7 deletions
+11 -4
View File
@@ -1,12 +1,19 @@
{
"compilerOptions": {
"strictNullChecks": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "es2015",
"declaration": true,
"outDir": "./dist",
"declarationDir": "./dist/types",
"esModuleInterop": true
},
"include": ["src/**/*"]
"include": ["src/**/*"],
"ts-node": {
"compilerOptions": {
"module": "commonjs",
"target": "es2015"
},
"moduleTypes": {
"*.ts": "cjs"
}
}
}