Skip to content

Commit f4a7830

Browse files
committed
Sync template
1 parent c0f2c82 commit f4a7830

File tree

7 files changed

+17
-14
lines changed

7 files changed

+17
-14
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
3030
- name: Exit early if lib/package.json was modified
3131
if: env.file_changed == 'true'
32-
run: exit 1
32+
run: exit 0
3333

3434
- uses: actions/setup-node@v4
3535
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ coverage
1515
# temporary files
1616
tsup.config.bundled*
1717
*.patch
18+
.merge-backups

.turborepo-template.lst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
efa6f56026cab3d74a4e8ff491279c5d68cc036c
1+
dd921f8f3ca60718cbc1b9b5d6617cd27bd9a499

examples/nextjs/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"dependencies": {
1515
"@repo/shared": "workspace:*",
16-
"git-json-resolver": "workspace:*",
1716
"next": "^15.5.2",
1817
"nextjs-darkmode-lite": "^1.0.10",
1918
"nextjs-themes": "^4.0.6",
@@ -31,4 +30,4 @@
3130
"@types/react-dom": "^19.1.9",
3231
"typescript": "^5.9.2"
3332
}
34-
}
33+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@
4242
"next@>=15.0.0 <15.2.3": ">=15.2.3"
4343
}
4444
}
45-
}
45+
}

pnpm-lock.yaml

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/publish-canonical.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ const { execSync } = require("child_process");
22

33
// Publish canonical packages
44
["json-merge-resolver", "json-conflict-resolver", "git-conflict-resolver"].forEach(pkg => {
5-
execSync(`sed -i -e "s/name.*/name\\": \\"${pkg.replace(/\//g, "\\\\/")}\\",/" lib/package.json`);
6-
execSync("cd lib && npm publish --provenance --access public");
5+
try {
6+
execSync(
7+
`sed -i -e "s/name.*/name\\": \\"${pkg.replace(/\//g, "\\\\/")}\\",/" lib/package.json`,
8+
);
9+
execSync("cd lib && npm publish --provenance --access public");
10+
} catch (err) {
11+
console.error(`Error publishing ${pkg}: `, err);
12+
}
713
});

0 commit comments

Comments
 (0)