Giter VIP home page Giter VIP logo

Comments (4)

milaninfy avatar milaninfy commented on August 28, 2024

@falsyvalues This change was introduced as a fix to correct the regression. Follow discussion on this PR #7158 to get more background on this change. You can use this flag foreground-scripts or --silent to get expected output result.

from cli.

falsyvalues avatar falsyvalues commented on August 28, 2024

@milaninfy Will I get the reasoning, result remains the same - breaking for end user. Also --silent won't help because it mutes only script call not the result.

{
    "prepare": "echo \"Noise\""
}
$ npm pack --silent
Noise
[email protected]

from cli.

milaninfy avatar milaninfy commented on August 28, 2024

@falsyvalues Apologies I must have thought something else when I suggested --silent flag
but here is the output with npm pack --foreground-scripts=false > test2.txt.

~/workarea/rep $ npm pack --foreground-scripts=false > test2.txt
npm notice
npm notice 📦  [email protected]
npm notice Tarball Contents
npm notice 348B package.json
npm notice 361B rep-1.0.0.tgz
npm notice 91B test.txt
npm notice 0B test2.txt
npm notice Tarball Details
npm notice name: rep
npm notice version: 1.0.0
npm notice filename: rep-1.0.0.tgz
npm notice package size: 843 B
npm notice unpacked size: 800 B
npm notice shasum: 4c9cb5a1cdce1b1a5b8a25ea8fa8f7502693f68d
npm notice integrity: sha512-mhud3Gqlf4hPJ[...]pwBJEk6+zokgg==
npm notice total files: 4
npm notice

~/workarea/rep $ cat test2.txt 
rep-1.0.0.tgz

with --silent flag

~/workarea/rep $ npm pack --foreground-scripts=false --silent
rep-1.0.0.tgz

from cli.

milaninfy avatar milaninfy commented on August 28, 2024

This is currently working as intended,

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.