Skip to content

Commit

Permalink
Change package manager to yarn (#374)
Browse files Browse the repository at this point in the history
* chore: install dependencies using yarn

* chore: change references of npm command to yarn

* chore: use npm for workers-site

* chore: revert workers-site changes

* fix: pin gatsby-plugin-google-tagmanager and gatsby-plugin-typescript versions to avoid plugin incompatibility issue

Co-authored-by: Temitayo Fadojutimi <[email protected]>
  • Loading branch information
adesege and adesege authored Dec 14, 2021
1 parent 94e11df commit 106988d
Show file tree
Hide file tree
Showing 5 changed files with 16,117 additions and 2,033 deletions.
26 changes: 13 additions & 13 deletions bin/commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ if [ "$1" = "ghactionsbootstrap" ]; then
echo "Entering .docs"
cd .docs

echo "Running npm install inside .docs"
npm install
echo "Running yarn install inside .docs"
yarn install --pure-lockfile
fi


Expand All @@ -51,11 +51,11 @@ if [ "$1" = "bootstrap" ]; then
echo "Entering .docs"
cd .docs

echo "Removing existing node_modules (local npm link case)"
echo "Removing existing node_modules (local yarn link case)"
rm -rf node_modules/

echo "Running npm install inside .docs"
npm install
echo "Running yarn install inside .docs"
yarn install --pure-lockfile
fi


Expand Down Expand Up @@ -89,11 +89,11 @@ if [ "$1" = "develop" ]; then
echo "Entering .docs"
cd .docs

echo "Running npm run clean"
npm run clean
echo "Running yarn clean"
yarn clean

echo "Running npm run develop"
npm run develop -- "${@:2}"
echo "Running yarn develop"
yarn develop "${@:2}"
fi


Expand All @@ -105,8 +105,8 @@ if [ "$1" = "build" ]; then
echo "Entering .docs"
cd .docs

echo "Running npm run build"
npm run build -- "${@:2}"
echo "Running yarn build"
yarn build "${@:2}"

# We must run from inside `.docs/`
echo "Running bin/postbuild.js"
Expand All @@ -120,8 +120,8 @@ if [ "$1" = "serve" ]; then
echo "Entering .docs"
cd .docs

echo "Running npm run serve"
npm run serve -- "${@:2}"
echo "Running yarn serve"
yarn serve "${@:2}"
fi


Expand Down
Loading

0 comments on commit 106988d

Please sign in to comment.