Reputation: 9873
I'd like to keep source (/ts/**/*.ts
) files only in remote git repo, and transpilation results (/js/**/*.js
) - only in resulting npm package.
In order to achieve that I've added these entries in ignore-files:
/js
...
/ts
Remote repository doesn't contain /js
folder, so .gitignore
works fine.
But it looks like entry in .npmignore
doesn't work, because I get /ts
folder with its contents on npm i <package>
.
What am I doing wrong?
Upvotes: 1
Views: 1074
Reputation: 9873
Although I still didn't get the point of the issue, some of these helped:
npm doctor
.npmignore
to ./ts
So now the /ts
folder is not being downloaded on npm i <package>
and no fatal error occur.
Upvotes: 1