Skip to content

Commit

Permalink
#220: implement dependency platforms check
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Feb 26, 2025
1 parent e2d3852 commit 3bf4b8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/xpm/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,7 @@ export class Install extends CliCommand {
dependency.platforms.toLowerCase().trim() !== 'all') {
const platformKey = xpack.getPlatformKey()
const platformKeysArray = dependency.platforms.toLowerCase().split(',')
.map(string => string.toLowerCase().trim())
if (!platformKeysArray.includes(platformKey)) {
log.info(`${isDev ? 'devDependency' : 'dependency'} '${key}' ` +
`skipped on ${platformKey}`)
Expand Down

0 comments on commit 3bf4b8b

Please sign in to comment.