ReviewOS

also looking at this

craft-native/craft

fix(release): build and verify all npm package artifacts

#289
Merged glennmichael123 wants to merge codex/npm-release-artifacts into main
11 files +290 -3
packages/ios/build.tsmodified+5-0
Changes to packages/ios/build.ts
@@ -1,8 +1,13 @@
1import { rm } from 'node:fs/promises'
12import { $ } from 'bun'
23
4await rm('./dist', { recursive: true, force: true })
5
36// Build TypeScript
47await $`bun build src/index.ts --outdir dist --target bun`
58await $`bun build src/cli.ts --outdir dist --target bun`
9// The standalone package advertises this declaration independently of the SDK.
10await $`bun ../typescript/scripts/tsc.ts src/index.ts --declaration --emitDeclarationOnly --module esnext --target esnext --moduleResolution bundler --types bun --skipLibCheck --ignoreConfig --outDir dist`
611
712// Make CLI executable
813await $`chmod +x dist/cli.js`