We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f9c61e3 + 40878ff commit b44df23Copy full SHA for b44df23
nativescript-angular/bin/update-app-ng-deps
@@ -56,7 +56,7 @@ function updateDeps(deps, devDeps, newDeps) {
56
}
57
58
const pluginDeps = pluginPackageJson.peerDependencies;
59
-const projectPath = process.env.INIT_CWD || process.cwd() || path.dirname(path.dirname(pluginPath));
+const projectPath = process.env.INIT_CWD || path.dirname(path.dirname(path.dirname(pluginPath)));
60
const appPackageJsonPath = path.join(projectPath, "package.json");
61
const appPackageJson = JSON.parse(fs.readFileSync(appPackageJsonPath, "utf8"));
62
0 commit comments