diff --git a/tsconfig.json b/tsconfig.json index b910567b..f9dceb82 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,17 +11,13 @@ "pretty": true, "sourceMap": true, "baseUrl": "./src", - /* Additional Checks */ "noUnusedLocals": true, "noUnusedParameters": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, - /* Module Resolution Options */ "moduleResolution": "node", - "esModuleInterop": true, "allowSyntheticDefaultImports": true, "resolveJsonModule": true, "allowJs": true, - }, - "exclude": ["test", "release/build", "release/app/dist", ".erb/dll"] + } } diff --git a/tsconfig.webpack.json b/tsconfig.webpack.json index 62f1d8e9..7d4e4902 100644 --- a/tsconfig.webpack.json +++ b/tsconfig.webpack.json @@ -10,7 +10,16 @@ "jsx": "react", "typeRoots": ["./node_modules/@types", "./typings"], "importHelpers": true, - "allowSyntheticDefaultImports": true + "allowSyntheticDefaultImports": true, + "lib": ["dom", "esnext"], + "declaration": true, + "declarationMap": true, + "pretty": true, + "sourceMap": true, + "baseUrl": "./src", + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "allowJs": true }, "include": [ "lib/**/*.ts", diff --git a/typings/sudo-prompt/index.d.ts b/typings/sudo-prompt/index.d.ts index 2bafb92b..5ef9921e 100644 --- a/typings/sudo-prompt/index.d.ts +++ b/typings/sudo-prompt/index.d.ts @@ -1 +1 @@ -declare module 'sudo-prompt'; +declare module '@balena/sudo-prompt'; diff --git a/webpack.config.ts b/webpack.config.ts index 5b3f188f..d26d27b9 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -14,17 +14,17 @@ * limitations under the License. */ -import CopyPlugin from 'copy-webpack-plugin'; +import * as CopyPlugin from 'copy-webpack-plugin'; import { readdirSync } from 'fs'; import * as _ from 'lodash'; import * as os from 'os'; import outdent from 'outdent'; import * as path from 'path'; import { env } from 'process'; -import SimpleProgressWebpackPlugin from 'simple-progress-webpack-plugin'; -import TerserPlugin from 'terser-webpack-plugin'; +import * as SimpleProgressWebpackPlugin from 'simple-progress-webpack-plugin'; +import * as TerserPlugin from 'terser-webpack-plugin'; import { BannerPlugin, NormalModuleReplacementPlugin } from 'webpack'; -import PnpWebpackPlugin from 'pnp-webpack-plugin'; +import * as PnpWebpackPlugin from 'pnp-webpack-plugin'; import * as tsconfigRaw from './tsconfig.webpack.json';