Skip to content

Commit 6d8829b

Browse files
committed
Fix the versions of deps
1 parent cc91a4b commit 6d8829b

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

packages/@apphosting/build/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
],
3434
"license": "Apache-2.0",
3535
"dependencies": {
36+
"@apphosting/discover": "*",
3637
"colorette": "^2.0.20",
3738
"commander": "^11.1.0",
3839
"npm-pick-manifest": "^9.0.0",
39-
"ts-node": "^10.9.1",
40-
"@apphosting/discover": "*"
40+
"ts-node": "^10.9.1"
4141
},
4242
"devDependencies": {
4343
"@types/commander": "*"

packages/@apphosting/discover/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"commander": "^11.1.0",
4040
"fs-extra": "^11.1.1",
4141
"npm-pick-manifest": "^9.0.0",
42-
"ts-node": "^10.9.1",
4342
"toml": "^3.0.0",
43+
"ts-node": "^10.9.1",
4444
"yaml": "^2.3.4"
4545
},
4646
"devDependencies": {

scripts/publish.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,16 @@ for (const lerna of filteredLernaList) {
2929
const packageJsonPath = join(lerna.location, "package.json");
3030
const packageJson = JSON.parse(readFileSync(packageJsonPath).toString());
3131
packageJson.version = version;
32+
for (const dependency of packageJson.dependencies) {
33+
const lernaPackage = filteredLernaList.find(it => it.name === dependency[0]);
34+
if (lernaPackage) {
35+
dependency[1] = lernaPackage.version;
36+
}
37+
}
3238
writeFileSync(packageJsonPath, JSON.stringify(packageJson, undefined, 2));
3339
const registry = wombatDressingRoomTokens.get(lerna.name)
3440
? `https://wombat-dressing-room.appspot.com/${lerna.name}/_ns`
3541
: "https://registry.npmjs.org";
36-
execSync(`npm publish --registry ${registry} --access public --tag ${tag} --provenance`, { cwd });
42+
console.log(`npm publish --registry ${registry} --access public --tag ${tag} --provenance`, { cwd });
43+
// execSync(`npm publish --registry ${registry} --access public --tag ${tag} --provenance`, { cwd });
3744
}

0 commit comments

Comments
 (0)