Skip to content

Commit

Permalink
build(cli): update package scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Apr 28, 2024
1 parent 18f3d64 commit c83493d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"main": "index.js",
"scripts": {
"build": "pnpm -r --filter=./packages/** run build",
"prod": "pnpm -r --filter=./packages/** run prod",
"dev": "pnpm -r --filter=./packages/** run dev",
"test": "pnpm -r --filter=./packages/** run test",
"type-check": "pnpm -r --filter=./packages/** run type-check",
Expand Down
10 changes: 9 additions & 1 deletion packages/create-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@
"description": "Create a fastjs project quickly",
"main": "index.js",
"scripts": {
"build": "esbuild index.ts --bundle --platform=node --minify --outfile=cli.cjs",
"build": "esbuild index.ts --bundle --platform=node --outfile=cli.cjs",
"dev": "esbuild index.ts --bundle --platform=node --minify --outfile=cli.cjs --watch",
"prod": "esbuild index.ts --bundle --platform=node --minify --outfile=cli.cjs",
"type-check": "tsc --noEmit",
"version": "npm version"
},
"files": [
"templates",
"cli.cjs",
"README.md",
"package.json",
"LICENSE"
],
"bin": {
"create-fastjs": "./cli.cjs"
},
Expand Down

0 comments on commit c83493d

Please sign in to comment.