package.json: simplify 'prepare-package' script

This commit is contained in:
Ivan Folgueira Bande 2024-01-13 20:10:25 +01:00
parent 12a31380a7
commit c6116d74b8
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"clean": "rm -rf dist",
"compile": "tsc src/SetupPackage.ts --outDir dist/",
"prepare-package": "mkdir dist && npm run clean && npm run compile && node dist/SetupPackage.js && cp src/distributed_readme.md dist/README.md",
"prepare-package": "npm run compile && node dist/SetupPackage.js && cp src/distributed_readme.md dist/README.md",
"build-libwaku": "cd src/vendor/nwaku && yes Y | make libwaku && cp build/libwaku.so ../../../dist/",
"build-gyp": "node-gyp configure --directory=src/ && node-gyp build --directory=src/ && cp -r src/build/ dist/",
"build-package": "cd dist && npm pack",