Content-Length: 305096 | pFad | https://github.com/NativeScript/nativescript-cli/commit/d96fde1f151e1565ac38d311b42a91b552d70d1c

E2 fix: ensure plugin path is defined to process configs · NativeScript/nativescript-cli@d96fde1 · GitHub
Skip to content

Commit d96fde1

Browse files
committed
fix: ensure plugin path is defined to process configs
1 parent b2bad0c commit d96fde1

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

lib/services/ios-project-service.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,19 +1179,21 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
11791179

11801180
const pluginSpmPackages = [];
11811181
for (const plugin of pluginsData) {
1182-
const pluginConfigPath = path.join(
1183-
plugin.fullPath,
1184-
constants.CONFIG_FILE_NAME_TS
1185-
);
1186-
if (this.$fs.exists(pluginConfigPath)) {
1187-
const config = this.$projectConfigService.readConfig(plugin.fullPath);
1188-
const packages = _.get(
1189-
config,
1190-
`${platformData.platformNameLowerCase}.SPMPackages`,
1191-
[]
1182+
if (plugin.fullPath) {
1183+
const pluginConfigPath = path.join(
1184+
plugin.fullPath,
1185+
constants.CONFIG_FILE_NAME_TS
11921186
);
1193-
if (packages.length) {
1194-
pluginSpmPackages.push(...packages);
1187+
if (this.$fs.exists(pluginConfigPath)) {
1188+
const config = this.$projectConfigService.readConfig(plugin.fullPath);
1189+
const packages = _.get(
1190+
config,
1191+
`${platformData.platformNameLowerCase}.SPMPackages`,
1192+
[]
1193+
);
1194+
if (packages.length) {
1195+
pluginSpmPackages.push(...packages);
1196+
}
11951197
}
11961198
}
11971199
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/NativeScript/nativescript-cli/commit/d96fde1f151e1565ac38d311b42a91b552d70d1c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy