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.
2 parents c382682 + bab4278 commit 1639e65Copy full SHA for 1639e65
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 || path.dirname(path.dirname(pluginPath));
+const projectPath = process.env.INIT_CWD || process.cwd() || 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