Skip to content

Commit

Permalink
Update dependency @jakubmazanec/carson-templates to v5 (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Jan 30, 2025
1 parent b88ab65 commit e9e59b7
Show file tree
Hide file tree
Showing 8 changed files with 599 additions and 62 deletions.
Binary file modified .carson/workspace.snapshot
Binary file not shown.
6 changes: 6 additions & 0 deletions .changeset/renovate-107c5b5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'dram': patch
'somewhere': patch
---

Applies templates from `@jakubmazanec/carson-templates` updated to version `^5.0.2`.
20 changes: 13 additions & 7 deletions .github/workflows/update-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ jobs:
}
async function createChangeset(fileName, dependencyBumps, projects) {
console.log('Creating changeset...');
let message = '';
for (let [dependencyName, bump] of dependencyBumps) {
Expand All @@ -98,6 +100,8 @@ jobs:
}
async function createChangesetForCarsonTemplates(fileName, dependencyBumps, projects) {
console.log('Creating changeset for Carson templates update...');
let message = '';
for (let [dependencyName, bump] of dependencyBumps) {
Expand Down Expand Up @@ -170,16 +174,14 @@ jobs:
let updatedProjects = await getProjects(files);
let dependencyBumpsWithWorkspace = await getBumps(filesWithWorkspace);
await checkCarsonTemplatesPackage(dependencyBumpsWithWorkspace);
console.log('Changed package.json files:', files);
console.log('Updated projects:', updatedProjects);
console.log('Dependecy bumps (including the workspace):', Array.from(dependencyBumpsWithWorkspace));
if (
!updatedProjects.length && dependencyBumpsWithWorkspace.has('@jakubmazanec/carson-templates')
) {
if (dependencyBumpsWithWorkspace.has('@jakubmazanec/carson-templates')) {
updatedProjects = await getProjectsUsingCarsonTemplates();
let dependencyBumps = await getBumps(filesWithWorkspace);
await createChangesetForCarsonTemplates(changesetName, dependencyBumps, updatedProjects);
await createChangesetForCarsonTemplates(changesetName, dependencyBumpsWithWorkspace, updatedProjects);
return;
} else if (!updatedProjects.length) {
Expand All @@ -192,8 +194,12 @@ jobs:
let dependencyBumps = await getBumps(files);
console.log('Dependecy bumps:', Array.from(dependencyBumps));
await createChangeset(changesetName, dependencyBumps, updatedProjects);
await checkCarsonTemplatesPackage(dependencyBumpsWithWorkspace);
- name: Update Carson
run: |
npm install
Expand Down
4 changes: 2 additions & 2 deletions apps/dram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@types/node": "^22.0.0",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitest/coverage-v8": "^2.1.8",
"@vitest/coverage-v8": "^3.0.0",
"autoprefixer": "^10.4.20",
"del-cli": "^6.0.0",
"eslint": "^9.19.0",
Expand All @@ -65,7 +65,7 @@
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"vite": "^6.0.11",
"vitest": "^2.1.8",
"vitest": "^3.0.0",
"xlsx": "^0.18.5",
"zod": "^3.24.1"
},
Expand Down
4 changes: 2 additions & 2 deletions apps/somewhere/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@types/node": "^22.0.0",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitest/coverage-v8": "^2.1.8",
"@vitest/coverage-v8": "^3.0.0",
"autoprefixer": "^10.4.20",
"del-cli": "^6.0.0",
"eslint": "^9.19.0",
Expand All @@ -61,7 +61,7 @@
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
"vite": "^6.0.11",
"vitest": "^2.1.8"
"vitest": "^3.0.0"
},
"packageManager": "npm@10.9.0",
"engines": {
Expand Down
Loading

0 comments on commit e9e59b7

Please sign in to comment.