11#!/usr/bin/env node
22
33/**
4- * Generates the @sqliteai/sqlite-sync-expo package
4+ * Generates the @sqliteai/sqlite-sync-expo-dev package
55 *
66 * This script creates an npm package that bundles CloudSync binaries
77 * for Expo apps, with an Expo config plugin for automatic setup.
1010 * node generate-expo-package.js <version> <artifacts-dir> <output-dir>
1111 *
1212 * Example:
13- * node generate-expo-package.js 0.8.53 ./artifacts ./expo-package
13+ * node generate-expo-package.js 0.9.92 ./artifacts ./expo-package
1414 */
1515
1616const fs = require ( 'fs' ) ;
@@ -28,7 +28,7 @@ const ANDROID_ARCHS = [
2828 */
2929function generatePackageJson ( version ) {
3030 return {
31- name : '@sqliteai/sqlite-sync-expo' ,
31+ name : '@sqliteai/sqlite-sync-expo-dev ' ,
3232 version : version ,
3333 description : 'SQLite Sync extension for Expo - Sync on-device databases with SQLite Cloud' ,
3434 main : 'src/index.js' ,
@@ -77,20 +77,20 @@ function generatePackageJson(version) {
7777 */
7878function generateIndexJs ( ) {
7979 return `/**
80- * @sqliteai/sqlite-sync-expo
80+ * @sqliteai/sqlite-sync-expo-dev
8181 *
8282 * SQLite Sync extension binaries for Expo.
8383 * This package provides pre-built binaries and an Expo config plugin.
8484 *
8585 * Usage:
86- * 1. Add to app.json plugins: ["@sqliteai/sqlite-sync-expo"]
86+ * 1. Add to app.json plugins: ["@sqliteai/sqlite-sync-expo-dev "]
8787 * 2. Run: npx expo prebuild --clean
8888 * 3. Load extension in your code (see README)
8989 */
9090
9191module.exports = {
9292 // Package metadata
93- name: '@sqliteai/sqlite-sync-expo',
93+ name: '@sqliteai/sqlite-sync-expo-dev ',
9494
9595 // Extension identifiers for loading
9696 ios: {
@@ -108,7 +108,7 @@ module.exports = {
108108 * Generate src/index.d.ts
109109 */
110110function generateIndexDts ( ) {
111- return `declare module '@sqliteai/sqlite-sync-expo' {
111+ return `declare module '@sqliteai/sqlite-sync-expo-dev ' {
112112 export const name: string;
113113
114114 export const ios: {
@@ -131,12 +131,12 @@ function generateAppPlugin() {
131131 * Expo Config Plugin for SQLite Sync Extension
132132 *
133133 * This plugin automatically configures iOS and Android to include the SQLite Sync
134- * native binaries. Just add "@sqliteai/sqlite-sync-expo" to your app.json plugins.
134+ * native binaries. Just add "@sqliteai/sqlite-sync-expo-dev " to your app.json plugins.
135135 *
136136 * Usage in app.json:
137137 * {
138138 * "expo": {
139- * "plugins": ["@sqliteai/sqlite-sync-expo"]
139+ * "plugins": ["@sqliteai/sqlite-sync-expo-dev "]
140140 * }
141141 * }
142142 */
@@ -176,12 +176,12 @@ function withSqliteSyncIOS(config) {
176176 if (!fs.existsSync(srcFrameworkPath)) {
177177 throw new Error(
178178 \`CloudSync.xcframework not found at \${srcFrameworkPath}. \` +
179- 'This is a bug in @sqliteai/sqlite-sync-expo - the package is missing iOS binaries.'
179+ 'This is a bug in @sqliteai/sqlite-sync-expo-dev - the package is missing iOS binaries.'
180180 );
181181 }
182182
183183 // Copy xcframework to iOS project directory
184- console.log(\`[@sqliteai/sqlite-sync-expo] Copying xcframework to \${destFrameworkPath}\`);
184+ console.log(\`[@sqliteai/sqlite-sync-expo-dev ] Copying xcframework to \${destFrameworkPath}\`);
185185 fs.cpSync(srcFrameworkPath, destFrameworkPath, { recursive: true });
186186
187187 // Get the main app target
@@ -197,7 +197,7 @@ function withSqliteSyncIOS(config) {
197197 );
198198
199199 if (!embedFrameworksBuildPhase) {
200- console.log('[@sqliteai/sqlite-sync-expo] Creating "Embed Frameworks" build phase');
200+ console.log('[@sqliteai/sqlite-sync-expo-dev ] Creating "Embed Frameworks" build phase');
201201 xcodeProject.addBuildPhase(
202202 [],
203203 'PBXCopyFilesBuildPhase',
@@ -209,7 +209,7 @@ function withSqliteSyncIOS(config) {
209209
210210 // Add the framework to the project
211211 const relativePath = \`\${projectName}/CloudSync.xcframework\`;
212- console.log(\`[@sqliteai/sqlite-sync-expo] Adding framework: \${relativePath}\`);
212+ console.log(\`[@sqliteai/sqlite-sync-expo-dev ] Adding framework: \${relativePath}\`);
213213
214214 xcodeProject.addFramework(relativePath, {
215215 target: target.uuid,
@@ -219,7 +219,7 @@ function withSqliteSyncIOS(config) {
219219 link: true,
220220 });
221221
222- console.log('[@sqliteai/sqlite-sync-expo] iOS setup complete');
222+ console.log('[@sqliteai/sqlite-sync-expo-dev ] iOS setup complete');
223223 return config;
224224 });
225225}
@@ -257,7 +257,7 @@ function withSqliteSyncAndroid(config) {
257257 // Check source exists
258258 if (!fs.existsSync(srcFile)) {
259259 console.warn(
260- \`[@sqliteai/sqlite-sync-expo] Warning: \${srcFile} not found, skipping \${arch}\`
260+ \`[@sqliteai/sqlite-sync-expo-dev ] Warning: \${srcFile} not found, skipping \${arch}\`
261261 );
262262 continue;
263263 }
@@ -266,11 +266,11 @@ function withSqliteSyncAndroid(config) {
266266 fs.mkdirSync(destDir, { recursive: true });
267267
268268 // Copy the .so file
269- console.log(\`[@sqliteai/sqlite-sync-expo] Copying \${arch}/cloudsync.so\`);
269+ console.log(\`[@sqliteai/sqlite-sync-expo-dev ] Copying \${arch}/cloudsync.so\`);
270270 fs.copyFileSync(srcFile, destFile);
271271 }
272272
273- console.log('[@sqliteai/sqlite-sync-expo] Android setup complete');
273+ console.log('[@sqliteai/sqlite-sync-expo-dev ] Android setup complete');
274274 return config;
275275 },
276276 ]);
@@ -280,7 +280,7 @@ function withSqliteSyncAndroid(config) {
280280 * Main plugin function - combines iOS and Android plugins
281281 */
282282function withSqliteSync(config) {
283- console.log('[@sqliteai/sqlite-sync-expo] Configuring SQLite Sync extension...');
283+ console.log('[@sqliteai/sqlite-sync-expo-dev ] Configuring SQLite Sync extension...');
284284
285285 // Apply iOS modifications
286286 config = withSqliteSyncIOS(config);
@@ -299,7 +299,7 @@ module.exports = withSqliteSync;
299299 * Generate README.md
300300 */
301301function generateReadme ( version ) {
302- return `# @sqliteai/sqlite-sync-expo
302+ return `# @sqliteai/sqlite-sync-expo-dev
303303
304304SQLite Sync extension for Expo apps.
305305
@@ -310,9 +310,9 @@ This package provides pre-built SQLite Sync binaries for iOS and Android, along
310310## Installation
311311
312312\`\`\`bash
313- npm install @sqliteai/sqlite-sync-expo @op-engineering/op-sqlite
313+ npm install @sqliteai/sqlite-sync-expo-dev @op-engineering/op-sqlite
314314# or
315- yarn add @sqliteai/sqlite-sync-expo @op-engineering/op-sqlite
315+ yarn add @sqliteai/sqlite-sync-expo-dev @op-engineering/op-sqlite
316316\`\`\`
317317
318318## Setup
@@ -322,7 +322,7 @@ yarn add @sqliteai/sqlite-sync-expo @op-engineering/op-sqlite
322322\`\`\`json
323323{
324324 "expo": {
325- "plugins": ["@sqliteai/sqlite-sync-expo"]
325+ "plugins": ["@sqliteai/sqlite-sync-expo-dev "]
326326 }
327327}
328328\`\`\`
@@ -396,7 +396,7 @@ function main() {
396396
397397 if ( args . length < 3 ) {
398398 console . error ( 'Usage: node generate-expo-package.js <version> <artifacts-dir> <output-dir>' ) ;
399- console . error ( 'Example: node generate-expo-package.js 0.8.53 ./artifacts ./expo-package' ) ;
399+ console . error ( 'Example: node generate-expo-package.js 0.9.92 ./artifacts ./expo-package' ) ;
400400 process . exit ( 1 ) ;
401401 }
402402
@@ -405,7 +405,7 @@ function main() {
405405 // Validate version format
406406 if ( ! / ^ \d + \. \d + \. \d + $ / . test ( version ) ) {
407407 console . error ( `Error: Invalid version format: ${ version } ` ) ;
408- console . error ( 'Version must be in semver format (e.g., 0.8.53 )' ) ;
408+ console . error ( 'Version must be in semver format (e.g., 0.9.92 )' ) ;
409409 process . exit ( 1 ) ;
410410 }
411411
@@ -416,7 +416,7 @@ function main() {
416416 process . exit ( 1 ) ;
417417 }
418418
419- console . log ( `Generating @sqliteai/sqlite-sync-expo package version ${ version } ...\n` ) ;
419+ console . log ( `Generating @sqliteai/sqlite-sync-expo-dev package version ${ version } ...\n` ) ;
420420
421421 // Create output directory structure
422422 const srcDir = path . join ( outputDir , 'src' ) ;
@@ -495,7 +495,7 @@ function main() {
495495 }
496496
497497 console . log ( '\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━' ) ;
498- console . log ( `✅ Generated @sqliteai/sqlite-sync-expo@${ version } ` ) ;
498+ console . log ( `✅ Generated @sqliteai/sqlite-sync-expo-dev @${ version } ` ) ;
499499 console . log ( ` iOS: CloudSync.xcframework` ) ;
500500 console . log ( ` Android: ${ androidSuccess } /${ ANDROID_ARCHS . length } architectures` ) ;
501501 console . log ( '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━' ) ;
0 commit comments