Changed build scripts for examples and main project

This commit is contained in:
Alexander Cerutti
2021-02-05 08:08:13 +01:00
parent 2e77f06950
commit 3290b697b4
11 changed files with 42 additions and 14 deletions

View File

@@ -5,7 +5,11 @@
"author": "Alexander P. Cerutti <cerutti.alexander@gmail.com>",
"license": "ISC",
"scripts": {
"build": "cd ..; npm run build; cd examples"
"preinstall": "npm run clear:deps && npm unlink --no-save passkit-generator && cd .. && npm run build && npm link && cd examples && npm link passkit-generator",
"example": "cd build && node",
"build": "npm run build:clear && npx tsc",
"build:clear": "rm -rf build",
"clear:deps": "rm -rf node_modules"
},
"dependencies": {
"express": "^4.17.1",