2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-22 18:18:55 +00:00
nativefier/tsconfig.json
davidfant bd077756e8
Emit TS type declarations, and type NativefierOptions (#1016)
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`
2020-08-05 20:26:41 -04:00

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/**/*"
]
}