@sven1103/opencode-worktree-workflow 1.0.0-alpha.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +18 -0
- package/package.json +8 -3
package/index.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
async function loadPlugin() {
|
|
4
|
+
const mod = await import("./src/index.js");
|
|
5
|
+
return mod.default || mod.WorktreeWorkflowPlugin;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
async function WorktreeWorkflowPlugin(...args) {
|
|
9
|
+
const plugin = await loadPlugin();
|
|
10
|
+
if (typeof plugin !== "function") {
|
|
11
|
+
throw new TypeError("Plugin export is not a function");
|
|
12
|
+
}
|
|
13
|
+
return plugin(...args);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = WorktreeWorkflowPlugin;
|
|
17
|
+
module.exports.default = WorktreeWorkflowPlugin;
|
|
18
|
+
module.exports.WorktreeWorkflowPlugin = WorktreeWorkflowPlugin;
|
package/package.json
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sven1103/opencode-worktree-workflow",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.2",
|
|
4
4
|
"description": "OpenCode plugin for creating and cleaning up git worktrees.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./
|
|
6
|
+
"main": "./index.cjs",
|
|
7
7
|
"bin": {
|
|
8
8
|
"opencode-worktree-workflow": "./src/cli.js"
|
|
9
9
|
},
|
|
10
10
|
"exports": {
|
|
11
|
-
".":
|
|
11
|
+
".": {
|
|
12
|
+
"require": "./index.cjs",
|
|
13
|
+
"import": "./src/index.js",
|
|
14
|
+
"default": "./index.cjs"
|
|
15
|
+
}
|
|
12
16
|
},
|
|
13
17
|
"files": [
|
|
18
|
+
"index.cjs",
|
|
14
19
|
"src",
|
|
15
20
|
"schemas",
|
|
16
21
|
"skills"
|