Skip to content

Commit 934ce2e

Browse files
revert: remove Bun catalogs and return to npm publish (#16)
Reverts catalog changes and switches back to npm publish which has working authentication. - Remove catalog field from root package.json - Replace all "catalog:" references with explicit versions - Update workflow to use npm publish instead of bun publish - Update documentation Bun 1.3.1 has authentication issues that prevent bun publish from working in GitHub Actions. We'll revisit catalogs when Bun's authentication is fixed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent ce5ad62 commit 934ce2e

File tree

7 files changed

+44
-82
lines changed

7 files changed

+44
-82
lines changed

.github/RELEASE_PROCESS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ When you merge a PR to `main`:
2121
2. 📦 **Version bumps** - Based on branch prefix
2222
3. 📝 **CHANGELOG updates** - Automatically adds entry with PR details
2323
4. 🏷️ **Git tag created** - Creates version tag (e.g., `v0.9.0`)
24-
5. 📤 **Publishes to npm** - Using bun publish
24+
5. 📤 **Publishes to npm** - Using npm publish
2525
6. 🎉 **GitHub Release created** - With PR details
2626

2727
### 3. Example Workflow

.github/workflows/release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,7 @@ jobs:
143143
144144
- name: Publish to npm
145145
working-directory: ./packages/core
146-
run: |
147-
# Verify npm auth works
148-
npm whoami
149-
# Use bun pack to resolve catalog references and create tarball
150-
bun pack
151-
# Publish the tarball with npm (which has working authentication)
152-
npm publish *.tgz --access public
146+
run: npm publish --access public
153147

154148
- name: Create GitHub Release
155149
uses: actions/create-release@v1

bun.lock

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

examples/slash-commands-variants/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"@markdown-di/core": "workspace:*"
1111
},
1212
"devDependencies": {
13-
"@types/bun": "catalog:"
13+
"@types/bun": "^1.1.17"
1414
}
1515
}

package.json

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,6 @@
66
"workspaces": [
77
"packages/*"
88
],
9-
"catalog": {
10-
"@biomejs/biome": "2.3.0",
11-
"@types/bun": "latest",
12-
"@types/mustache": "4.2.6",
13-
"@types/node": "^20.0.0",
14-
"ajv": "^8.12.0",
15-
"ajv-formats": "^3.0.1",
16-
"chalk": "^5.3.0",
17-
"commander": "^12.0.0",
18-
"fast-glob": "^3.3.3",
19-
"gray-matter": "^4.0.3",
20-
"mustache": "4.2.0",
21-
"typescript": "^5.9.3",
22-
"yaml": "^2.7.0",
23-
"zod": "^4.1.12"
24-
},
259
"scripts": {
2610
"build": "bun run --cwd packages/core build && bun run --filter './packages/*' --filter '!@markdown-di/core' build",
2711
"test": "bun test",
@@ -47,9 +31,9 @@
4731
"url": "https://github.com/PepijnSenders/markdown-di.git"
4832
},
4933
"devDependencies": {
50-
"@biomejs/biome": "catalog:",
51-
"@types/bun": "catalog:",
52-
"zod": "catalog:",
53-
"typescript": "catalog:"
34+
"@biomejs/biome": "2.3.0",
35+
"@types/bun": "latest",
36+
"zod": "^4.1.12",
37+
"typescript": "^5.9.3"
5438
}
5539
}

packages/cli/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
},
3333
"dependencies": {
3434
"@markdown-di/core": "workspace:*",
35-
"chalk": "catalog:",
36-
"commander": "catalog:",
37-
"fast-glob": "catalog:"
35+
"chalk": "^5.3.0",
36+
"commander": "^12.0.0",
37+
"fast-glob": "^3.3.3"
3838
},
3939
"devDependencies": {
40-
"@types/bun": "catalog:",
41-
"@types/node": "catalog:",
42-
"typescript": "catalog:"
40+
"@types/bun": "latest",
41+
"@types/node": "^20.0.0",
42+
"typescript": "^5.9.3"
4343
}
4444
}

packages/core/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,24 @@
3535
"directory": "packages/core"
3636
},
3737
"dependencies": {
38-
"@types/mustache": "catalog:",
39-
"ajv": "catalog:",
40-
"ajv-formats": "catalog:",
41-
"fast-glob": "catalog:",
42-
"gray-matter": "catalog:",
43-
"mustache": "catalog:",
44-
"yaml": "catalog:"
38+
"@types/mustache": "4.2.6",
39+
"ajv": "^8.12.0",
40+
"ajv-formats": "^3.0.1",
41+
"fast-glob": "^3.3.3",
42+
"gray-matter": "^4.0.3",
43+
"mustache": "4.2.0",
44+
"yaml": "^2.7.0"
4545
},
4646
"peerDependencies": {
47-
"zod": "catalog:"
47+
"zod": "^4.1.12"
4848
},
4949
"peerDependenciesMeta": {
5050
"zod": {
5151
"optional": true
5252
}
5353
},
5454
"devDependencies": {
55-
"@types/bun": "catalog:",
56-
"typescript": "catalog:"
55+
"@types/bun": "latest",
56+
"typescript": "^5.9.3"
5757
}
5858
}

0 commit comments

Comments
 (0)