Skip to content

Commit

Permalink
fix: Correct broken JS includes
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyJones committed Oct 1, 2024
1 parent 9e2ece2 commit a439292
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/case-definition-dsl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"build:docs:local": "api-extractor run --local --verbose && api-documenter markdown --input-folder api-extractor --output-folder docs && npm run format:fix",
"watch": "jsii -w",
"prepackage": "rimraf dist",
"prepack": "mkdirp node_modules/@contract-case && ln -sf ${PWD}/../case-entities node_modules/@contract-case/case-entities-internal && ln -sf ${PWD}/../case-core-plugin-http-dsl node_modules/@contract-case/case-core-plugin-http-dsl && ln -sf ${PWD}/../case-plugin-base node_modules/@contract-case/case-plugin-base && ln -sf ${PWD}/../case-core-function-dsl node_modules/@contract-case/case-core-function-dsl",
"prepack": "bash -c './script/link-bundled-deps.sh'",
"package": "jsii-pacmak",
"publish:maven": "publib-maven",
"test": "jest",
Expand Down
8 changes: 8 additions & 0 deletions packages/case-definition-dsl/script/link-bundled-deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash -eu
set -eu # We do this twice so that windows github runners will properly read them
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)" # Figure out where the script is running


BASE=$(realpath "$SCRIPT_DIR"/../../../node_modules/@contract-case/)

find "$BASE"* -exec bash -c 'echo $0; mkdir -p .'"$SCRIPT_DIR"/..'/node_modules/@contract-case/$(basename $0); cp -R "$0/"* ./node_modules/@contract-case/$(basename $0) 2>/dev/null; echo done' '{}' \;

0 comments on commit a439292

Please sign in to comment.