Skip to content

Commit b378c4a

Browse files
pichlermarcZirak
authored andcommitted
fix: ensure api is not dropped from workspaces in package-lock.json (open-telemetry#4623)
1 parent d7a741c commit b378c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"comment_internal": "echo scripts below this line are for internal use",
4848
"_check:no_changes": "if [ ! -z \"$(git status -uall --porcelain)\" ]; then echo Please ensure all changes are committed; exit 1; fi",
4949
"_backup:package-json": "cp package.json package.json.backup",
50-
"_restore:package-json": "mv package.json.backup package.json",
50+
"_restore:package-json": "mv package.json.backup package.json && npm install --package-lock-only",
5151
"_lerna:remove_api": "node -e 'var fs=require(\"fs\");var p=require(\"./package.json\");p.workspaces=p.workspaces.filter(p=>p!==\"api\");fs.writeFileSync(\"package.json\",JSON.stringify(p,null,2))'",
5252
"_lerna:remove_stable": "node -e 'var fs=require(\"fs\");var p=require(\"./package.json\");p.workspaces=p.workspaces.filter(p=>p!==\"packages/*\");fs.writeFileSync(\"package.json\",JSON.stringify(p,null,2))'",
5353
"_lerna:version_patch": "npx lerna version patch --exact --no-git-tag-version --no-push --yes",

0 commit comments

Comments
 (0)