Skip to content

Commit

Permalink
ci: modify package.json scripts (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtrbo authored Oct 18, 2023
1 parent 0029525 commit 2aa9a49
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 13 deletions.
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,21 @@
],
"scripts": {
"create": "esno scripts/create-package.ts",
"dev": "pnpm --filter=utils-playground dev --port 9999 --open --host",
"watch": "esno scripts/watch-package.ts",
"build": "pnpm --filter \"@vtrbo/utils-*\" build && tsup",
"release": "pnpm build && pnpm release:bumpp && pnpm release:publish",
"release:bumpp": "bumpp -r",
"release:publish": "pnpm --filter \"@vtrbo/utils-*\" publish --access=public && pnpm publish --access=public",
"build": "pnpm build:packages && tsup",
"build:packages": "pnpm -r --filter=!playground build",
"dev:playground": "pnpm -C playground dev",
"build:playground": "pnpm -C playground build",
"release": "pnpm build && bumpp -r && pnpm release:publish",
"release:publish": "pnpm -r --filter=!playground publish --access=public",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest",
"test:update": "vitest -u",
"test:coverage": "vitest --coverage",
"clean": "pnpm clean:dist && pnpm clean:deps",
"clean:dist": "rimraf packages/**/dist && rimraf dist",
"clean:deps": "rimraf packages/**/node_modules playground/node_modules && rimraf node_modules",
"clean:dist": "pnpm -r clean:dist && rimraf dist",
"clean:deps": "pnpm -r clean:deps && rimraf node_modules",
"prepare": "npx simple-git-hooks",
"precommit": "esno verify-commit.ts"
},
Expand Down
5 changes: 4 additions & 1 deletion packages/is/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
"index.js"
],
"scripts": {
"build": "tsup"
"build": "tsup",
"clean": "pnpm clean:dist && pnpm clean:deps",
"clean:dist": "rimraf dist",
"clean:deps": "rimraf node_modules"
},
"peerDependencies": {
"@vtrbo/utils-obj": "workspace:*"
Expand Down
5 changes: 4 additions & 1 deletion packages/log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
"index.js"
],
"scripts": {
"build": "tsup"
"build": "tsup",
"clean": "pnpm clean:dist && pnpm clean:deps",
"clean:dist": "rimraf dist",
"clean:deps": "rimraf node_modules"
},
"dependencies": {
"@vtrbo/utils-tool": "workspace:*"
Expand Down
5 changes: 4 additions & 1 deletion packages/obj/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
"index.js"
],
"scripts": {
"build": "tsup"
"build": "tsup",
"clean": "pnpm clean:dist && pnpm clean:deps",
"clean:dist": "rimraf dist",
"clean:deps": "rimraf node_modules"
},
"peerDependencies": {
"@vtrbo/utils-is": "workspace:*"
Expand Down
5 changes: 4 additions & 1 deletion packages/tool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
"index.js"
],
"scripts": {
"build": "tsup"
"build": "tsup",
"clean": "pnpm clean:dist && pnpm clean:deps",
"clean:dist": "rimraf dist",
"clean:deps": "rimraf node_modules"
}
}
7 changes: 5 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "utils-playground",
"name": "playground",
"type": "module",
"version": "0.4.0-beta.4",
"description": "Collection of common JavaScript or TypeScript utils.",
Expand All @@ -21,7 +21,10 @@
],
"scripts": {
"dev": "vite",
"build": "vite build"
"build": "vite build",
"clean": "pnpm clean:dist && pnpm clean:deps",
"clean:dist": "rimraf dist",
"clean:deps": "rimraf node_modules"
},
"dependencies": {
"vue": "^3.3.4"
Expand Down

0 comments on commit 2aa9a49

Please sign in to comment.