Skip to content

Commit 2dc7a81

Browse files
committed
chore: fix PR comments
1 parent 4066ecc commit 2dc7a81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/controllers/prepare-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { hook } from "../common/helpers";
44
import { performanceLog } from "../common/decorators";
55
import { EventEmitter } from "events";
66
import * as path from "path";
7-
import { PREPARE_READY_EVENT_NAME, WEBPACK_COMPILATION_COMPLETE, PACKAGE_JSON_FILE_NAME } from "../constants";
7+
import { PREPARE_READY_EVENT_NAME, WEBPACK_COMPILATION_COMPLETE, PACKAGE_JSON_FILE_NAME, PLATFORMS_DIR_NAME } from "../constants";
88

99
interface IPlatformWatcherData {
1010
webpackCompilerProcess: child_process.ChildProcess;
@@ -144,7 +144,7 @@ export class PrepareController extends EventEmitter {
144144
public async getWatcherPatterns(platformData: IPlatformData, projectData: IProjectData): Promise<string[]> {
145145
const pluginsNativeDirectories = this.$nodeModulesDependenciesBuilder.getProductionDependencies(projectData.projectDir)
146146
.filter(dep => dep.nativescript)
147-
.map(dep => path.join(dep.directory, "platforms", "ios"));
147+
.map(dep => path.join(dep.directory, PLATFORMS_DIR_NAME, platformData.platformNameLowerCase));
148148

149149
const patterns = [
150150
path.join(projectData.projectDir, PACKAGE_JSON_FILE_NAME),

0 commit comments

Comments
 (0)