@vmz/plugin 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/index.d.ts +18 -0
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -94,9 +94,27 @@ export interface VmzEngines {
94
94
  markdown?: string;
95
95
  }
96
96
 
97
+ /** Workspace format options (`vmz format` reads `vmz.config` `format`). */
98
+ export interface VmzFormatConfig {
99
+ /** Include globs under the project root. */
100
+ includes?: string[];
101
+ /** Skip paths under these globs after includes expand. */
102
+ excludes?: string[];
103
+ /** Run `cargo fmt` when a Cargo workspace is present. */
104
+ rust?: boolean;
105
+ /** Run `oxc_formatter` on JS/TS targets. */
106
+ javascript?: boolean;
107
+ /** Format `.vmz` author files via `vmz-formatter`. */
108
+ vmz?: boolean;
109
+ /** Biome-style formatter config for oxc (default: `biome.json` at project root). */
110
+ style?: string;
111
+ }
112
+
97
113
  export interface VmzUserConfig {
98
114
  plugins?: Array<string | VmzPlugin | Promise<VmzPlugin>>;
99
115
  engines?: VmzEngines;
116
+ /** Workspace format targets and engines (`vmz format`). */
117
+ format?: VmzFormatConfig;
100
118
  /** Application identity (optional authoring). */
101
119
  application?: { id?: string; [key: string]: unknown };
102
120
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vmz/plugin",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "description": "VMZ plugin protocol types and definePlugin / defineConfig helpers (no N-API)",
6
6
  "license": "MIT",
@@ -18,7 +18,7 @@
18
18
  "README.md"
19
19
  ],
20
20
  "dependencies": {
21
- "@vmz/protocol": "0.2.0"
21
+ "@vmz/protocol": "0.2.2"
22
22
  },
23
23
  "keywords": [
24
24
  "vmz",