@expo/repack-app 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/bin/cli.js +2 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +16 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,9 +22,9 @@ repack-app [options] [project-root]
|
|
|
22
22
|
#### Android-specific Options
|
|
23
23
|
|
|
24
24
|
- `--ks <path>`: Path to the keystore file
|
|
25
|
-
- `--ks-pass <password>`: Keystore password (
|
|
25
|
+
- `--ks-pass <password>`: Keystore password (supported formats: `pass:<password>`, `env:<name>`, `file:<file>`)
|
|
26
26
|
- `--ks-key-alias <alias>`: Keystore key alias
|
|
27
|
-
- `--ks-key-pass <password>`: Keystore key password (
|
|
27
|
+
- `--ks-key-pass <password>`: Keystore key password (supported formats: `pass:<password>`, `env:<name>`, `file:<file>`)
|
|
28
28
|
|
|
29
29
|
#### iOS-specific Options
|
|
30
30
|
|
|
@@ -34,8 +34,8 @@ repack-app [options] [project-root]
|
|
|
34
34
|
|
|
35
35
|
#### Bundle Options
|
|
36
36
|
|
|
37
|
-
- `--embed-bundle-assets`:
|
|
38
|
-
- `--bundle-assets-sourcemap-output <path>`: Generate sourcemap
|
|
37
|
+
- `--embed-bundle-assets`: Force embedding of bundle assets
|
|
38
|
+
- `--bundle-assets-sourcemap-output <path>`: Generate sourcemap at the specified path (used with --embed-bundle-assets)
|
|
39
39
|
|
|
40
40
|
### Programmatic Usage
|
|
41
41
|
|
|
@@ -101,7 +101,7 @@ The following options are available when using the API programmatically:
|
|
|
101
101
|
- `workingDirectory?`: string - Working directory for temporary files
|
|
102
102
|
- `outputPath?`: string - Path to the output app file (defaults to `projectRoot/repacked.apk` or `projectRoot/repacked.ipa`)
|
|
103
103
|
- `verbose?`: boolean - Enable verbose logging
|
|
104
|
-
- `exportEmbedOptions?`: ExportEmbedOptions - Options for embedding JS bundle
|
|
104
|
+
- `exportEmbedOptions?`: ExportEmbedOptions - Options for embedding JS bundle. When specified, repack will generate bundle assets.
|
|
105
105
|
- `skipWorkingDirCleanup?`: boolean - Skip working directory cleanup
|
|
106
106
|
- `env?`: Record<string, string | undefined> - Environment variables
|
|
107
107
|
|
|
@@ -109,9 +109,9 @@ The following options are available when using the API programmatically:
|
|
|
109
109
|
|
|
110
110
|
- `androidSigningOptions?`: AndroidSigningOptions - Options for signing the Android app
|
|
111
111
|
- `keyStorePath`: string - Path to the keystore file
|
|
112
|
-
- `keyStorePassword`: string - Keystore password (
|
|
112
|
+
- `keyStorePassword`: string - Keystore password (supported formats: `pass:<password>`, `env:<name>`, `file:<file>`)
|
|
113
113
|
- `keyAlias?`: string - Keystore key alias
|
|
114
|
-
- `keyPassword?`: string - Keystore key password (
|
|
114
|
+
- `keyPassword?`: string - Keystore key password (supported formats: `pass:<password>`, `env:<name>`, `file:<file>`)
|
|
115
115
|
- `androidBuildToolsDir?`: string - Path to Android SDK build-tools directory
|
|
116
116
|
|
|
117
117
|
#### iOS-specific Options
|
package/bin/cli.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const { Command } = require('commander');
|
|
4
4
|
const pico = require('picocolors');
|
|
5
|
+
|
|
5
6
|
const { ConsoleLogger, repackAppAndroidAsync, repackAppIosAsync } = require('../dist/index');
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -24,7 +25,7 @@ const program = new Command('repack-app')
|
|
|
24
25
|
.option('--signing-identity <identity>', 'Signing identity')
|
|
25
26
|
.option('--provisioning-profile <path>', 'Path to the provisioning profile')
|
|
26
27
|
// export:embed options
|
|
27
|
-
.option('--embed-bundle-assets', '
|
|
28
|
+
.option('--embed-bundle-assets', 'Force embedding of bundle assets')
|
|
28
29
|
.option(
|
|
29
30
|
'--bundle-assets-sourcemap-output <path>',
|
|
30
31
|
'Paired with --embed-bundle-assets and generate the sourcemap to the specified path'
|
package/dist/index.d.ts
CHANGED
|
@@ -131,7 +131,9 @@ export declare interface Options {
|
|
|
131
131
|
*/
|
|
132
132
|
verbose?: boolean;
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
134
|
+
* The options for the `npx expo export:embed` command to embed the JS bundle.
|
|
135
|
+
* If provided, repack will execute the `npx expo export:embed` command to embed the JS bundle.
|
|
136
|
+
* If not provided, repack will based on the source app type to determine whether to embed the JS bundle.
|
|
135
137
|
*/
|
|
136
138
|
exportEmbedOptions?: ExportEmbedOptions;
|
|
137
139
|
/**
|