Skip to content

Commit 31fad1c

Browse files
Merge pull request #7508 from saurabhraghuvanshii/build
update clean command in make file
2 parents d8fcef4 + d3db0aa commit 31fad1c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ build:
4141

4242
## Empty build cache and run layer5.io on your local machine.
4343
clean:
44-
gatsby clean && make site
44+
npm run clean && make build
4545

4646
## Run Eslint on your local machine.
4747
lint:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"scripts": {
1313
"build": "cross-env BUILD_FULL_SITE=true NODE_OPTIONS=--max-old-space-size=8192 gatsby build",
14-
"clean": "gatsby clean && rimraf node_modules",
14+
"clean": "gatsby clean",
15+
"clean:all": "gatsby clean && rimraf node_modules",
1516
"develop": "cross-env BUILD_FULL_SITE=true GATSBY_CPU_COUNT=4 SHARP_CONCURRENCY=4 UV_THREADPOOL_SIZE=4 NODE_OPTIONS=--max-old-space-size=8192 env-cmd -f .env.development gatsby develop",
1617
"develop:lite": "cross-env BUILD_FULL_SITE=false LITE_BUILD_PROFILE=core GATSBY_CPU_COUNT=4 SHARP_CONCURRENCY=4 UV_THREADPOOL_SIZE=4 NODE_OPTIONS=--max-old-space-size=8192 env-cmd -f .env.development gatsby develop",
1718
"dev": "npm run develop:lite",

0 commit comments

Comments
 (0)