-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
88 lines (88 loc) · 3.2 KB
/
Copy pathpackage.json
File metadata and controls
88 lines (88 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"name": "@johnatas-henrique/opencode-hooks",
"version": "0.8.0",
"description": "TypeScript plugin system for OpenCode AI providing event-driven hooks",
"main": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"files": [
"dist/",
"README.md",
"LICENSE",
"assets/"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"start": "node .",
"build": "tsup --no-config --entry.index=.opencode/plugins/opencode-hooks.ts --out-dir dist --format esm --dts --dts-resolve --clean --tsconfig tsconfig.json --target es2022 --external fs --external path --external @opencode-ai/plugin --external @opencode-ai/sdk",
"typecheck": "tsc --noEmit",
"prepublishOnly": "npm run build",
"test": "vitest",
"test:unit": "vitest run test/unit/",
"test:unit:cov": "vitest run test/unit/ --coverage --coverage.skipFull",
"test:integration": "vitest run test/integration/",
"test:integration:cov": "vitest run test/integration/ --coverage --coverage.skipFull",
"test:e2e": "bash test/e2e/session-lifecycle.sh && bash test/e2e/tool-execution.sh",
"test:all": "npm run test:unit && npm run test:integration && npm run test:e2e",
"test:cov": "vitest run --coverage",
"cov:nc": "FORCE_COLOR=1 vitest run --coverage --coverage.skipFull | grep -v '^ ✓*'",
"coverage:report": "FORCE_COLOR=1 vitest run --coverage --coverage.reporter=text-summary 2>&1 | grep -A 7 \"Coverage summary\"",
"watch:cov": "FORCE_COLOR=1 vitest run --coverage 2>&1 | grep -e 'Tests ' -e 'All files' -e '% Stmts'",
"lint": "eslint \"**/*.ts\" --ignore-pattern \"node_modules/**\" --ignore-pattern \"dist/**\" --ignore-pattern \"coverage/**\"",
"lint:fix": "eslint \"**/*.ts\" --ignore-pattern \"node_modules/**\" --ignore-pattern \"dist/**\" --ignore-pattern \"coverage/**\" --fix",
"format": "prettier --write \"**/*.ts\" --ignore-path .gitignore",
"format:check": "prettier --check \"**/*.ts\" --ignore-path .gitignore",
"prepare": "husky"
},
"keywords": [
"opencode",
"opencode-hooks",
"plugin",
"events",
"automation",
"typescript"
],
"author": {
"email": "johnatas.henrique@gmail.com",
"name": "Johnatas Henrique"
},
"repository": {
"type": "git",
"url": "git+https://github.com/johnatas-henrique/opencode-hooks.git"
},
"homepage": "https://github.com/johnatas-henrique/opencode-hooks#readme",
"bugs": {
"url": "https://github.com/johnatas-henrique/opencode-hooks/issues"
},
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "^21.0.2",
"@commitlint/config-conventional": "^21.0.1",
"@eslint/js": "^10.0.1",
"@opencode-ai/plugin": "^1.15.10",
"@opencode-ai/sdk": "^1.14.41",
"@total-typescript/shoehorn": "^0.1.2",
"@types/node": "^25.9.1",
"@vitest/coverage-v8": "^4.1.7",
"eslint": "^10.2.1",
"fallow": "^2.79.0",
"globals": "^17.6.0",
"husky": "^9.1.7",
"lint-staged": "^17.0.5",
"prettier": "^3.8.3",
"tsup": "^8.5.1",
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.4",
"vitest": "^4.1.7"
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
],
"*.{js,ts,md,json}": [
"prettier --write"
]
}
}