testpackagezzz
v0.0.2
Published
Learning typescript.
Readme
======================================================== Packaging and publishing a module to NPM
- Ensure you're logged in to your npm repository (if you don't have one create your npm account here: https://www.npmjs.com/)
- Create package.json
Fill in the details. Note* name must be unique or you will get 403.
{ "author": "CP", "name": "testpackagezzz", "description": "Learning typescript.", "keywords": [ "calpangdev", "typescript"], "version": "0.0.1", "homepage": "", "bugs": "", "license": "", "files": [ "src/" ], "repository": { "url": "" }, "main": "src/TypeSpec.js", "types": "src/TypeSpec.d.ts", "dependencies": { }, "devDependencies": { }, "optionalDependencies": { }, "engines": { "node": "*" } }
- Best dir structure is to create dist/src/[your files here] and outside of dist to contain package.json and README.md
- Run
npm packand a tar ball will be created - Run
npm publishand it will be published to npm repository
======================================================== Updating your package
- Change the version in package.json or run
npm version 0.0.2 - Run
npm publish
