Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
release-npm:
name: Release NPM packages
runs-on: ubuntu-24.04
timeout-minutes: 30
timeout-minutes: 60
if: github.event_name != 'workflow_dispatch'
steps:
- name: Check out repo
Expand Down
3 changes: 1 addition & 2 deletions packages/js-evo-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
"lint": "eslint \"src/**/*.ts\" \"tests/**/*.*js\"",
"test": "yarn run test:unit && yarn run test:functional",
"test:unit": "mocha tests/unit/**/*.spec.mjs && karma start ./tests/karma/karma.conf.cjs --single-run",
"test:functional": "mocha tests/functional/**/*.spec.mjs --exit --timeout 90000 && karma start ./tests/karma/karma.functional.conf.cjs --single-run",
"prepack": "yarn build"
"test:functional": "mocha tests/functional/**/*.spec.mjs --exit --timeout 90000 && karma start ./tests/karma/karma.functional.conf.cjs --single-run"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.55.0",
Expand Down
4 changes: 1 addition & 3 deletions packages/wasm-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@
"node": ">=18.18"
},
"scripts": {
"build:dev": "./scripts/build.sh && node ./scripts/bundle.cjs",
"build": "./scripts/build.sh && node ./scripts/bundle.cjs",
"build:release": "./scripts/build-optimized.sh && node ./scripts/bundle.cjs",
"build": "yarn build:dev",
"prepack": "yarn build:release",
"test": "yarn run test:unit && yarn run test:functional",
"test:unit": "mocha tests/unit/**/*.spec.mjs && karma start ./tests/karma/karma.conf.cjs --single-run",
"test:functional": "mocha tests/functional/**/*.spec.mjs && karma start ./tests/karma/karma.functional.conf.cjs --single-run",
Expand Down
6 changes: 6 additions & 0 deletions packages/wasm-sdk/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ set -euo pipefail
# Get script directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# If building with release profile, use the optimized build script
if [ "${CARGO_BUILD_PROFILE:-}" = "release" ]; then
# exec replaces the current shell process; the script will not continue after this.
exec "$SCRIPT_DIR/build-optimized.sh"
fi

# Determine optimization level based on environment
OPT_LEVEL="full"
if [ "${CARGO_BUILD_PROFILE:-}" = "dev" ] || [ "${CI:-}" != "true" ]; then
Expand Down
Loading