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:
.gitignore
/js
...
.npmignore
/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?
Although I still didn't get the point of the issue, some of these helped:
npm doctor.npmignoreto./tsSo now the
/tsfolder is not being downloaded onnpm i <package>and no fatal error occur.