also looking at this
fix(deps): finish the TypeScript 7 move across the workspace
#44
5 files
+12
-4
| @@ -209,7 +209,9 @@ export function renderOrientations(config: CraftConfig): string { | ||
| 209 | 209 | 'landscape-right': 'UIInterfaceOrientationLandscapeRight', |
| 210 | 210 | 'portrait-upside-down': 'UIInterfaceOrientationPortraitUpsideDown', |
| 211 | 211 | } |
| 212 | const values = config.orientations?.length ? config.orientations : ['portrait'] | |
| 212 | // Annotated, not inferred: the `['portrait']` fallback widens to string[] | |
| 213 | // on its own, which then cannot index `names`. | |
| 214 | const values: NonNullable<CraftConfig['orientations']> = config.orientations?.length ? config.orientations : ['portrait'] | |
| 213 | 215 | return values.map(value => ` <string>${names[value]}</string>`).join('\n') |
| 214 | 216 | } |
| 215 | 217 | |
| @@ -25,8 +25,8 @@ 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 --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 --outDir ${resolve(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')}` | |
| 30 | 30 | await cp(resolve(root, '../ios/templates'), resolve(dist, 'ios/templates'), { recursive: true }) |
| 31 | 31 | await cp(resolve(root, '../android/templates'), resolve(dist, 'android/templates'), { recursive: true }) |
| 32 | 32 | |