@ruan-cat/generate-code-workspace
v0.2.0
Published
根据 pnpm-workspace.yaml 配置,生成vscode的code-workspace工作区文件。
Downloads
202
Readme
生成工作区文件
本库用于生成工作区文件。
使用方式
函数用法
// scripts/generate.code-workspace.ts
import { generateCodeWorkspace } from "@ruan-cat/generate-code-workspace";
generateCodeWorkspace("monorepo单仓");
{
"scripts": {
"code-workspace:create": "node --import=tsx ./scripts/generate.code-workspace.ts"
}
}
命令行传参
// scripts/generate.code-workspace.ts
import "@ruan-cat/generate-code-workspace";
{
"scripts": {
"code-workspace:create": "node --import=tsx ./scripts/generate.code-workspace.ts --name=monorepo单仓"
}
}