Skip to content

Commit

Permalink
Minor update for node build (valkey-io#2393)
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: BoazBD <[email protected]>
  • Loading branch information
Yury-Fridlyand authored and BoazBD committed Oct 27, 2024
1 parent d71a48a commit 98856a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"glide-rs"
],
"scripts": {
"build": "npm run build-internal && npm run build-protobuf && npm run build-external",
"build": "npm run prereq && npm run build-internal && npm run build-protobuf && npm run build-external",
"build:release": "npm run build-internal:release && npm run build-protobuf && npm run build-external:release",
"build:benchmark": "npm run build-internal:benchmark && npm run build-protobuf && npm run build-external",
"build-internal": "cd rust-client && npm run build",
Expand All @@ -30,6 +30,7 @@
"build-external:release": "rm -rf build-ts && tsc --stripInternal",
"build-protobuf": "npm run compile-protobuf-files && npm run fix-protobuf-file",
"compile-protobuf-files": "cd src && pbjs -t static-module -o ProtobufMessage.js ../../glide-core/src/protobuf/*.proto && pbts -o ProtobufMessage.d.ts ProtobufMessage.js",
"clean": "rm -rf build-ts rust-client/target docs glide-logs rust-client/glide-rs.*.node rust-client/index.* src/ProtobufMessage.*",
"fix-protobuf-file": "replace 'this\\.encode\\(message, writer\\)\\.ldelim' 'this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim' src/ProtobufMessage.js",
"test": "npm run build-test-utils && jest --verbose --runInBand --testPathIgnorePatterns='ServerModules'",
"test-minimum": "npm run build-test-utils && jest --verbose --runInBand --testNamePattern='^(.(?!(GlideJson|GlideFt|pubsub|kill)))*$'",
Expand All @@ -39,6 +40,7 @@
"lint": "npm run install-linting && npx eslint -c ../eslint.config.mjs && npm run prettier:check:ci",
"install-linting": "cd ../ & npm install",
"prepack": "npmignore --auto",
"prereq": "git submodule update --init --recursive && npm install",
"prettier:check:ci": "npx prettier --check . --ignore-unknown '!**/*.{js,d.ts}'",
"prettier:format": "npx prettier --write . --ignore-unknown '!**/*.{js,d.ts}'"
},
Expand Down

0 comments on commit 98856a4

Please sign in to comment.