Fixed building with pg linking in examples and added example:debug script

This commit is contained in:
Alexander Cerutti
2021-02-09 20:16:47 +01:00
parent 07569c1c68
commit ece352bf6b
4 changed files with 10 additions and 99 deletions

View File

@@ -6,17 +6,21 @@
"author": "Alexander P. Cerutti <cerutti.alexander@gmail.com>",
"license": "ISC",
"scripts": {
"preinstall": "npm run clear:deps && npm unlink --no-save passkit-generator && cd .. && npm run build && npm link && cd examples && npm link passkit-generator",
"preinstall": "npm run clear:deps && npm unlink --no-save passkit-generator",
"postinstall": "cd .. && npm run build && npm link && cd examples && npm link passkit-generator",
"example": "cd build && node",
"build": "npm run build:clear && npx tsc",
"example:debug": "cd build && node --inspect-brk",
"build": "npm run build:clear && npm install && npx tsc",
"build:clear": "rm -rf build",
"clear:deps": "rm -rf node_modules"
},
"peerDependencies": {
"passkit-generator": "latest"
},
"dependencies": {
"express": "^4.17.1",
"node-fetch": "^2.6.1",
"tslib": "^2.1.0",
"passkit-generator": "latest"
"tslib": "^2.1.0"
},
"devDependencies": {
"@types/express": "^4.17.0",