Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1639e65

Browse files
Merge pull request #2027 from NativeScript/tbozhikov/fix-update-ng-deps
fix: use cwd() as backup for getting path
2 parents c382682 + bab4278 commit 1639e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎nativescript-angular/bin/update-app-ng-deps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function updateDeps(deps, devDeps, newDeps) {
5656
}
5757

5858
const pluginDeps = pluginPackageJson.peerDependencies;
59-
const projectPath = process.env.INIT_CWD || path.dirname(path.dirname(pluginPath));
59+
const projectPath = process.env.INIT_CWD || process.cwd()||path.dirname(path.dirname(pluginPath));
6060
const appPackageJsonPath = path.join(projectPath, "package.json");
6161
const appPackageJson = JSON.parse(fs.readFileSync(appPackageJsonPath, "utf8"));
6262

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /