Use import for package.json file.

This commit is contained in:
Dillon Kearns 2019-07-23 19:39:43 -07:00
parent 483b850b6e
commit 7f0aeeb234
3 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,5 @@
const { Elm } = require("./Main.elm");
const { version } = require("../../package.json");
import { version } from "../../package.json";
import * as fs from "fs";
import * as glob from "glob";

12
generator/tsconfig.json Normal file
View File

@ -0,0 +1,12 @@
{
"compilerOptions": {
"types": ["node"],
"module": "commonjs",
"target": "es5",
"strict": true,
"sourceMap": false,
"resolveJsonModule": true,
"lib": ["es2015", "es2017.object"]
},
"exclude": ["node_modules", "generated"]
}

View File

@ -5,6 +5,7 @@
"target": "es5",
"strict": true,
"sourceMap": false,
"resolveJsonModule": true,
"lib": ["es2015", "es2017.object"]
},
"exclude": ["node_modules", "generated"]