Skip to content

Commit 3c44791

Browse files
committed
chore: enhance dependency installation logic in justfile
- Updated the `install` command to conditionally check for the existence of `pnpm-lock.yaml`, allowing for installation without a lockfile if it does not exist. - Improved the clarity of the installation process by ensuring that the appropriate flags are applied based on the presence of the lockfile.
1 parent b6c62e4 commit 3c44791

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

justfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ gen-types name:
1919
# == Dev ==
2020

2121
# Install dependencies (no scripts will run)
22+
# --ignore-scripts: don't run scripts (eg. preinstall, postinstall)
23+
# --frozen-lockfile: don't update the lockfile
2224
install:
23-
# --ignore-scripts: don't run scripts (eg. preinstall, postinstall)
24-
# --frozen-lockfile: don't update the lockfile
25-
pnpm install --ignore-scripts --frozen-lockfile
26-
27-
install-no-lockfile:
28-
pnpm install --ignore-scripts
25+
if not exists "pnpm-lock.yaml":
26+
pnpm install --ignore-scripts
27+
else:
28+
pnpm install --ignore-scripts --frozen-lockfile
2929

3030
# List all packages in the workspace
3131
ls:

0 commit comments

Comments
 (0)