Skip to content

Commit 0991fed

Browse files
authored
@bomb.sh/tools in IDE and checks in CI (#35)
## What does this PR do? With transitive deps through `@bomb.sh/tools`, the IDE doesn't automagically configure and find these resources. Aligning with the setup we have in the playground repo, add a bit of config so tools pick it up better, move shared deps to catalog and some devDeps to the root, e.g. `@types/node` make sense at the root as that is where we also specify the node version in `devEngines`. ## Type of change <!-- Check one. --> - [ ] Bug fix - [ ] Feature - [ ] Refactor (no behavior change) - [ ] Documentation - [ ] Performance improvement - [ ] Tests - [x] Chore (dependencies, CI, tooling) ## Checklist - [x] All tests pass (`pnpm test`) - [x] Files are formatted (`pnpm format`) - [ ] I have added/updated tests for my changes (if applicable) - [ ] I have added a changeset ## AI-generated code disclosure <!-- If any part of this PR was generated by AI tools (Copilot, Claude, GPT, Cursor, etc.), check the box. This is fine — we just need to know so reviewers can pay extra attention to edge cases. --> - [ ] This PR includes AI-generated code
1 parent a6c39c1 commit 0991fed

8 files changed

Lines changed: 85 additions & 46 deletions

File tree

‎.github/workflows/check.yml‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: check
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
env:
12+
MISE_IDIOMATIC_VERSION_FILE_ENABLE_TOOLS: node,pnpm
13+
14+
jobs:
15+
lint:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19+
with:
20+
persist-credentials: false
21+
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
22+
- run: pnpm install --frozen-lockfile
23+
- run: pnpm lint
24+
25+
format:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
29+
with:
30+
persist-credentials: false
31+
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
32+
- run: pnpm install --frozen-lockfile
33+
- run: pnpm format:check
34+
35+
test:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
39+
with:
40+
persist-credentials: false
41+
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
42+
- run: pnpm install --frozen-lockfile
43+
- run: pnpm test

‎.github/workflows/format.yml‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎oxfmt.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './node_modules/@bomb.sh/tools/oxfmtrc.json' with { type: 'json' };

‎oxlint.config.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import config from './node_modules/@bomb.sh/tools/oxlintrc.json' with { type: 'json' };
2+
3+
export default {
4+
...config,
5+
jsPlugins: ['./node_modules/@bomb.sh/tools/rules/plugin.js'],
6+
};

‎package.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@
3030
"dev": "bsh dev",
3131
"build": "pnpm --filter \"@clack/*\" run build",
3232
"format": "bsh format",
33+
"format:check": "bsh format --check",
3334
"lint": "bsh lint .",
3435
"test": "bsh test"
3536
},
3637
"devDependencies": {
37-
"@bomb.sh/tools": "^0.5.4"
38+
"@bomb.sh/tools": "^0.6.1",
39+
"@types/node": "^22.20.0",
40+
"vitest": "^4.1.9"
3841
},
3942
"devEngines": {
4043
"packageManager": {

‎packages/ui/package.json‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@
3535
"test": "bsh test"
3636
},
3737
"dependencies": {
38-
"@bomb.sh/tty": "^0.7.0",
39-
"@types/node": "^22.20.0"
40-
},
41-
"devDependencies": {
42-
"@bomb.sh/tools": "^0.5.4",
43-
"vitest": "^4.1.9"
38+
"@bomb.sh/tty": "catalog:"
4439
},
4540
"devEngines": {
4641
"packageManager": {

‎pnpm-lock.yaml‎

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

‎pnpm-workspace.yaml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
packages:
22
- 'packages/*'
3+
- 'examples/*'
34

45
catalog:
5-
clayterm: latest
6+
'@bomb.sh/tty': '^0.7.0'
7+
8+
publicHoistPattern:
9+
- oxlint
10+
- oxfmt

0 commit comments

Comments
 (0)