mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-22 18:18:55 +00:00
bd077756e8
This PR adds better Typescript support when using the Node module directly: 1. Generate type declarations when running `tsc` 2. Created the `NativefierOptions` type for the `buildNativefierApp` function instead of using `any`
21 lines
560 B
JSON
21 lines
560 B
JSON
{
|
|
"compilerOptions": {
|
|
"allowJs": false,
|
|
"declaration": true,
|
|
"incremental": true,
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"outDir": "./lib",
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"sourceMap": true,
|
|
// https://stackoverflow.com/questions/48378495/recommended-typescript-config-for-node-8
|
|
// and 'dom' to tell tsc it's okay to use the URL object (which is in Node >= 7)
|
|
"target": "es2017",
|
|
"lib": ["es2017", "dom"]
|
|
},
|
|
"include": [
|
|
"./src/**/*"
|
|
]
|
|
}
|