Skip to content

Commit

Permalink
Merge pull request #441 from kufu/fix-npm-commands
Browse files Browse the repository at this point in the history
chore: npm コマンド周りで気になったところを改善した
  • Loading branch information
Tokky0425 authored Nov 19, 2024
2 parents 2657aad + bd5b059 commit 2ef90f2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This repository is a monorepo using Lerna and Yarn Workspaces.
### Develop

```sh
% pnpm start
% pnpm dev
```

### Test
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"description": "Frontend packages for projects at SmartHR",
"main": "index.js",
"scripts": {
"start": "pnpm build --watch",
"prebuild": "lerna run clean --stream",
"dev": "pnpm build --watch",
"build": "lerna run prebuild --stream && pnpm tsc",
"pretest": "pnpm build",
"test": "jest",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-lint-set/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"access": "public"
},
"scripts": {
"prebuild": "pnpm copy-templates",
"prebuild": "pnpm clean && pnpm copy-templates",
"copy-templates": "mkdir lib && cp -r src/templates lib/templates",
"clean": "rimraf lib"
},
Expand Down
1 change: 1 addition & 0 deletions packages/next-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"access": "public"
},
"scripts": {
"prebuild": "pnpm clean",
"clean": "rimraf lib"
},
"directories": {
Expand Down
1 change: 1 addition & 0 deletions packages/use-bulk-check/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"access": "public"
},
"scripts": {
"prebuild": "pnpm clean",
"clean": "rimraf lib"
},
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/use-virtual-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"access": "public"
},
"scripts": {
"prebuild": "pnpm clean",
"clean": "rimraf lib",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
Expand Down
1 change: 1 addition & 0 deletions packages/wareki/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"access": "public"
},
"scripts": {
"prebuild": "pnpm clean",
"clean": "rimraf lib"
}
}

0 comments on commit 2ef90f2

Please # to comment.