Skip to content

Commit

Permalink
fix: prevent pnpm lock file from incorrectly being updated on install…
Browse files Browse the repository at this point in the history
… and add explicit update script to update use w/o frozen lock file option
  • Loading branch information
monilpat committed Dec 15, 2024
1 parent 33931e3 commit d5ea1d5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: sudo apt-get install -y protobuf-compiler

- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Build packages
run: pnpm run build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: sudo apt-get install -y protobuf-compiler

- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Build packages
run: pnpm run build
Expand Down
4 changes: 2 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ tasks:
init: |
nvm install v23.3.0
git checkout $(git describe --tags --abbrev=0)
command: pnpm install && pnpm run build
command: pnpm install --frozen-lockfile && pnpm run build

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ COPY scripts ./scripts
COPY characters ./characters

# Install dependencies and build the project
RUN pnpm install \
RUN pnpm install --frozen-lockfile \
&& pnpm build-docker \
&& pnpm prune --prod

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "eliza",
"scripts": {
"install": "pnpm i -r --frozen-lockfile",
"i": "pnpm i -r --frozen-lockfile",
"update": "pnpm i -r",
"preinstall": "npx only-allow pnpm",
"build": "turbo run build --filter=!eliza-docs",
"build-docker": "turbo run build",
Expand Down
2 changes: 1 addition & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fi

# Install dependencies
echo -e "\033[1mInstalling dependencies...\033[0m"
if ! pnpm i; then
if ! pnpm i --frozen-lockfile; then
echo -e "\033[1;31mFailed to install dependencies\033[0m"
exit 1
fi
Expand Down

0 comments on commit d5ea1d5

Please sign in to comment.