We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc46f1c commit 6f64d20Copy full SHA for 6f64d20
lib/services/project-config-service.ts
@@ -296,9 +296,20 @@ export default {
296
packageJson.nativescript &&
297
packageJson.nativescript.id
298
) {
299
- additionalData.push({
300
- id: packageJson.nativescript.id,
301
- });
+ const ids = packageJson.nativescript.id;
+ if (typeof ids === "string") {
+ additionalData.push({
302
+ id: packageJson.nativescript.id,
303
+ });
304
+ } else if (typeof ids === "object") {
305
+ for (const platform of Object.keys(ids)) {
306
307
+ [platform]: {
308
+ id: packageJson.nativescript.id[platform],
309
+ },
310
311
+ }
312
313
}
314
315
return Object.assign({}, ...additionalData, NSConfig);
0 commit comments