()
| 17 | ).then((arr) => arr.filter((x) => !x.includes("node_modules") && !x.includes("dist"))) |
| 18 | |
| 19 | async function prepareReleaseFiles() { |
| 20 | for (const file of pkgjsons) { |
| 21 | let pkg = await Bun.file(file).text() |
| 22 | pkg = pkg.replaceAll(/"version": "[^"]+"/g, `"version": "${Script.version}"`) |
| 23 | console.log("updated:", file) |
| 24 | await Bun.file(file).write(pkg) |
| 25 | } |
| 26 | |
| 27 | await $`bun install` |
| 28 | await $`./packages/sdk/js/script/build.ts` |
| 29 | } |
| 30 | |
| 31 | if (Script.release && !Script.preview) { |
| 32 | await $`git fetch origin --tags` |
no test coverage detected