treewide: set CI=true for pnpm prune

In a recent PNPM version `pnpm prune` started creating a confirmation
prompt which was automatically denied, as there was no TTY.
Adding CI environment variable will make sure there are no prompts.

Changed files
+10 -10
pkgs
by-name
ba
bash-language-server
em
emmet-language-server
et
etherpad-lite
fo
je
jellyseerr
n8
st
stylelint-lsp
ts
vu
vue-language-server
zi
zipline
+1 -1
pkgs/by-name/ba/bash-language-server/package.nix
···
preInstall = ''
# remove unnecessary files
rm node_modules/.modules.yaml
-
pnpm --ignore-scripts --prod prune
+
CI=true pnpm --ignore-scripts --prod prune
rm -r node_modules/.pnpm/@mixmark-io*/node_modules/@mixmark-io/domino/{test,.yarn}
find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} +
# https://github.com/pnpm/pnpm/issues/3645
+1 -1
pkgs/by-name/em/emmet-language-server/package.nix
···
# remove unnecessary and non-deterministic files
preInstall = ''
-
pnpm --ignore-scripts --prod prune
+
CI=true pnpm --ignore-scripts --prod prune
find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} +
# https://github.com/pnpm/pnpm/issues/3645
find node_modules -xtype l -delete
+1 -1
pkgs/by-name/et/etherpad-lite/package.nix
···
preInstall = ''
# remove unnecessary files
rm node_modules/.modules.yaml
-
pnpm prune --prod --ignore-scripts
+
CI=true pnpm prune --prod --ignore-scripts
find -type f \( -name "*.d.ts" -o -name "*.map" \) -exec rm -rf {} +
# remove non-deterministic files
+1 -1
pkgs/by-name/fo/folo/package.nix
···
cd ../..
# Remove dev dependencies.
-
pnpm --ignore-scripts prune --prod
+
CI=true pnpm --ignore-scripts prune --prod
# Clean up broken symlinks left behind by `pnpm prune`
find node_modules/.bin -xtype l -delete
+1 -1
pkgs/by-name/je/jellyseerr/package.nix
···
runHook preBuild
pnpm build
-
pnpm prune --prod --ignore-scripts
+
CI=true pnpm prune --prod --ignore-scripts
rm -rf .next/cache
# Clean up broken symlinks left behind by `pnpm prune`
+1 -1
pkgs/by-name/n8/n8n/package.nix
···
rm node_modules/.modules.yaml
rm packages/nodes-base/dist/types/nodes.json
-
pnpm --ignore-scripts prune --prod
+
CI=true pnpm --ignore-scripts prune --prod
find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} +
rm -rf node_modules/.pnpm/{typescript*,prettier*}
shopt -s globstar
+1 -1
pkgs/by-name/st/stylelint-lsp/package.nix
···
preInstall = ''
# remove unnecessary files
-
pnpm --ignore-scripts prune --prod
+
CI=true pnpm --ignore-scripts prune --prod
rm -rf node_modules/.pnpm/typescript*
find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} +
# https://github.com/pnpm/pnpm/issues/3645
+1 -1
pkgs/by-name/ts/tsx/package.nix
···
# remove devDependencies that are only required to build
# and package the typescript code
-
pnpm prune --prod
+
CI=true pnpm prune --prod
# Clean up broken symlinks left behind by `pnpm prune`
# https://github.com/pnpm/pnpm/issues/3645
+1 -1
pkgs/by-name/vu/vue-language-server/package.nix
···
'';
preInstall = ''
-
pnpm prune --prod
+
CI=true pnpm prune --prod
find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} +
# https://github.com/pnpm/pnpm/issues/3645
+1 -1
pkgs/by-name/zi/zipline/package.nix
···
installPhase = ''
runHook preInstall
-
pnpm prune --prod
+
CI=true pnpm prune --prod
find node_modules -xtype l -delete
mkdir -p $out/{bin,share/zipline}