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?