0.0.2 • Published 4 years ago

testpackagezzz v0.0.2

Weekly downloads
8
License
-
Repository
-
Last release
4 years ago

========================================================

Packaging and publishing a module to NPM

  1. Ensure you're logged in to your npm repository (if you don't have one create your npm account here: https://www.npmjs.com/)
  2. 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": "*" } }

  1. Best dir structure is to create dist/src/your files here and outside of dist to contain package.json and README.md
  2. Run npm pack and a tar ball will be created
  3. Run npm publish and it will be published to npm repository

========================================================

Updating your package

  1. Change the version in package.json or run npm version 0.0.2
  2. Run npm publish