Skip to content

Commit

Permalink
Fix gh-pages example for windows user (#35169)
Browse files Browse the repository at this point in the history
Windows users cannot use the `rm` and `touch` commands. So I replaced it with `rimraf` and `touch` package.

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
  • Loading branch information
woochul2 and ijjk committed May 22, 2022
1 parent 9ceccbc commit f467bf2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/gh-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
"build": "next build",
"start": "next start",
"export": "next export",
"deploy": "rm -rf node_modules/.cache && next build && next export && touch out/.nojekyll && git add out/ && git commit -m \"Deploy Next.js to gh-pages\" && git subtree push --prefix out origin gh-pages"
"deploy": "rimraf node_modules/.cache && next build && next export && nodetouch out/.nojekyll && git add out/ && git commit -m \"Deploy Next.js to gh-pages\" && git subtree push --prefix out origin gh-pages"
},
"dependencies": {
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"babel-plugin-transform-define": "^1.3.0"
"babel-plugin-transform-define": "^1.3.0",
"rimraf": "^3.0.2",
"touch": "^3.1.0"
}
}

0 comments on commit f467bf2

Please sign in to comment.