We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c22d44e commit 77d2f53Copy full SHA for 77d2f53
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