Skip to content

Commit 21f48ab

Browse files
authored
fix: platform sometimes not in lower case (#5406)
closes #5391
1 parent 25410b7 commit 21f48ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/services/project-data-service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ export class ProjectDataService implements IProjectDataService {
568568
projectDir: string,
569569
platform: constants.SupportedPlatform
570570
): IBasePluginData {
571+
platform = platform.toLowerCase() as constants.SupportedPlatform;
571572
const packageJson = this.$fs.readJson(
572573
path.join(projectDir, constants.PACKAGE_JSON_FILE_NAME)
573574
);

0 commit comments

Comments
 (0)