diff --git a/.github/workflows/actions/test-and-build/action.yaml b/.github/workflows/actions/test-and-build/action.yaml index f69e43675..2b9438281 100644 --- a/.github/workflows/actions/test-and-build/action.yaml +++ b/.github/workflows/actions/test-and-build/action.yaml @@ -76,7 +76,7 @@ runs: - name: Build .vsix env: - NODE_OPTIONS: "--require ./scripts/no-npm-list-fail.js" + NODE_OPTIONS: "--require ./scripts/no-npm-list-fail.js --max_old_space_size=4096" # NOTE: --githubBranch is "The GitHub branch used to infer relative links in README.md." run: | npx vsce package --githubBranch main diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/draft-release.yaml index d7e3ea565..1d4f8b5c8 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/draft-release.yaml @@ -32,7 +32,7 @@ jobs: - name: Setup Node.js Environment uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.16.0 - name: Determine Next Version shell: bash diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index 051b5f6e2..787c02f3c 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -12,7 +12,7 @@ jobs: - name: Setup Node.js Environment uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.16.0 - name: Install npm run: npm install -g npm@8.19.4 diff --git a/.github/workflows/test-and-build.yaml b/.github/workflows/test-and-build.yaml index e7fd88c8c..a0e1b8c9f 100644 --- a/.github/workflows/test-and-build.yaml +++ b/.github/workflows/test-and-build.yaml @@ -30,7 +30,7 @@ jobs: - name: Setup Node.js Environment uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.16.0 - name: Run tests and build uses: ./.github/workflows/actions/test-and-build diff --git a/webpack.config.js b/webpack.config.js index 4356d5d10..98b418c8c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -201,6 +201,12 @@ module.exports = (env, argv) => { process: 'process/browser', }), ], + watchOptions: { + // For some systems, watching many files can result in a lot of CPU or memory usage + // https://webpack.js.org/configuration/watch/#watchoptionsignored + // don't use this pattern, if you have a monorepo with linked packages. + ignored: /node_modules/, + }, }); return [