Skip to content

Commit 5cdfcd7

Browse files
committed
refactor: add yarn to dev/buld scripts, update postinstall
run `yarn` automatically on `yarn dev` or `yarn build` to 1- update dependencies if needed, 2- trigger the `postinstall` script which will now remove the git-contributor-cache.json file to start the environment fresh each time
1 parent 622f52d commit 5cdfcd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version": "8.5.2",
44
"private": true,
55
"scripts": {
6-
"dev": "yarn clean-commit-history && next dev",
7-
"postinstall": "yarn theme",
8-
"build": "yarn clean-commit-history && next build",
9-
"clean-commit-history": "touch ./src/data/git-contributor-cache.json && rm ./src/data/git-contributor-cache.json",
6+
"dev": "yarn && next dev",
7+
"postinstall": "yarn theme && yarn rm-contributor-cache",
8+
"build": "yarn && next build",
9+
"rm-contributor-cache": "touch ./src/data/git-contributor-cache.json && rm ./src/data/git-contributor-cache.json",
1010
"postbuild": "next-sitemap",
1111
"start": "next start",
1212
"lint": "next lint",

0 commit comments

Comments
 (0)