Unverified Commit b32bb548 authored by Gutyina Gergő's avatar Gutyina Gergő
Browse files

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.
parent 2ca437b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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

+1 −1
Original line number Diff line number Diff line
@@ -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`
Loading