node-modules-vscode-problems-patch
v1.0.9
Published
Forces TypeScript to ignore `node_modules`. Preventing VSCode from showing errors in the problems view from files in `node_modules`.
Readme
VSCode Problems Patch
This tool adds a comment to the top of every .ts and .d.ts file in your project's ./node_modules directory to prevent VSCode from showing problems from these files.
Note that this will prevent the TypeScript compiler from checking these files for type errors when compiling your project.
Usage
CLI
npx node-modules-vscode-problems-patchESBuild Plugin
You can import the node-modules-vscode-problems-patch package and use it as an ESBuild plugin in your build script.
import * as esbuild from 'esbuild'
import vscodeProblemsPatchPlugin from 'node-modules-vscode-problems-patch'
await esbuild.build({
// ...
plugins: [vscodeProblemsPatchPlugin()],
// ...
})Contributing
Setup
- Clone the repository
- Run
yarn install - Run
yarn dev
Testing
- Run
yarn startto run the local build
