gpt4 book ai didi

visual-studio-code - Visual Studio Code - 在资源管理器中排除 NPM 脚本

转载 作者:行者123 更新时间:2023-12-04 11:58:07 26 4
gpt4 key购买 nike

在 Visual Studio Code 1.23 中,您现在可以使用设置 "npm.enableScriptExplorer": true 从资源管理器窗口运行 npm 脚本。 .我知道您可以使用 "npm.exclude" 排除整个 package.json 文件设置,但是否可以只从 package.json 文件中排除特定脚本?或者至少让它们没有出现在资源管理器窗口中?

当前:

>NPM 脚本
>package.json
🔧东西
🔧开始
🔧 build
🔧东西2

欲求:
(从“package.json”中排除脚本“stuff”和“stuff2”)

>NPM 脚本
>package.json
🔧开始
🔧 build

最佳答案

基于 this :

// Enable an explorer view for npm scripts.
"npm.enableScriptExplorer": false,

// Configure glob patterns for folders that should be excluded from automatic script detection.
"npm.exclude": "",


您不能在单个文件中排除部分脚本 package.json

关于visual-studio-code - Visual Studio Code - 在资源管理器中排除 NPM 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50219684/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com