Skip to content

Commit 93237d9

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 4b5c98c commit 93237d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class LiveSyncTrackActionNames {
4141
static DEVICE_INFO = `Device Info for ${liveSyncOperation}`;
4242
}
4343

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

4646
export class SaveOptions {
4747
static PRODUCTION = "save";

0 commit comments

Comments
 (0)