@tylergasperlin/ticketing-common
v1.0.41
Published
[https://www.npmjs.com/package/@tylergasperlin/ticketing-common] # PACKAGES IN THIS PROJECT ARE SHARED BETWEEN PROJECTS AND PUBLISHED TO NPM 1. npm login 2. See tylergasperlin organization 3. npm publish --access public 4. package.json name and version ar
Downloads
5
Readme
NPM Package
[https://www.npmjs.com/package/@tylergasperlin/ticketing-common]
PACKAGES IN THIS PROJECT ARE SHARED BETWEEN PROJECTS AND PUBLISHED TO NPM
- npm login
- See tylergasperlin organization
- npm publish --access public
- package.json name and version are important when publishing to npm
EASIEST WAY TO RE-PUBLISH
npm run pub
We publish the common package in javascript even though we write in typescript
- npm build will compile into js
- tsconfig => declaration file uncommented so we create a typescript definition file to work between js and ts
- outDir build will push js code into a build folder
- del-cli will help to remove files from build before rebuilding. In package json we use del to delete the build dir before rebuilding
package json
- main specificies the index js file from build folder
- types specifies the typescript declarations file
- files specifies the files we want in the published build.
npm commands increment version
- npm version patch = increment version number on far right