Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions apps/vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,10 @@
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.10",
"@types/node": "^20.17.7",
"@types/vscode": "^1.70.0",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"@vscode/test-electron": "^2.4.1",
"@types/node": "^16.11.68",
"@types/vscode": "^1.77.0",
"@vscode/test-electron": "^2.5.2",
"esbuild": "^0.24.0",
"eslint": "^9.15.0",
"glob": "^8.1.0",
"mocha": "^10.8.2",
"npm-run-all": "^4.1.5"
Expand Down
22 changes: 1 addition & 21 deletions apps/vscode-extension/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ async function main() {
define: production ? { "process.env.NODE_ENV": '"production"' } : undefined,
minify: production,
sourcemap: !production,
plugins: [
nodeDepsPlugin,
workspacePackagesPlugin,
esbuildProblemMatcherPlugin,
],
plugins: [workspacePackagesPlugin, esbuildProblemMatcherPlugin],
});
if (watch) {
await ctx.watch();
Expand Down Expand Up @@ -55,22 +51,6 @@ const esbuildProblemMatcherPlugin = {
},
};

/**
* resolve "path" to path-browserify, allows for use of the extension in web environments as well
* @type {import('esbuild').Plugin}
*/
const nodeDepsPlugin = {
name: "node-deps",
setup(build) {
build.onResolve({ filter: /^path$/ }, (args) => {
const path = require.resolve("../node_modules/path-browserify", {
paths: [__dirname],
});
return { path };
});
},
};

/**
* Resolve internal workspace packages to their source files so we bundle them in watch/debug.
* This makes changes in packages/* reflected immediately without separate watchers.
Expand Down
13 changes: 12 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@

import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import globals from "globals";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
{
ignores: ["scripts/*", "out/*", "dist/*", "test/*", ".vscode-test/*"],
ignores: [
"apps/*/scripts/*",
"apps/*/dist/*",
"packages/*/scripts/*",
"packages/*/dist/*",
"examples/*",
".vscode-test/*",
],
},
{
languageOptions: {
Expand All @@ -17,6 +25,9 @@ export default tseslint.config(
ecmaVersion: "latest",
sourceType: "module",
},
globals: {
...globals.node,
},
},
plugins: {
"@typescript-eslint": tseslint.plugin,
Expand Down
Loading