Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor update for node build #2393

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading