Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ jobs:
- name: Install dependencies
run: bun install

- name: Verify package in Node
run: |
PACKAGE=$(npm pack --silent)
mkdir /tmp/opencode-wakelock-smoke
npm install --prefix /tmp/opencode-wakelock-smoke "$PWD/$PACKAGE"
cd /tmp/opencode-wakelock-smoke
node --input-type=module -e "const plugin = (await import('opencode-wakelock')).default; if (plugin.id !== 'opencode-wakelock' || typeof plugin.server !== 'function') process.exit(1)"

- name: Check if version already published
id: check
run: |
Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"type": "module",
"license": "MIT",
"main": "index.ts",
"version": "0.2.2",
"main": "dist/index.js",
"files": ["dist/index.js"],
"version": "0.2.3",
"engines": {
"opencode": ">=1.14.0"
},
Expand All @@ -17,9 +18,14 @@
"type": "git",
"url": "git+https://github.com/IgnisDa/opencode-wakelock.git"
},
"scripts": {
"build": "tsc",
"prepack": "npm run build"
},
"devDependencies": {
"@opencode-ai/plugin": "latest",
"bun-types": "latest"
"bun-types": "latest",
"typescript": "7.0.2"
},
"keywords": [
"sleep",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"outDir": "dist",
"strict": true,
"types": ["bun-types"]
}
Expand Down