Skip to content

Commit

Permalink
⚙️ config: 将单仓部署命令,提升到根配置内;
Browse files Browse the repository at this point in the history
  • Loading branch information
ruan-cat committed May 4, 2024
1 parent 5b2f6a2 commit 21b69a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@
"version": "1.0.0",
"description": "这是单仓架构项目的根目录。",
"main": "index.js",
"private": true,
"packageManager": "[email protected]",
"engines": {
"node": ">=18.0.0",
"vscode": "^1.22.0",
"pnpm": ">=8.0.0"
},
"scripts": {
"dev-all": "pnpm run dev:main & pnpm run dev:docs",
"build-all": "pnpm run build:main-stage && pnpm run build:docs",
"dev:main": "pnpm -F @dfsw/main dev",
"dev:docs": "pnpm -F @dfsw/docs dev",
"build:main-stage": "pnpm -F @dfsw/main build:stage",
"build:main-prod": "pnpm -F @dfsw/main build:prod",
"build:docs": "pnpm -F @dfsw/docs build",
"build:1": "pnpm -F @ruan-cat-vercel-monorepo-test/monorepo-1 docs:build",
"build:2": "pnpm -F @ruan-cat-vercel-monorepo-test/monorepo-2 docs:build",
"build:3": "pnpm -F @ruan-cat-vercel-monorepo-test/monorepo-3 docs:build",
"build:4": "pnpm -F @ruan-cat-vercel-monorepo-test/monorepo-4 docs:build",
"build:5": "pnpm -F @ruan-cat-vercel-monorepo-test/monorepo-5 docs:build",
"dev:1": "pnpm -F @ruan-cat-vercel-monorepo-test/monorepo-1 docs:dev",
"rm:node_modules": "pnpm -r rimraf node_modules && rimraf node_modules"
},
"keywords": [],
Expand Down
4 changes: 2 additions & 2 deletions packages/monorepo-1/vercel.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"framework": null,
"buildCommand": "pnpm -C ./packages/monorepo-1 run docs:build",
"buildCommand": "pnpm run build:1",
"installCommand": "pnpm install",
"outputDirectory": "./packages/monorepo-1/src/.vuepress/dist",
"devCommand": "pnpm -C ./packages/monorepo-1 run docs:dev",
"devCommand": "pnpm run dev:1",
"public": false,
"git": {
"deploymentEnabled": {
Expand Down

0 comments on commit 21b69a0

Please sign in to comment.