Repository navigation
fix(scripts): fix broken root scripts and missing contract scaffold - #1413
Merged
Hexstar-labs merged 1 commit intoOct 21, 2026
Merged
Conversation
- fix(scripts/build-wasm.sh): replace hard-coded non-existent paths
(stellar-contract/, packages/contracts/contracts/market/) with a loop
over contracts/*/ using the actual Cargo.toml presence as a guard
- fix(scripts/publish-registry.sh): replace deprecated 'soroban contract
install' with 'stellar contract install'; resolve WASM files from
target/wasm32-unknown-unknown/release/ instead of the repo root
- feat(backend/seeds): create missing seed entry-point files that
seed:basic, seed:performance and seed:cleanup npm scripts resolve to
(apps/backend/src/test/seeds/{basic,performance,cleanup}.seed.ts)
- fix(contracts/escrow): add missing Cargo.toml so the crate compiles;
add contracts/escrow to workspace members in root Cargo.toml
- fix(scripts): add execute bit (+x) to 13 scripts that were missing it:
audit-eslint-disables.sh, audit-imports.sh, ci-local.sh,
consolidate-types.sh, find-duplicate-types.sh, find-unused-exports.sh,
fix-imports.sh, generate-contract-errors.js, generate-trend-report.js,
migrate-error-enums.sh, remove-unused-exports.sh
(build-wasm.sh and publish-registry.sh also fixed above)
Closes BrainTease#1382
|
@ola196 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes all root-level scripts that referenced non-existent paths or workspaces, and adds missing scaffolding so every script can execute.
Closes #1382
Changes
Broken scripts fixed
scripts/build-wasm.shstellar-contract/andpackages/contracts/contracts/market/do not existcontracts/*/guarded byCargo.tomlpresencescripts/publish-registry.shsoroban contract install(CLI is nowstellar); searched for.wasmin repo root where none are committedstellar contract install; resolves WASMs fromtarget/wasm32-unknown-unknown/release/scripts/seed-test-data.sh/scripts/seed-staging-data.shnpm run seed:basic/seed:performancewhose target files (src/test/seeds/*.seed.ts) were missingapps/backend/src/test/seeds/{basic,performance,cleanup}.seed.tsMissing scaffold added
contracts/escrow/Cargo.toml— the crate had source code but no manifest, socargo buildskipped it; addedCargo.tomland registered the crate in the root workspaceapps/backend/src/test/seeds/— three entry-point files created for theseed:basic,seed:performance, andseed:cleanupnpm scriptsExecute bit (+x) restored
13 scripts were non-executable and would fail with
Permission deniedon a fresh clone:audit-eslint-disables.sh,audit-imports.sh,build-wasm.sh,ci-local.sh,consolidate-types.sh,find-duplicate-types.sh,find-unused-exports.sh,fix-imports.sh,generate-contract-errors.js,generate-trend-report.js,migrate-error-enums.sh,publish-registry.sh,remove-unused-exports.shTesting
scripts/*.shandscripts/*.jsfiles are executable (chmod +xapplied)contracts/escrowis now a valid workspace member;cargo check --workspacewill include itsrc/database/seed.ts