Skip to content

Commit f4ea5df

Browse files
committed
Pass compiling and sort of linting
(node:88768) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/johan/src/git-commit-message-plus/eslint.config.js?mtime=1756830268485 is not specified and it doesn't parse as CommonJS. Reparsing as ES module because module syntax was detected. This incurs a performance overhead. To eliminate this warning, add "type": "module" to /Users/johan/src/git-commit-message-plus/package.json. (Use `node --trace-warnings ...` to show where the warning was created)
1 parent 472cfbb commit f4ea5df

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
"lint": "eslint src --ext ts",
3030
"package": "webpack --mode production --devtool hidden-source-map",
3131
"publish": "vsce publish",
32-
"pretest": "npm run compile && npm run lint",
33-
"test": "vscode-tmgrammar-test -g tests/support/diff.tmLanguage.json tests/unit/*.test && node ./out/test/runTest.js",
32+
"compile-tests": "tsc -p . --outDir out",
33+
"pretest": "npm run compile-tests && npm run lint",
34+
"test": "vscode-tmgrammar-test -g tests/support/diff.tmLanguage.json tests/unit/*.test && vscode-test",
3435
"vscode:prepublish": "npm run package",
3536
"watch": "webpack --mode development --watch",
3637
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",

webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ const config = {
3535
// Webpack 5 no longer polyfills Node.js core modules automatically.
3636
// see https://webpack.js.org/configuration/resolve/#resolvefallback
3737
// for the list of Node.js core module polyfills.
38+
path: false,
39+
child_process: false,
40+
util: false
41+
// add other Node.js modules as needed
3842
}
3943
},
4044
module: {

0 commit comments

Comments
 (0)