Movatterモバイル変換


[0]ホーム

URL:


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

Commit1d24e45

Browse files
committed
fix: sync pkg version after running the npm plugin
1 parent9c4ccc8 commit1d24e45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎lib/updateDeps.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const{ writeFileSync}=require("fs");
22
constrecognizeFormat=require("./recognizeFormat");
33
constsemver=require("semver");
4+
constgetManifest=require("./getManifest");
45

56
/**
67
* Resolve next package version.
@@ -136,10 +137,13 @@ const resolveNextVersion = (currentVersion, nextVersion, strategy = "override")
136137
*@returns {undefined}
137138
*@internal
138139
*/
139-
constupdateManifestDeps=(pkg,strategy)=>{
140+
constupdateManifestDeps=(pkg)=>{
140141
const{ manifest, path}=pkg;
141142
const{ indent, trailingWhitespace}=recognizeFormat(manifest.__contents__);
142143

144+
// NOTE npm plugin updates pkg version, so we have to sync.
145+
manifest.version=getManifest(path).version;
146+
143147
// Loop through localDeps to verify release consistency.
144148
pkg._localDeps.forEach((d)=>{
145149
// Get version of dependency.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp