File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11import { Command } from 'commander' ;
22import path from 'path' ;
3+ import fs from 'fs' ;
34import chalk from 'chalk' ;
45import { detectReactNativeProject , loadProjectConfiguration } from './utils/detection.js' ;
56import { resolveFilePaths } from './utils/files.js' ;
6- import { handleUserCancellation , displayResults , showNextSteps } from './utils/ui .js' ;
7+ import { parsePackageJsonVersion , updatePackageJsonVersion } from './utils/packageJson .js' ;
78import { updateAndroidVersions } from './utils/android.js' ;
89import { updateIOSVersions } from './utils/ios.js' ;
9- import { updatePackageJsonVersion , parsePackageJsonVersion } from './utils/packageJson .js' ;
10+ import { handleUserCancellation , displayResults , showNextSteps } from './utils/ui .js' ;
1011import {
1112 promptForPlatformSelection ,
1213 promptForIncrementType ,
1314 promptForConfirmation ,
1415} from './utils/prompts.js' ;
15- import packageJson from '../package.json' with { type : 'json' } ;
16+
17+ // Load package.json
18+ const packageJsonPath = new URL ( '../package.json' , import . meta. url ) ;
19+ const packageJson = JSON . parse ( fs . readFileSync ( packageJsonPath , 'utf8' ) ) ;
1620
1721const program = new Command ( ) ;
1822
You can’t perform that action at this time.
0 commit comments