Package Exports
- cs-nestrand
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cs-nestrand) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
README
This project is a example of custom NestJS library which can be pushed to NPM and later on can be used in serveral other NestJS based project.
This project is heavily inspired by following two articles:-
- Packaging NestJS Modules for NPM Installs
- Step by step: Building and publishing an NPM Typescript package
Todo List
- Create project
- Add NestJS libraries for building the library project
- Create package.json to generate the library
- Add Jest for writing and implementing the test cases
- Add Nest CLI configuration to generate Nest Modules or classes via Nest CLI commands
- Formatting and Linting
- Use the magic scripts in NPM
- Restrict code getting published via NPM (only JS file and source code map should be published)
- Publish NPM
NPM URL
https://www.npmjs.com/package/cs-nestrand
Package can be installed by
npm i cs-nestrand