Comments (5)
I'm having a very similar issue with the dist
folder.
Via npm there is no issue.
np --preview
:
The following new files will be published for the first time:
- LICENSE
- package.json
- README.md
npm publish --dry-run
:
npm notice === Tarball Contents ===
npm notice 35.1kB LICENSE
npm notice 1.3kB README.md
npm notice 767B dist/main.js
npm notice 919B dist/main.js.map
npm notice 611B dist/module.js
npm notice 915B dist/module.js.map
npm notice 1.7kB package.json
.npmignore
:
*
!dist/**
!package.json
!LICENSE
!README.md
from np.
What version of np
are you on? Since #682 (np
v8.0.0), we just use npm
itself to figure out what files are included.
What's the output if you run npm pack --dry-run
?
from np.
@tommy-mitchell commented on Feb 29, 2024, 11:40 PM GMT+1:
What version of
np
are you on? Since #682 (np
v8.0.0), we just usenpm
itself to figure out what files are included.
The latest version 10.
What's the output if you run
npm pack --dry-run
?
Exactly the same result as seen above with npm publish --dry-run
.
npm notice === Tarball Contents ===
npm notice 35.1kB LICENSE
npm notice 1.3kB README.md
npm notice 767B dist/main.js
npm notice 919B dist/main.js.map
npm notice 611B dist/module.js
npm notice 915B dist/module.js.map
npm notice 1.7kB package.json
np - 10.0.0
node - 21.6.1
npm - 10.5.0
git - 2.44.0.windows.1
OS - Windows 10
from np.
Yarn gives the same result as npm.
I tried running np with yarn via np --preview --package-manager=yarn
and I got the same missing results.
What I do find surprising is that the files in the dist/
folder are also not mentioned in the ? The following new files will not be part of your published package:
section.
from np.
Finally had time to do a real publish to NPM and confirmed that the dist/
files are included in the package, while the message didn't mention them.
Maybe I do not understand the message correctly. It says The following new files will be published for the first time:
. Keyword new
, but the mentioned new files are definitely not new.
from np.
Related Issues (20)
- Unable to publish preview (`publish.getPackagePublishArguments` is not a function) HOT 1
- Allow creating a GitHub draft release without generating release notes
- ls-collaborators is not a valid access command with npm v9 HOT 5
- np output command error
- np error ERR_REQUIRE_ESM HOT 2
- Provide a way to silently approve in advanced files that won't be part of the published package
- `ENOWORKSPACES` when publishing from workspace HOT 1
- np command extremely slow HOT 7
- how to hook in to publish a bundle with injected version HOT 1
- np hangs while publishing HOT 4
- Open npmjs.com instead of asking for OTP HOT 1
- after published, print the npm url HOT 2
- When prepublishOnly script fails, Git operations are not rolled back
- Support pnpm in 2024? HOT 1
- Issue with Dependency Packages on publish
- Consider dropping `ow` HOT 2
- Duplicate Tag + Release created without `v` Prefix HOT 10
- np with npm 10.5.1: Failed to parse output of npm pack HOT 6
- Husky prepare script breaking np HOT 3
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 np.