Always make, never package.json scripts

This commit is contained in:
dancoffman 2022-11-03 22:49:06 -07:00
parent b031251f59
commit b6615527e9
No known key found for this signature in database
GPG Key ID: 47B1F53E36A9B3CC
3 changed files with 24 additions and 13 deletions

View File

@ -1,11 +1,22 @@
clean:
yarn clean
yarn node-gyp clean
rm -rf build
rm -f *.node
rm -f dist/kzg.node
rm -f *.a
rm -f *.o
build: kzg.cxx Makefile
build: kzg.cxx kzg.ts package.json Makefile
cd ../../src; make lib
yarn
yarn node-gyp rebuild
cp build/Release/kzg.node .
cp build/Release/kzg.node ./dist
test:
yarn jest
format:
yarn prettier --write .
bundle:
yarn rollup --config rollup.config.js --bundleConfigAsCjs

View File

@ -5,13 +5,6 @@
"author": "Dan Coffman",
"license": "MIT",
"main": "dist/kzg.js",
"scripts": {
"clean": "node-gyp clean",
"build": "node-gyp rebuild",
"test": "jest",
"format": "yarn prettier --write .",
"bundle": "rollup --config rollup.config.js --bundleConfigAsCjs"
},
"devDependencies": {
"@babel/preset-typescript": "^7.18.6",
"@rollup/plugin-typescript": "^9.0.2",
@ -20,9 +13,9 @@
"node-addon-api": "^5.0.0",
"node-gyp": "^9.3.0",
"prettier": "2.7.1",
"rollup": "^3.2.5",
"ts-jest": "^29.0.3",
"tslib": "^2.4.1",
"typescript": "^4.8.4"
},
"dependencies": {}
}
}

View File

@ -1302,7 +1302,7 @@ fs.realpath@^1.0.0:
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
fsevents@^2.3.2:
fsevents@^2.3.2, fsevents@~2.3.2:
version "2.3.2"
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
@ -2403,6 +2403,13 @@ rimraf@^3.0.2:
dependencies:
glob "^7.1.3"
rollup@^3.2.5:
version "3.2.5"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.2.5.tgz#9452168ac083218c8212bf53d2448bdc6b8b0de7"
integrity sha512-/Ha7HhVVofduy+RKWOQJrxe4Qb3xyZo+chcpYiD8SoQa4AG7llhupUtyfKSSrdBM2mWJjhM8wZwmbY23NmlIYw==
optionalDependencies:
fsevents "~2.3.2"
safe-buffer@~5.2.0:
version "5.2.1"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"