Skip to content

devoto13/yarn-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo for yarn including .git folder with yarn pack

It includes empty .git folder in the .tgz file.

I would expect following to work (include only package.json, README.md and lib directory with all subfiles):

"files": [
    "lib",
    "README.md"
]

But unfortunately it doesn't (it also includes lib and README.md from all packages in node_modules/). The best I was able to get is:

"files": [
    "/lib/*",
    "/README.md",
    "/package.json"
]

But it includes empty .git directory and .gitignore for some reason...

See output below:

$ yarn pack && tar xzvf yarn-git-v1.0.0.tgz
yarn pack v0.17.3
success Wrote tarball to "/Users/devoto13/Projects/yarn-git/yarn-git-v1.0.0.tgz".
✨  Done in 0.13s.
x package
x package/README.md
x package/lib/code.js
x package/package.json
x package/.git
x package/.gitignore

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors