create-rigline-plugin 1.0.0-alpha.5 → 1.0.0-alpha.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 CHANGED
@@ -29,6 +29,11 @@ Then:
29
29
 
30
30
  and *Developer: Reload Webviews*.
31
31
 
32
+ The workspace declares `@rigline/core` — the engine, which carries the `rigline-engine` command its
33
+ `build` and `codegen` scripts run — and never `rigline`, which is the layer a *user* installs to
34
+ fetch that engine. `pnpm rigline <verb>` here is a script forwarding to the engine in your own
35
+ `node_modules`, so the loop above needs nothing installed globally.
36
+
32
37
  `generated.ts` ships as a placeholder so a fresh scaffold typechecks before `codegen` has ever run.
33
38
  Once you run `codegen` it holds the identifiers *your* extension version actually has; commit it,
34
39
  and the diff when you run against a newer extension is how you find out what moved.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rigline-plugin",
3
- "version": "1.0.0-alpha.5",
3
+ "version": "1.0.0-alpha.6",
4
4
  "description": "Scaffold a workspace for Claude Code VS Code extension plugins",
5
5
  "keywords": [
6
6
  "rigline",
@@ -32,10 +32,10 @@
32
32
  "create-rigline-plugin": "./dist/index.js"
33
33
  },
34
34
  "devDependencies": {
35
- "@rigline/plugin-api": "1.0.0-alpha.5"
35
+ "@rigline/plugin-api": "1.0.0-alpha.6"
36
36
  },
37
37
  "scripts": {
38
- "build": "tsc -p tsconfig.build.json",
38
+ "build": "node ../../scripts/clean-dist.mjs && tsc -p tsconfig.build.json",
39
39
  "typecheck": "tsc -p tsconfig.json"
40
40
  }
41
41
  }
@@ -51,9 +51,9 @@ says rather than resolving its own.
51
51
  ## Publishing
52
52
 
53
53
  A plugin is published as an ordinary npm package carrying `rigline.json` and its built entry, and
54
- installed with `rigline add <name>`. Nothing about publishing is special: `rigline build` bundles
55
- everything the entry imports, so a published plugin has no runtime dependency to install, and
56
- `@rigline/plugin-api` stays a *devDependency*.
54
+ installed with `rigline add <name>`. Nothing about publishing is special: `rigline-engine build`
55
+ bundles everything the entry imports, so a published plugin has no runtime dependency to install,
56
+ and both `@rigline/core` and `@rigline/plugin-api` stay *devDependencies*.
57
57
 
58
58
  `.github/workflows/release.yml` does it from CI, with no npm token stored anywhere: GitHub
59
59
  authenticates to npm over OIDC, and what the workflow does is *stage* — a version nobody can
@@ -5,14 +5,15 @@
5
5
  "packageManager": "pnpm@12.3.4",
6
6
  "engines": { "node": ">=22.12.0" },
7
7
  "scripts": {
8
- "codegen": "rigline codegen",
8
+ "rigline": "rigline-engine",
9
+ "codegen": "rigline-engine codegen",
9
10
  "build": "pnpm -r build",
10
11
  "typecheck": "pnpm -r typecheck",
11
12
  "test": "vitest run"
12
13
  },
13
14
  "devDependencies": {
15
+ "@rigline/core": "__RIGLINE_RANGE__",
14
16
  "@rigline/plugin-api": "__RIGLINE_RANGE__",
15
- "rigline": "__RIGLINE_RANGE__",
16
17
  "rolldown": "^1.2.8",
17
18
  "typescript": "^7.0.2",
18
19
  "vitest": "^5.0.0"
@@ -8,11 +8,11 @@
8
8
  "publishConfig": { "access": "public" },
9
9
  "files": ["dist", "rigline.json"],
10
10
  "scripts": {
11
- "build": "rigline build",
11
+ "build": "rigline-engine build",
12
12
  "typecheck": "tsc -p tsconfig.json"
13
13
  },
14
14
  "devDependencies": {
15
- "@rigline/plugin-api": "__RIGLINE_RANGE__",
16
- "rigline": "__RIGLINE_RANGE__"
15
+ "@rigline/core": "__RIGLINE_RANGE__",
16
+ "@rigline/plugin-api": "__RIGLINE_RANGE__"
17
17
  }
18
18
  }
@@ -4,7 +4,7 @@
4
4
  * Verification splits three ways, and knowing which tier a question belongs to is most of writing
5
5
  * a test that is worth having. A pure function is this tier. Whether a decoration lands in the
6
6
  * right place, survives a re-render, or costs the row a line of height is a question about the app,
7
- * and only the app can answer it: build, `rigline add`, reload the webview, look.
7
+ * and only the app can answer it: `pnpm build`, `pnpm rigline add`, reload the webview, look.
8
8
  */
9
9
  import { describe, expect, it } from "vitest";
10
10
  import { badgeText } from "./index.ts";