also looking at this
fix(ci): build the SDK types with the repo's own tsc (and pin the pantry action)
#104
29 files
+85
-56
| @@ -25,8 +25,9 @@ async function build(entrypoints: string[], outdir: string): Promise<void> { | ||
| 25 | 25 | // their implementation and templates instead of importing unpublished peers. |
| 26 | 26 | await build(['../ios/src/index.ts'], 'dist/ios/src') |
| 27 | 27 | await build(['../android/src/index.ts'], 'dist/android/src') |
| 28 | await Bun.$`bunx tsc ${resolve(root, '../ios/src/index.ts')} --declaration --emitDeclarationOnly --module esnext --target esnext --moduleResolution bundler --types bun --skipLibCheck --ignoreConfig --outDir ${resolve(dist, 'ios/src')}` | |
| 29 | await Bun.$`bunx tsc ${resolve(root, '../android/src/index.ts')} --declaration --emitDeclarationOnly --module esnext --target esnext --moduleResolution bundler --types bun --skipLibCheck --ignoreConfig --outDir ${resolve(dist, 'android/src')}` | |
| 28 | // scripts/tsc.ts, not `bunx tsc`: PATH is not trustworthy in CI. See that file. | |
| 29 | await Bun.$`bun ${resolve(root, "scripts/tsc.ts")} ${resolve(root, '../ios/src/index.ts')} --declaration --emitDeclarationOnly --module esnext --target esnext --moduleResolution bundler --types bun --skipLibCheck --ignoreConfig --outDir ${resolve(dist, 'ios/src')}` | |
| 30 | await Bun.$`bun ${resolve(root, "scripts/tsc.ts")} ${resolve(root, '../android/src/index.ts')} --declaration --emitDeclarationOnly --module esnext --target esnext --moduleResolution bundler --types bun --skipLibCheck --ignoreConfig --outDir ${resolve(dist, 'android/src')}` | |
| 30 | 31 | await cp(resolve(root, '../ios/templates'), resolve(dist, 'ios/templates'), { recursive: true }) |
| 31 | 32 | await cp(resolve(root, '../android/templates'), resolve(dist, 'android/templates'), { recursive: true }) |
| 32 | 33 | |