Loading pkgs/development/tools/pnpm/fetch-deps/default.nix +7 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,13 @@ fi export HOME=$(mktemp -d) # If the packageManager field in package.json is set to a different pnpm version than what is in nixpkgs, # any pnpm command would fail in that directory, the following disables this pushd .. pnpm config set manage-package-manager-versions false popd pnpm config set store-dir $out # Some packages produce platform dependent outputs. We do not want to cache those in the global store pnpm config set side-effects-cache false Loading pkgs/development/tools/pnpm/fetch-deps/pnpm-config-hook.sh +7 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,13 @@ pnpmConfigHook() { cp -Tr "$pnpmDeps" "$STORE_PATH" chmod -R +w "$STORE_PATH" # If the packageManager field in package.json is set to a different pnpm version than what is in nixpkgs, # any pnpm command would fail in that directory, the following disables this pushd .. pnpm config set manage-package-manager-versions false popd pnpm config set store-dir "$STORE_PATH" if [[ -n "$pnpmWorkspace" ]]; then Loading Loading
pkgs/development/tools/pnpm/fetch-deps/default.nix +7 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,13 @@ fi export HOME=$(mktemp -d) # If the packageManager field in package.json is set to a different pnpm version than what is in nixpkgs, # any pnpm command would fail in that directory, the following disables this pushd .. pnpm config set manage-package-manager-versions false popd pnpm config set store-dir $out # Some packages produce platform dependent outputs. We do not want to cache those in the global store pnpm config set side-effects-cache false Loading
pkgs/development/tools/pnpm/fetch-deps/pnpm-config-hook.sh +7 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,13 @@ pnpmConfigHook() { cp -Tr "$pnpmDeps" "$STORE_PATH" chmod -R +w "$STORE_PATH" # If the packageManager field in package.json is set to a different pnpm version than what is in nixpkgs, # any pnpm command would fail in that directory, the following disables this pushd .. pnpm config set manage-package-manager-versions false popd pnpm config set store-dir "$STORE_PATH" if [[ -n "$pnpmWorkspace" ]]; then Loading