src/ directory is excluded when npm install-ing
See original GitHub issueWhen I run npm install gulp-sourcemaps
it pulls in the package, but only index.js. The src/ directory is missing and given that index.js essentially just require
s ./src/init
and ./src/write
, breaks.
Why is the src/ repository not included in install
s? I can’t see an .npmignore file in the repository, so is the src/ directory being excluded from install
s by some other method? (Forgive me as I’m not a Node.js developer!)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:14
- Comments:16
Top Results From Across the Web
Why is there no src folder in the npm install package? #44
well, the src is not included, because it is common practice to only distribute the builded dist files. If you take a look...
Read more >npm, avoid publishing of src dir without using .npmignore
The pertinent hooks are: prepublishOnly : Run BEFORE the package is prepared and packed, ONLY on npm publish ... postpublish : Run AFTER...
Read more >How to ignore files from your npm package | Zell Liew
First, npm will check your repository for a .gitignore file. If there is a .gitignore file, npm will ignore files according to what's...
Read more >Including and excluding files from deployment - Claudia.js
Run npm pack on the project folder to simulate NPM packaging without deploying to AWS. If some source files are missing or there...
Read more >What Really Gets Packaged?. Including and excluding files in ...
To explicitly specify which files you'd like to be included in the npm package, you can use the files field in the package.json...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My bad and to help your apps in the future
npm shrinkwrap
is your friend.Indeed. There’s a lot of angry Laravel developers who can’t
gulp
right now 😛