Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- built with..
- tsc ./src/index.ts --outDir ./bin --target commonjs # builds ts into ./bin
- cp ./src/package.json ./bin/package.json # copy package.json into ./bin
- cd ./bin && npm install # install ./node_modules
- (optional) - publishing
- cd ./bin && npm publish
- --------------------------------------------------------------------
- node root
- --------------------------------------------------------------------
- .
- ├── bin
- │ ├── index.js
- │ ├── node_modules
- │ │ ├── mongo
- │ │ │ ├── index.js
- │ │ │ └── package.json
- │ │ └── mssql
- │ │ ├── index.js
- │ │ └── package.json
- │ └── package.json <------- copied to.
- --------------------------------------------------------------------
- source files.
- --------------------------------------------------------------------
- └── src
- ├── index.ts
- ├── messaging
- │ ├── email.ts
- │ └── sms.ts
- ├── package.json <------- copied from.
- ├── repository
- │ ├── mongo.ts
- │ └── mssql.ts
- └── typings
- ├── mongo
- │ └── mongo.d.ts
- ├── mssql
- │ └── index.d.ts
- └── node
- └── index.d.ts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement