let TypeScript output ES modules
This commit is contained in:
parent
d50c1a9ccf
commit
3967f5ce2b
@ -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',
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user