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',
main: 'index.ts',
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: [
'math',

View File

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