Skip to content

Commit fce8913

Browse files
feat(create): Keep pluginsData key from template's package.json
In case project template has a preconfigured plugins data (for example API keys), it will be stored in the template's package.json. After creating the project, CLI removes all keys except the one defined in `PackageJsonKeysToKeep` array from `app/package.json` file. So it removes the predefined configuration of the pluginData. Fix this by adding the entry "pluginsData" in the array, so we'll keep it as well.
1 parent 679445d commit fce8913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class LiveSyncTrackActionNames {
4646
static DEVICE_INFO = `Device Info for ${liveSyncOperation}`;
4747
}
4848

49-
export const PackageJsonKeysToKeep: Array<String> = ["name", "main", "android", "version"];
49+
export const PackageJsonKeysToKeep: Array<String> = ["name", "main", "android", "version", "pluginsData"];
5050

5151
export class SaveOptions {
5252
static PRODUCTION = "save";

0 commit comments

Comments
 (0)