let TypeScript output ES modules

This commit is contained in:
Jos de Jong 2023-09-01 18:43:03 +02:00
parent d50c1a9ccf
commit 3967f5ce2b
2 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,7 @@
description: 'A hopeful final typescipt-pragmatic mathjs proof-of-concept', description: 'A hopeful final typescipt-pragmatic mathjs proof-of-concept',
main: 'index.ts', main: 'index.ts',
scripts: { scripts: {
'build-and-run': 'ttsc -b && node build/index.js', 'build-and-run': 'ttsc -b && echo {"type":"module"} > build/package.json && node build/index.js',
}, },
keywords: [ keywords: [
'math', 'math',

View File

@ -7,7 +7,6 @@
"allowJs": false, "allowJs": false,
"noImplicitAny": false, "noImplicitAny": false,
"moduleResolution": "Node", "moduleResolution": "Node",
"module": "commonjs",
"plugins": [{ "plugins": [{
"transform": "./src/plugins/typeInferPlugin.ts", "transform": "./src/plugins/typeInferPlugin.ts",
"type": "raw" "type": "raw"