@brainervirus/workit-core 0.5.5 → 0.5.6
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/README.md +4 -4
- package/package.json +1 -1
- package/scripts/rewrite-workspace-deps.ts +17 -4
package/README.md
CHANGED
|
@@ -4,10 +4,10 @@ Multi-platform Superpowers workflow plugin for **Cursor** and **OpenCode**: veri
|
|
|
4
4
|
|
|
5
5
|
| Platform | Path | Version |
|
|
6
6
|
| --- | --- | --- |
|
|
7
|
-
| **OpenCode** | `packages/workit-opencode/src/plugin.ts` |
|
|
8
|
-
| **Cursor** | `packages/workit-cursor/` (MCP + hooks + rules + skills) |
|
|
9
|
-
| **Shared core** | `packages/workit-core/` (src, skills, commands, scripts, templates) |
|
|
10
|
-
| **CLI** | `packages/workit-cli/` (Ink wizard, bin `workit`) |
|
|
7
|
+
| **OpenCode** | `packages/workit-opencode/src/plugin.ts` |  |
|
|
8
|
+
| **Cursor** | `packages/workit-cursor/` (MCP + hooks + rules + skills) |  |
|
|
9
|
+
| **Shared core** | `packages/workit-core/` (src, skills, commands, scripts, templates) |  |
|
|
10
|
+
| **CLI** | `packages/workit-cli/` (Ink wizard, bin `workit`) |  |
|
|
11
11
|
|
|
12
12
|
Config directory (both platforms): `~/.config/workflow-toolkit/` (kept as-is for install stability).
|
|
13
13
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
2
|
+
// Release-sync before publish: rewrite workspace:* core deps to ^<released
|
|
3
|
+
// version> in the platform packages, and mirror the core version + canonical
|
|
4
|
+
// URLs into the cursor plugin/marketplace manifests. Neither npm nor bun
|
|
5
|
+
// rewrites workspace:*, so a packed tarball with it silently drops the core
|
|
6
|
+
// dependency. Runs as semantic-release prepareCmd (after the version bumps,
|
|
7
|
+
// before the npm publish phase); the writes stay in CI and never reach the
|
|
8
|
+
// repo (semantic-release does not commit back).
|
|
6
9
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
7
10
|
import { resolve } from "node:path";
|
|
8
11
|
|
|
@@ -15,3 +18,13 @@ for (const pkg of ["workit-opencode", "workit-cursor", "workit-cli"]) {
|
|
|
15
18
|
data.dependencies["@brainervirus/workit-core"] = `^${core.version}`;
|
|
16
19
|
writeFileSync(file, `${JSON.stringify(data, null, 2)}\n`);
|
|
17
20
|
}
|
|
21
|
+
for (const file of [
|
|
22
|
+
resolve(root, "packages/workit-cursor/.cursor-plugin/plugin.json"),
|
|
23
|
+
resolve(root, "packages/workit-cursor/marketplace.json"),
|
|
24
|
+
]) {
|
|
25
|
+
const data = JSON.parse(readFileSync(file, "utf8"));
|
|
26
|
+
data.version = core.version;
|
|
27
|
+
if (data.homepage) data.homepage = data.homepage.replace("BrainerVirus/workflow-toolkit", "BrainerVirus/workit");
|
|
28
|
+
if (data.repository) data.repository = data.repository.replace("BrainerVirus/workflow-toolkit", "BrainerVirus/workit");
|
|
29
|
+
writeFileSync(file, `${JSON.stringify(data, null, 2)}\n`);
|
|
30
|
+
}
|