Skip to content

Commit

Permalink
fix: platform sometimes not in lower case (#5406)
Browse files Browse the repository at this point in the history
closes #5391
  • Loading branch information
rigor789 authored Oct 2, 2020
1 parent 25410b7 commit 21f48ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/services/project-data-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ export class ProjectDataService implements IProjectDataService {
projectDir: string,
platform: constants.SupportedPlatform
): IBasePluginData {
platform = platform.toLowerCase() as constants.SupportedPlatform;
const packageJson = this.$fs.readJson(
path.join(projectDir, constants.PACKAGE_JSON_FILE_NAME)
);
Expand Down

0 comments on commit 21f48ab

Please sign in to comment.