Skip to content

Commit

Permalink
fix: Set @lecca-io packages to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRamirezLecca committed Dec 18, 2024
1 parent 7c9ad2a commit e582888
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"private": false,
"prepare": "husky install",
"dependencies": {
"@lecca-io/toolkit": "0.11.3",
"@lecca-io/apps": "0.11.3",
"@lecca-io/toolkit": "latest",
"@lecca-io/apps": "latest",
"@ai-sdk/anthropic": "^1.0.2",
"@ai-sdk/google": "^1.0.3",
"@ai-sdk/openai": "^1.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"access": "public"
},
"dependencies": {
"@lecca-io/toolkit": "*"
"@lecca-io/toolkit": "latest"
},
"main": "./src/index.js",
"types": "./src/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions scripts/update-package-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,18 @@ packagePaths.forEach((packagePath) => {
// This is a hack to get the @lecca-io packages to always be the same version as the root package
if (packagePath === 'package.json') {
if (packageJson.dependencies) {

//Not using newVersion because this script runs before the new version is published
//So during the publish step -> pnpm install, it would fail because the version didn't exist.
//If we do latest, then it will always get the latest version at the time the
//docker containers are created. So even though this is fragile, the docker images
//and all the packages will always be in sync.

if (packageJson.dependencies['@lecca-io/toolkit']) {
packageJson.dependencies['@lecca-io/toolkit'] = newVersion;
packageJson.dependencies['@lecca-io/toolkit'] = "latest" //newVersion;
}
if (packageJson.dependencies['@lecca-io/apps']) {
packageJson.dependencies['@lecca-io/apps'] = newVersion;
packageJson.dependencies['@lecca-io/apps'] = "latest" //newVersion;
}
}
}
Expand Down

0 comments on commit e582888

Please sign in to comment.