aditya-garg-09-01-2002 / commencer

Bringing in commonly used APIs for building your unique projects
3 stars 10 forks source link

Automation of publishing npm package #1

Open aditya-garg-09-01-2002 opened 3 weeks ago

aditya-garg-09-01-2002 commented 3 weeks ago

Goal

To create a script in package.json which builds the project with tsc and publish it with public access as a npm package, along with necessary modifications to build made for publishing.

The script must remove node_modules, src/index.ts, src/app.ts and publish as npm package with public access

Also, following must be exported in a fashion so that developers using npm package, could use them:

  1. router (currently only router belonging to src/routes/user/index.ts as authRouter)
  2. following middleware
    • isValidSession
    • verifyOtp
    • getUserDetailsFromJwt
    • getUserDetailsFromAPIBody
chavdarohit commented 2 weeks ago

while reviewing the code base i can see by adding the script to the package.json only it will work for publishing there is no need to modufy the exported fashion for the router and the middlewares it is in the good structure so i can work for the script ... can you assign it to me

aditya-garg-09-01-2002 commented 2 weeks ago