mirror of
				https://gitcode.com/github-mirrors/react-native-update-cli.git
				synced 2025-10-31 14:53:11 +08:00 
			
		
		
		
	Refactor bundle file handling by introducing isPPKBundleFileName utility; streamline diff logic for bundle files in bundle.ts.
This commit is contained in:
		| @@ -3,6 +3,10 @@ import path from 'path'; | ||||
| export const scriptName = path.basename(process.argv[1]) as 'cresc' | 'pushy'; | ||||
| export const IS_CRESC = scriptName === 'cresc'; | ||||
|  | ||||
| export const ppkBundleFileNames = ['index.bundlejs', 'bundle.harmony.js']; | ||||
| export const isPPKBundleFileName = (fileName: string) => | ||||
|   ppkBundleFileNames.includes(fileName); | ||||
|  | ||||
| export const credentialFile = IS_CRESC ? '.cresc.token' : '.update'; | ||||
| export const updateJson = IS_CRESC ? 'cresc.config.json' : 'update.json'; | ||||
| export const tempDir = IS_CRESC ? '.cresc.temp' : '.pushy'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm