11#!/usr/bin/env node
22
33/**
4- * Generates the @sqliteai/sqlite-sync-expo-dev package
4+ * Generates the @sqliteai/sqlite-sync-expo 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.
@@ -28,7 +28,7 @@ const ANDROID_ARCHS = [
2828 */
2929function generatePackageJson ( version ) {
3030 return {
31- name : '@sqliteai/sqlite-sync-expo-dev ' ,
31+ name : '@sqliteai/sqlite-sync-expo' ,
3232 version : version ,
3333 description : 'SQLite Sync extension for Expo - Sync on-device databases with SQLite Cloud' ,
3434 main : 'src/index.js' ,
@@ -53,12 +53,12 @@ function generatePackageJson(version) {
5353 license : 'SEE LICENSE IN LICENSE.md' ,
5454 repository : {
5555 type : 'git' ,
56- url : 'https://github.com/sqliteai/sqlite-sync-dev .git' ,
56+ url : 'https://github.com/sqliteai/sqlite-sync.git' ,
5757 directory : 'packages/expo' ,
5858 } ,
59- homepage : 'https://github.com/sqliteai/sqlite-sync-dev #react-native--expo' ,
59+ homepage : 'https://github.com/sqliteai/sqlite-sync#react-native--expo' ,
6060 bugs : {
61- url : 'https://github.com/sqliteai/sqlite-sync-dev /issues' ,
61+ url : 'https://github.com/sqliteai/sqlite-sync/issues' ,
6262 } ,
6363 peerDependencies : {
6464 expo : '>=51.0.0' ,
@@ -77,20 +77,20 @@ function generatePackageJson(version) {
7777 */
7878function generateIndexJs ( ) {
7979 return `/**
80- * @sqliteai/sqlite-sync-expo-dev
80+ * @sqliteai/sqlite-sync-expo
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-dev "]
86+ * 1. Add to app.json plugins: ["@sqliteai/sqlite-sync-expo"]
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-dev ',
93+ name: '@sqliteai/sqlite-sync-expo',
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-dev ' {
111+ return `declare module '@sqliteai/sqlite-sync-expo' {
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-dev " to your app.json plugins.
134+ * native binaries. Just add "@sqliteai/sqlite-sync-expo" to your app.json plugins.
135135 *
136136 * Usage in app.json:
137137 * {
138138 * "expo": {
139- * "plugins": ["@sqliteai/sqlite-sync-expo-dev "]
139+ * "plugins": ["@sqliteai/sqlite-sync-expo"]
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-dev - the package is missing iOS binaries.'
179+ 'This is a bug in @sqliteai/sqlite-sync-expo - the package is missing iOS binaries.'
180180 );
181181 }
182182
183183 // Copy xcframework to iOS project directory
184- console.log(\`[@sqliteai/sqlite-sync-expo-dev ] Copying xcframework to \${destFrameworkPath}\`);
184+ console.log(\`[@sqliteai/sqlite-sync-expo] 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-dev ] Creating "Embed Frameworks" build phase');
200+ console.log('[@sqliteai/sqlite-sync-expo] 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-dev ] Adding framework: \${relativePath}\`);
212+ console.log(\`[@sqliteai/sqlite-sync-expo] 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-dev ] iOS setup complete');
222+ console.log('[@sqliteai/sqlite-sync-expo] 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-dev ] Warning: \${srcFile} not found, skipping \${arch}\`
260+ \`[@sqliteai/sqlite-sync-expo] 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-dev ] Copying \${arch}/cloudsync.so\`);
269+ console.log(\`[@sqliteai/sqlite-sync-expo] Copying \${arch}/cloudsync.so\`);
270270 fs.copyFileSync(srcFile, destFile);
271271 }
272272
273- console.log('[@sqliteai/sqlite-sync-expo-dev ] Android setup complete');
273+ console.log('[@sqliteai/sqlite-sync-expo] 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-dev ] Configuring SQLite Sync extension...');
283+ console.log('[@sqliteai/sqlite-sync-expo] 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-dev
302+ return `# @sqliteai/sqlite-sync-expo
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-dev @op-engineering/op-sqlite
313+ npm install @sqliteai/sqlite-sync-expo @op-engineering/op-sqlite
314314# or
315- yarn add @sqliteai/sqlite-sync-expo-dev @op-engineering/op-sqlite
315+ yarn add @sqliteai/sqlite-sync-expo @op-engineering/op-sqlite
316316\`\`\`
317317
318318## Setup
@@ -322,7 +322,7 @@ yarn add @sqliteai/sqlite-sync-expo-dev @op-engineering/op-sqlite
322322\`\`\`json
323323{
324324 "expo": {
325- "plugins": ["@sqliteai/sqlite-sync-expo-dev "]
325+ "plugins": ["@sqliteai/sqlite-sync-expo"]
326326 }
327327}
328328\`\`\`
@@ -379,7 +379,7 @@ console.log('SQLite Sync Version:', result.rows[0].version);
379379
380380## Links
381381
382- - [SQLite Sync Documentation](https://github.com/sqliteai/sqlite-sync-dev )
382+ - [SQLite Sync Documentation](https://github.com/sqliteai/sqlite-sync)
383383- [SQLite Cloud](https://sqlitecloud.io)
384384
385385## License
@@ -416,7 +416,7 @@ function main() {
416416 process . exit ( 1 ) ;
417417 }
418418
419- console . log ( `Generating @sqliteai/sqlite-sync-expo-dev package version ${ version } ...\n` ) ;
419+ console . log ( `Generating @sqliteai/sqlite-sync-expo 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-dev @${ version } ` ) ;
498+ console . log ( `✅ Generated @sqliteai/sqlite-sync-expo@${ version } ` ) ;
499499 console . log ( ` iOS: CloudSync.xcframework` ) ;
500500 console . log ( ` Android: ${ androidSuccess } /${ ANDROID_ARCHS . length } architectures` ) ;
501501 console . log ( '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━' ) ;
0 commit comments