Skip to content

Commit

Permalink
Standalone package fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessByte committed Jul 30, 2024
1 parent b9e83ce commit cd825c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ else
cp "${ROOT}/.yarnrc.yml" "${OUTPUT}/.yarnrc.yml"
cp "${ROOT}/yarn.lock" "${OUTPUT}/yarn.lock"
cp "${ROOT}/.pnp.cjs" "${OUTPUT}/.pnp.cjs"
cp "${ROOT}/.pnp.cjs" "${OUTPUT}/.pnp.loader.mjs"
cp "${ROOT}/.pnp.loader.mjs" "${OUTPUT}/.pnp.loader.mjs"

# Rename babel.config.js and package.json
if test -f "${OUTPUT}babel.config.js"; then
Expand Down Expand Up @@ -145,6 +145,10 @@ else
echo "Test runnner root does not contain output directory. Turning output directory into a standalone package."

# Turn into standalone package
cp "${ROOT}/.yarnrc.yml" "${OUTPUT}/.yarnrc.yml"
cp "${ROOT}/yarn.lock" "${OUTPUT}/yarn.lock"
cp "${ROOT}/.pnp.cjs" "${OUTPUT}/.pnp.cjs"
cp "${ROOT}/.pnp.loader.mjs" "${OUTPUT}/.pnp.loader.mjs"
cp "${ROOT}/package.json" "${OUTPUT}package.json"
fi

Expand Down

0 comments on commit cd825c9

Please sign in to comment.