Unverified Commit 265d1e26 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

bruno-cli: fix build with noBrokenSymlinks (#381498)

parents ae457fe3 ba074356
Loading
Loading
Loading
Loading
+13 −4
Original line number Diff line number Diff line
@@ -51,12 +51,21 @@ buildNpmPackage {

    echo "Removing unnecessary files"
    pushd $out/lib/node_modules/usebruno
    rm -rfv packages/bruno-{app,electron,tests,toml,schema,docs}
    rm -rfv packages/*/node_modules/typescript
    rm -rfv node_modules/{next,@next,@tabler,pdfjs-dist,*redux*,*babel*,prettier,@types*,*react*,*graphiql*}

    # packages used by the GUI app, unused by CLI
    rm -r packages/bruno-{app,electron,tests,toml,schema,docs}
    rm node_modules/bruno
    rm node_modules/@usebruno/{app,tests,toml,schema}

    # heavy dependencies that seem to be unused
    rm -rf node_modules/{@tabler,pdfjs-dist,*redux*,*babel*,prettier,@types*,*react*,*graphiql*}
    rm -r node_modules/.bin

    # unused file types
    for pattern in '*.map' '*.map.js' '*.ts'; do
      find . -type f -name "$pattern" -exec rm -v {} +
      find . -type f -name "$pattern" -exec rm {} +
    done

    popd
    echo "Removed unnecessary files"
  '';