Skip to content

Commit

Permalink
fix: use npm over yarn in example directories (#955)
Browse files Browse the repository at this point in the history
Change how our scripts update cdktf and node.
  • Loading branch information
ansgarm authored Nov 19, 2024
1 parent 32fc98b commit d76bf74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions scripts/update-cdktf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ echo "Updating examples"
for example in $(find "$PROJECT_ROOT/examples" -mindepth 1 -maxdepth 1 -type d); do
echo "Updating example $example"
cd "$example"
yarn
yarn add -D cdktf-cli@$CDKTF_VERSION
yarn add cdktf@$CDKTF_VERSION
npm install
npm install -D cdktf-cli@$CDKTF_VERSION
npm install cdktf@$CDKTF_VERSION
done

echo "Updating README"
Expand Down
4 changes: 2 additions & 2 deletions scripts/update-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ for example in $(find "$PROJECT_ROOT/examples" -mindepth 1 -maxdepth 1 -type d);
echo "Updating example $example"
cd "$example"
npm pkg set engines.node=">= $NODE_VERSION"
yarn
yarn add -D @types/node@^$NODE_VERSION_SHORT
npm install
npm install -D @types/node@^$NODE_VERSION_SHORT
done

echo "Updating README"
Expand Down

0 comments on commit d76bf74

Please sign in to comment.