Git Product home page Git Product logo

yarn-npmignore-ordering's Introduction

yarn-npmignore-ordering

This repo contains:

.
├── README.md
├── index.d.ts
├── package.json
├── v1
│   ├── index.d.ts
│   └── package.json
└── yarn.lock

.npmignore is:

*
!**/*.d.ts
/v1/

Meaning, "ignore everything, unignore dts files at any level, even the root, but ignore the v1 directory".

However, the package output is unexpected.

$ yarn pack --dry-run
➤ YN0000: README.md
➤ YN0000: package.json
➤ YN0000: v1/index.d.ts
➤ YN0000: Done in 0s 12ms

index.d.ts is missing, and v1 is included.

npm:

$ COREPACK_ENABLE_STRICT=0 corepack npm@8 pack --dry-run
npm notice 
npm notice 📦  [email protected]
npm notice === Tarball Contents === 
npm notice 441B README.md   
npm notice 30B  index.d.ts  
npm notice 96B  package.json
npm notice === Tarball Details === 
npm notice name:          yarn-npmignore-ordering                 
npm notice version:       0.0.0                                   
npm notice filename:      yarn-npmignore-ordering-0.0.0.tgz       
npm notice package size:  453 B                                   
npm notice unpacked size: 567 B                                   
npm notice shasum:        6e882b94b041dbbaa4f0654d68d8c11bd56994bb
npm notice integrity:     sha512-11HXqdIBvewZP[...]nSRa9EkPBgepg==
npm notice total files:   3                                       
npm notice 

pnpm:

$ COREPACK_ENABLE_STRICT=0 corepack pnpm@8 pack
$ tar -zxvf *.tgz | sort
package/README.md
package/index.d.ts
package/package.json

yarn-npmignore-ordering's People

Contributors

jakebailey avatar

Watchers

 avatar  avatar

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.