@powerlines/plugin-capnp 0.1.681 → 0.1.682

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.
Files changed (2) hide show
  1. package/README.md +33 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -74,6 +74,39 @@ A Powerlines plugin to generate project code with [Cap'n Proto](https://capnprot
74
74
 
75
75
  <!-- END doctoc -->
76
76
 
77
+ ## Features
78
+
79
+ - Generates project code from Cap'n Proto schemas (glob supported, `{builtinPath}` tokens expanded)
80
+ - Compiles schemas with `capnpc` during `prepare`; builtin-path output is emitted via `emitBuiltin`
81
+ - Warns and skips cleanly when no schemas resolve
82
+ - Typed options via `./types/plugin` (`CapnpPluginOptions`, user/resolved config, context)
83
+
84
+ ## Usage
85
+
86
+ Install the plugin:
87
+
88
+ ```bash
89
+ pnpm add @powerlines/plugin-capnp
90
+ ```
91
+
92
+ Register it in `powerlines.config.ts`:
93
+
94
+ ```ts
95
+ import { defineConfig } from "powerlines";
96
+ import { plugin as capnp } from "@powerlines/plugin-capnp";
97
+
98
+ export default defineConfig({
99
+ plugins: [
100
+ capnp({
101
+ schema: "./schemas/*.capnp",
102
+ ts: true
103
+ })
104
+ ]
105
+ });
106
+ ```
107
+
108
+ Run the Powerlines build for your project to activate the plugin.
109
+
77
110
  ## Installing
78
111
 
79
112
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-capnp",
3
- "version": "0.1.681",
3
+ "version": "0.1.682",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to generate project code from Cap'n Proto schemas.",
6
6
  "repository": {
@@ -95,13 +95,13 @@
95
95
  "@stryke/types": "^0.12.44",
96
96
  "defu": "^6.1.7",
97
97
  "jiti": "^2.7.0",
98
- "powerlines": "^0.47.216"
98
+ "powerlines": "^0.47.217"
99
99
  },
100
100
  "devDependencies": {
101
- "@powerlines/plugin-plugin": "^0.12.629",
101
+ "@powerlines/plugin-plugin": "^0.12.630",
102
102
  "@types/node": "^25.9.9"
103
103
  },
104
104
  "publishConfig": { "access": "public" },
105
105
  "types": "./dist/index.d.cts",
106
- "gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
106
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
107
107
  }