Skip to content

Commit e43330a

Browse files
committed
build: add test script, preuninstall, and expand lint scope
- Add 'test' script to run bun tests - Add 'preuninstall' lifecycle script - Include preuninstall.mjs in package files - Expand lint/format scope to entire project (not just src/) - Mark opencode peer dependency as optional Signed-off-by: leocavalcante <[email protected]>
1 parent ac489ba commit e43330a

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

bun.lock

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

package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@
77
"files": [
88
"src/",
99
"agents/",
10-
"postinstall.mjs"
10+
"postinstall.mjs",
11+
"preuninstall.mjs"
1112
],
1213
"scripts": {
1314
"postinstall": "node postinstall.mjs",
14-
"lint": "bunx biome check src/",
15-
"lint:fix": "bunx biome check --write src/",
16-
"format": "bunx biome format --write src/"
15+
"preuninstall": "node preuninstall.mjs",
16+
"test": "bun test",
17+
"lint": "bunx biome check .",
18+
"lint:fix": "bunx biome check --write .",
19+
"format": "bunx biome format --write ."
1720
},
1821
"repository": {
1922
"type": "git",
@@ -40,5 +43,10 @@
4043
},
4144
"peerDependencies": {
4245
"opencode": ">=0.1.0"
46+
},
47+
"peerDependenciesMeta": {
48+
"opencode": {
49+
"optional": true
50+
}
4351
}
4452
}

0 commit comments

Comments
 (0)