sync
This commit is contained in:
@@ -0,0 +1 @@
|
||||
dist
|
||||
@@ -1,4 +1,11 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/package.json",
|
||||
"name": "@opencode-ai/plugin"
|
||||
"private": false,
|
||||
"name": "@opencode-ai/plugin",
|
||||
"type": "module",
|
||||
"version": "0.0.1",
|
||||
"devDependencies": {
|
||||
"@tsconfig/node22": "22.0.2",
|
||||
"typescript": "catalog:"
|
||||
}
|
||||
}
|
||||
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
import { $ } from "bun"
|
||||
|
||||
const dir = new URL("..", import.meta.url).pathname
|
||||
const version = process.env["VERSION"]
|
||||
if (!version) throw new Error("VERSION is required")
|
||||
|
||||
await $`bun pm pkg set version="${version}"`
|
||||
await $`tsc`.cwd(dir)
|
||||
await $`bun publish`
|
||||
@@ -1 +1 @@
|
||||
export * from "./plugin"
|
||||
export * from "./plugin.js"
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "@tsconfig/node22/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"declaration": true
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user