Skip to content

Commit

Permalink
Merge branch 'master' into dev-1676
Browse files Browse the repository at this point in the history
  • Loading branch information
shunguoy authored Oct 17, 2023
2 parents 5712255 + cd93f79 commit dcec1f3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
3 changes: 3 additions & 0 deletions accessibility-checker-engine/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
const path = require("path");
let webpackConfig = require("./webpack-debug.config");
delete webpackConfig.output;
webpackConfig.module.rules[0].options = {
configFile: "tsconfig-nodeclare.json"
}
webpackConfig.module.rules.push({
test: /\.ts$/,
exclude: [path.resolve(__dirname, "test")],
Expand Down
29 changes: 29 additions & 0 deletions accessibility-checker-engine/tsconfig-nodeclare.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"compilerOptions": {
"declaration": false,
"allowJs": false,
"target": "ES5",
"removeComments": false,
"noEmitOnError": true,
"sourceMap": true,
"moduleResolution": "node",
"alwaysStrict": true,
"experimentalDecorators": true,
"resolveJsonModule": true,
// "module": "commonjs",
"outDir": "dist",
"emitDecoratorMetadata": true,
"lib": [
"dom",
"es7"
]
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules",
"coverage",
".nyc_output"
]
}
2 changes: 1 addition & 1 deletion accessibility-checker-engine/webpack-debug.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
module: {
rules: [{
test: /\.tsx?$/,
use: 'ts-loader',
loader: "ts-loader",
exclude: /node_modules/
}]
},
Expand Down

0 comments on commit dcec1f3

Please sign in to comment.