npmjs --> create organization
$ cd app
$ mkdir common
$ cd common/
$ npm init -y
$ git init
$ git add .
$ git commit -m "initial commit"
$ npm login
$ npm publish --acces public
$ tsc --init
$ npm install --save-dev typescript del-cli
tsconfig.json
"declaration": true
"outDir": "./build"
$ npm run build
$ npm version patch
$ npm run build
auth/src/errors copy to common/src/errors
auth/src/middlewares copy to common/src/middlewares
$ npm install --save \
express \
express-validator \
cookie-session \
jsonwebtoken \
@types/cookie-session \
@types/express \
@types/jsonwebtoken
$ tsc
$ npm run publish
$ cd auth
$ npm install --save @grider-ms-tickets/common
$ cd auth
$ npm update @grider-ms-tickets/common
Marley
Any questions in english: Telegram Chat
Любые вопросы на русском: Телеграм чат