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.
This commit is contained in:
@@ -49,7 +49,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
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
|
||||
|
||||
@@ -40,7 +40,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
|
||||
# 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
|
||||
|
||||
@@ -53,7 +53,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
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
|
||||
|
||||
@@ -82,7 +82,7 @@ stdenv.mkDerivation rec {
|
||||
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
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
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`
|
||||
|
||||
@@ -70,7 +70,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
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
|
||||
|
||||
@@ -42,7 +42,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
|
||||
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
|
||||
|
||||
@@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# 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
|
||||
|
||||
@@ -37,7 +37,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
'';
|
||||
|
||||
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
|
||||
|
||||
@@ -101,7 +101,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
pnpm prune --prod
|
||||
CI=true pnpm prune --prod
|
||||
find node_modules -xtype l -delete
|
||||
|
||||
mkdir -p $out/{bin,share/zipline}
|
||||
|
||||
Reference in New Issue
Block a user