run nm ci when not already installed into repository folder
Testing / test (push) Failing after 14m20s
Testing / test (push) Failing after 14m20s
This commit is contained in:
@@ -414,8 +414,7 @@ uv run pytest -q
|
||||
On NixOS or hosts without global Node/npm:
|
||||
|
||||
```sh
|
||||
nix-shell
|
||||
npm ci
|
||||
nix-shell # automatically runs npm ci when node_modules is missing/outdated
|
||||
npm run check:extension
|
||||
```
|
||||
|
||||
|
||||
@@ -9,5 +9,12 @@ pkgs.mkShell {
|
||||
|
||||
shellHook = ''
|
||||
echo "browser-cli dev shell: node $(node --version), npm $(npm --version), uv $(uv --version)"
|
||||
|
||||
if [ -f package-lock.json ]; then
|
||||
if [ ! -f node_modules/.package-lock.json ] || [ package-lock.json -nt node_modules/.package-lock.json ]; then
|
||||
echo "Installing extension dependencies with npm ci..."
|
||||
npm ci
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user