Being a complete beginner in creating npm packages using typescript2 and angular2, I find myself in need of creating an npm package and publishing it on our company's private repository.
I've managed to generate files like d.ts
and .js
. But how do I go about packaging the package and uploading it to my npm repository?
You can access the repository here.
In addition, I've successfully logged into our private npm registry:
#npm --registry http://private.npm-registry.com/npm/npm_unstable login
Now, I understand that I need to execute something like npm publish
, but I'm unsure what exactly needs to be included in the package (perhaps the content of the ./dist
folder)?