diff --git a/package.json b/package.json index b6e87747..8c31fde5 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "pack": "mkdir -p pack && npm pack --silent --pack-destination pack >/dev/null && mv \"$(ls -t pack/*.tgz | head -n 1)\" pack/openedx-frontend-base.tgz", "prepack": "npm run build", "test": "jest", - "typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tools/tsconfig.json", + "typecheck": "tsc --noEmit -p tsconfig.typecheck.json && tsc --noEmit -p tools/tsconfig.json", "watch:build": "nodemon --exec 'npm run build'", "watch:docs": "nodemon --watch docs/template --watch README.md --exec npm run docs", "watch:pack": "nodemon --exec 'npm run pack'", diff --git a/tools/webpack/webpack.config.build.ts b/tools/webpack/webpack.config.build.ts index 90aff18b..a02a8a38 100644 --- a/tools/webpack/webpack.config.build.ts +++ b/tools/webpack/webpack.config.build.ts @@ -25,6 +25,7 @@ const resolvedSiteI18nPath = getResolvedSiteI18nPath('src/i18n'); const config: Configuration = { mode: 'production', devtool: 'source-map', + ignoreWarnings: [/Failed to parse source map/], entry: { cssLayerOrder: '@openedx/frontend-base/shell/layer-order.scss', app: '@openedx/frontend-base/shell/site', diff --git a/tsconfig.json b/tsconfig.json index 9abb32fc..f0748c68 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,7 @@ { "extends": "./tools/typescript/tsconfig.json", "compilerOptions": { - "outDir": "dist", - "rootDir": "." + "outDir": "dist" }, "include": [ "runtime/**/*", diff --git a/tsconfig.typecheck.json b/tsconfig.typecheck.json new file mode 100644 index 00000000..45805ff8 --- /dev/null +++ b/tsconfig.typecheck.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": "." + } +}