Comments (4)
@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 to get expected output result.--silent
from cli.
@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.
@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.
This is currently working as intended,
from cli.
Related Issues (20)
- https://github.com/npm/cli/commit/dbe7d983d184fb00c85f7b34839a123057029c8b HOT 2
- [DOCS] npm doesn't install the latest tagged version if engines are invalid HOT 6
- [BUG] npm dist-tag rm only removes the last recently deleted tag HOT 9
- [BUG] `npm publish --provenance` The default value `public` isn't used HOT 5
- [Enchancement] Check files that import the package before uninstalling HOT 1
- [BUG] npm docs with no pkgname arg returns undefined HOT 2
- [BUG] No README.md on npmjs ? HOT 4
- [BUG] Problem / error links are incorrect when path contains prefix before space HOT 3
- [BUG] npm version -ws never update dependencies in package.json HOT 3
- npm ERR! Exit handler never called! npm ERR! This is an error with npm itself. HOT 1
- Licence missing for npm update
- [BUG] <title> HOT 1
- [BUG] npm install --save three: No matching version found for three@^0.777.1. HOT 3
- (npm error Exit handler never called!:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError HOT 1
- [BUG] Unable to upgrade two packages with a dep and peer dep on the same package that is also bumped HOT 5
- npm i changing package-lock.json HOT 4
- [BUG] Windows npm install --prefix errors and looks for the package.json in the cwd HOT 5
- [BUG] <prepare script called with CMD on windows> HOT 1
- Feature request: Add config option to prevent accidental installation of packages in directories without package.json HOT 2
- [BUG] npm publish <package-spec> in a workspace is not taking package-spec into account HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.