From 93237d94b673b848de374df75d5c11e3d83cf92a Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Thu, 1 Mar 2018 12:06:18 +0200 Subject: [PATCH] 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. --- lib/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/constants.ts b/lib/constants.ts index 0525e4f425..4d343e3526 100644 --- a/lib/constants.ts +++ b/lib/constants.ts @@ -41,7 +41,7 @@ export class LiveSyncTrackActionNames { static DEVICE_INFO = `Device Info for ${liveSyncOperation}`; } -export const PackageJsonKeysToKeep: Array = ["name", "main", "android", "version"]; +export const PackageJsonKeysToKeep: Array = ["name", "main", "android", "version", "pluginsData"]; export class SaveOptions { static PRODUCTION = "save";