Node.js/yarn/特殊配置:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
创建页面,内容为“== 标题文本 == {{hc|head=.yarnrc|output=<syntaxhighlight lang="bash"> ## v1 # httpProxy: "http://192.168.51.34:808" # httpsProxy: "http://192.168.51.34:808" ## v4 # "http-proxy": "http://192.168.51.34:808" # "https-proxy": "http://192.168.51.34:808" ## # "npmRegistryServer": "https://registry.npmmirror.com" # "unsafeHttpWhitelist" ["192.168.51.38:4873"] # # # 设置域的指定源 # # # "@babel:registry" "https://mirrors.huaweicloud.com/repository/npm/"…”
 
Kangkk​(留言 | 贡献)
 
(未显示同一用户的2个中间版本)
第76行: 第76行:
# "node_sqlite3_binary_host_mirror" "https://registry.npmmirror.com/-/binary/sqlite3"
# "node_sqlite3_binary_host_mirror" "https://registry.npmmirror.com/-/binary/sqlite3"
# "better_sqlite3_binary_host_mirror" "https://registry.npmmirror.com/-/binary/better-sqlite3"</syntaxhighlight>}}
# "better_sqlite3_binary_host_mirror" "https://registry.npmmirror.com/-/binary/better-sqlite3"</syntaxhighlight>}}
== vscode ==
vscode 编辑器支持 yarn 2+
{{hc|head=.vscode/settings.json|output=<syntaxhighlight lang="bash">
{
  "prettier.configPath": ".prettierrc.yaml",
  "prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
  // "prettier.prettierPath": "/home/kangjian/.local/share/fnm/node-versions/v21.7.3/installation/bin/prettier",
  "search.exclude": {
    "**/.yarn": true,
    "**/.pnp.*": true
  },
  "eslint.nodePath": ".yarn/sdks",
  "typescript.tsdk": ".yarn/sdks/typescript/lib",
  "typescript.enablePromptUseWorkspaceTsdk": true
}
</syntaxhighlight>}}