Giter Site home page Giter Site logo

Comments (5)

jerone avatar jerone commented on June 10, 2024

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.

tommy-mitchell avatar tommy-mitchell commented on June 10, 2024

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.

jerone avatar jerone commented on June 10, 2024

@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 use npm 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.

jerone avatar jerone commented on June 10, 2024

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.

jerone avatar jerone commented on June 10, 2024

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)

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.