From ce8e08ae2edce894e759e359d5efb54ad45b4428 Mon Sep 17 00:00:00 2001 From: Roger Qiu Date: Tue, 10 May 2022 15:30:09 +1000 Subject: [PATCH] The shell.nix order is creating tmp directory, then setting PATH, then npm config, then npm install --- shell.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/shell.nix b/shell.nix index 3c5c628..49a28a6 100644 --- a/shell.nix +++ b/shell.nix @@ -19,9 +19,9 @@ in set +o allexport set -v - # Enables npm link - export npm_config_prefix=~/.npm + mkdir --parents "$(pwd)/tmp" + # Built executables and NPM executables export PATH="$(pwd)/dist/bin:$(npm bin):$PATH" # pkg is installed in package.json @@ -32,8 +32,10 @@ in ] }:$PATH" + # Enables npm link + export npm_config_prefix=~/.npm + npm install - mkdir --parents "$(pwd)/tmp" set +v '';