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 176b987 commit 16c077dCopy full SHA for 16c077d
1 file changed
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