@razorwind/core 0.0.7 → 0.0.9

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.
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./resolve-config-D7XXy_Qk.cjs"),n=require("./tokens-CoQWg4mX.cjs"),r=require("./schema-CLeH9GGy.cjs");let i=require("@stryke/type-checks/is-set-string"),a=require("defu"),o=require("@power-plant/core"),s=require("@stryke/type-checks/is-empty-object"),c=require("style-dictionary");c=e.t(c,1);const l=(0,o.defineGenerator)({meta:{name:`razorwind`,title:`Razorwind`,description:`A generator that uses Razorwind to generate design system code from design tokens and components.`,version:`0.0.8`,tags:[`razorwind`,`dtcg`]},schema:(0,o.defineSchema)({schema:r.t}),input:async e=>{let r=(0,o.useExecution)();if(r.options=await t.t(r.cwd,e),r.options.plugins.length===0)throw Error(`Razorwind will not generate any code - no plugins configured. Please add at least one plugin to the configuration.`);n.l(r.options.plugins,c.default);let a=r.options.tokens;(!a||(0,s.isEmptyObject)(a))&&(a=await n.t(r.options,{cwd:r.cwd,tokensPath:(0,i.isSetString)(r.options.tokensPath)?r.options.tokensPath:void 0}));let l={tokens:a??{},components:{}};for(let e of r.options.plugins.filter(e=>e.extract))l=await e.extract(l,r.options);if(!l.tokens||(0,s.isEmptyObject)(l.tokens))throw Error(`Unable to load design tokens for the current workspace. Please ensure that Razorwind is configured correctly and that the tokens are available.`);for(let e of r.options.plugins.filter(e=>e.validate))await e.validate(l,r.options);return l},generator:async e=>{let t=(0,o.useExecution)(),n={};for(let r of t.options.plugins.filter(e=>e.generate))n=(0,a.defu)(await r.generate(e,t.options),n);return n}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./resolve-config-CBowa3KM.mjs";import{l as t,t as n}from"./tokens-B8Dv91EB.mjs";import{r}from"./schema-Bxzw_P4l.mjs";import{isSetString as i}from"@stryke/type-checks/is-set-string";import{defu as a}from"defu";import{defineGenerator as o,defineSchema as s,useExecution as c}from"@power-plant/core";import{isEmptyObject as l}from"@stryke/type-checks/is-empty-object";import u from"style-dictionary";const d=o({meta:{name:`razorwind`,title:`Razorwind`,description:`A generator that uses Razorwind to generate design system code from design tokens and components.`,version:`0.0.8`,tags:[`razorwind`,`dtcg`]},schema:s({schema:r}),input:async r=>{let a=c();if(a.options=await e(a.cwd,r),a.options.plugins.length===0)throw Error(`Razorwind will not generate any code - no plugins configured. Please add at least one plugin to the configuration.`);t(a.options.plugins,u);let o=a.options.tokens;(!o||l(o))&&(o=await n(a.options,{cwd:a.cwd,tokensPath:i(a.options.tokensPath)?a.options.tokensPath:void 0}));let s={tokens:o??{},components:{}};for(let e of a.options.plugins.filter(e=>e.extract))s=await e.extract(s,a.options);if(!s.tokens||l(s.tokens))throw Error(`Unable to load design tokens for the current workspace. Please ensure that Razorwind is configured correctly and that the tokens are available.`);for(let e of a.options.plugins.filter(e=>e.validate))await e.validate(s,a.options);return s},generator:async e=>{let t=c(),n={};for(let r of t.options.plugins.filter(e=>e.generate))n=a(await r.generate(e,t.options),n);return n}});export{d as t};
2
+ //# sourceMappingURL=generator-BlztRAZw.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator-BlztRAZw.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./resolve-config-CBowa3KM.mjs";import{l as t,t as n}from"./tokens-B8Dv91EB.mjs";import{r}from"./schema-Bxzw_P4l.mjs";import{isSetString as i}from"@stryke/type-checks/is-set-string";import{defu as a}from"defu";import{defineGenerator as o,defineSchema as s,useExecution as c}from"@power-plant/core";import{isEmptyObject as l}from"@stryke/type-checks/is-empty-object";import u from"style-dictionary";const d=o({meta:{name:`razorwind`,title:`Razorwind`,description:`A generator that uses Razorwind to generate design system code from design tokens and components.`,version:`0.0.9`,tags:[`razorwind`,`dtcg`]},schema:s({schema:r}),input:async r=>{let a=c();if(a.options=await e(a.cwd,r),a.options.plugins.length===0)throw Error(`Razorwind will not generate any code - no plugins configured. Please add at least one plugin to the configuration.`);t(a.options.plugins,u);let o=a.options.tokens;(!o||l(o))&&(o=await n(a.options,{cwd:a.cwd,tokensPath:i(a.options.tokensPath)?a.options.tokensPath:void 0}));let s={tokens:o??{},components:{}};for(let e of a.options.plugins.filter(e=>e.extract))s=await e.extract(s,a.options);if(!s.tokens||l(s.tokens))throw Error(`Unable to load design tokens for the current workspace. Please ensure that Razorwind is configured correctly and that the tokens are available.`);for(let e of a.options.plugins.filter(e=>e.validate))await e.validate(s,a.options);return s},generator:async e=>{let t=c(),n={};for(let r of t.options.plugins.filter(e=>e.generate))n=a(await r.generate(e,t.options),n);return n}});export{d as t};
2
+ //# sourceMappingURL=generator-CZASa_I0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator-CZASa_I0.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./resolve-config-D7XXy_Qk.cjs"),n=require("./tokens-CoQWg4mX.cjs"),r=require("./schema-CLeH9GGy.cjs");let i=require("@stryke/type-checks/is-set-string"),a=require("defu"),o=require("@power-plant/core"),s=require("@stryke/type-checks/is-empty-object"),c=require("style-dictionary");c=e.t(c,1);const l=(0,o.defineGenerator)({meta:{name:`razorwind`,title:`Razorwind`,description:`A generator that uses Razorwind to generate design system code from design tokens and components.`,version:`0.0.9`,tags:[`razorwind`,`dtcg`]},schema:(0,o.defineSchema)({schema:r.t}),input:async e=>{let r=(0,o.useExecution)();if(r.options=await t.t(r.cwd,e),r.options.plugins.length===0)throw Error(`Razorwind will not generate any code - no plugins configured. Please add at least one plugin to the configuration.`);n.l(r.options.plugins,c.default);let a=r.options.tokens;(!a||(0,s.isEmptyObject)(a))&&(a=await n.t(r.options,{cwd:r.cwd,tokensPath:(0,i.isSetString)(r.options.tokensPath)?r.options.tokensPath:void 0}));let l={tokens:a??{},components:{}};for(let e of r.options.plugins.filter(e=>e.extract))l=await e.extract(l,r.options);if(!l.tokens||(0,s.isEmptyObject)(l.tokens))throw Error(`Unable to load design tokens for the current workspace. Please ensure that Razorwind is configured correctly and that the tokens are available.`);for(let e of r.options.plugins.filter(e=>e.validate))await e.validate(l,r.options);return l},generator:async e=>{let t=(0,o.useExecution)(),n={};for(let r of t.options.plugins.filter(e=>e.generate))n=(0,a.defu)(await r.generate(e,t.options),n);return n}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
@@ -1 +1 @@
1
- const e=require("./generator-DjAElWpu.cjs");module.exports=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./generator-CnvMSx3I.cjs");exports.generator=e.t;
@@ -5,9 +5,9 @@ import "./index-COAOe8bR.cjs";
5
5
  /**
6
6
  * A Power Plant generator for Razorwind.
7
7
  *
8
- * Orchestrates configured {@link Plugin}s: Style Dictionary parsers /
9
- * preprocessors, then `extract` → `validate` on input, then `generate`.
8
+ * Orchestrates configured {@link Plugin}s: Style Dictionary parsers / preprocessors, then `extract` → `validate` on input, then `generate`.
10
9
  */
11
- declare const _default: import("@power-plant/core").GeneratorConfigObject<Schema, Options, void>;
12
- export = _default;
10
+ declare const generator: import("@power-plant/core").GeneratorConfigObject<Schema, Options, void>;
11
+ //#endregion
12
+ export { generator };
13
13
  //# sourceMappingURL=generator.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.d.cts","names":[],"sources":["../src/generator.ts"],"mappings":""}
1
+ {"version":3,"file":"generator.d.cts","names":[],"sources":["../src/generator.ts"],"mappings":";;;;;;;;;cAuCa,uCAAS,sBAAA,QAAA"}
@@ -5,10 +5,9 @@ import "./index--y-fo2Lr.mjs";
5
5
  /**
6
6
  * A Power Plant generator for Razorwind.
7
7
  *
8
- * Orchestrates configured {@link Plugin}s: Style Dictionary parsers /
9
- * preprocessors, then `extract` → `validate` on input, then `generate`.
8
+ * Orchestrates configured {@link Plugin}s: Style Dictionary parsers / preprocessors, then `extract` → `validate` on input, then `generate`.
10
9
  */
11
- declare const _default: import("@power-plant/core").GeneratorConfigObject<Schema, Options, void>;
10
+ declare const generator: import("@power-plant/core").GeneratorConfigObject<Schema, Options, void>;
12
11
  //#endregion
13
- export { _default as default };
12
+ export { generator };
14
13
  //# sourceMappingURL=generator.d.mts.map
@@ -1 +1 @@
1
- import{t as e}from"./generator-BWQOEMGt.mjs";export{e as default};
1
+ import{t as e}from"./generator-CZASa_I0.mjs";export{e as generator};
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./plugin.cjs"),t=require("./resolve-config-D7XXy_Qk.cjs"),n=require("./config.cjs");require("./generator-DjAElWpu.cjs");const r=require("./schema-CLeH9GGy.cjs"),i=require("./utils/index.cjs");let a=require("@power-plant/dtcg-schema");exports.componentFileSchema=r.n,exports.componentSchema=r.r,exports.componentsSchema=r.i,exports.createDocument=i.createDocument,exports.defineConfig=n.defineConfig,exports.definePlugin=e.definePlugin,exports.formatColorValue=i.formatColorValue,exports.formatDimensionValue=i.formatDimensionValue,exports.formatTokenValue=i.formatTokenValue,exports.isPlainObject=i.isPlainObject,exports.resolveConfig=t.t,exports.schema=r.t,exports.toCssVar=i.toCssVar,Object.defineProperty(exports,"tokenSchema",{enumerable:!0,get:function(){return a.tokenSchema}}),Object.defineProperty(exports,"tokensSchema",{enumerable:!0,get:function(){return a.tokensSchema}});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./plugin.cjs"),t=require("./resolve-config-D7XXy_Qk.cjs"),n=require("./config.cjs"),r=require("./generator-CnvMSx3I.cjs"),i=require("./schema-CLeH9GGy.cjs"),a=require("./utils/index.cjs");let o=require("@power-plant/dtcg-schema");exports.componentFileSchema=i.n,exports.componentSchema=i.r,exports.componentsSchema=i.i,exports.createDocument=a.createDocument,exports.defineConfig=n.defineConfig,exports.definePlugin=e.definePlugin,exports.formatColorValue=a.formatColorValue,exports.formatDimensionValue=a.formatDimensionValue,exports.formatTokenValue=a.formatTokenValue,exports.generator=r.t,exports.isPlainObject=a.isPlainObject,exports.resolveConfig=t.t,exports.schema=i.t,exports.toCssVar=a.toCssVar,Object.defineProperty(exports,"tokenSchema",{enumerable:!0,get:function(){return o.tokenSchema}}),Object.defineProperty(exports,"tokensSchema",{enumerable:!0,get:function(){return o.tokensSchema}});
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ import { a as UserConfigFn, c as UserConfigParams, d as TokensPreprocessor, i as
3
3
  import { definePlugin } from "./plugin.cjs";
4
4
  import { defineConfig, resolveConfig } from "./config.cjs";
5
5
  import { i as tokensSchema, n as Tokens, r as tokenSchema, t as Token } from "./index-COAOe8bR.cjs";
6
- import "./generator.cjs";
6
+ import { generator } from "./generator.cjs";
7
7
  import { createDocument, formatColorValue, formatDimensionValue, formatTokenValue, isPlainObject, toCssVar } from "./utils/index.cjs";
8
8
  import { GeneratorConfig } from "@power-plant/core";
9
9
  //#region src/types/base.d.ts
@@ -18,5 +18,5 @@ type Generator<TOptions extends object = object> = GeneratorConfig<Schema, TOpti
18
18
  tags: string[];
19
19
  };
20
20
  //#endregion
21
- export { type Component, type ComponentFile, type Components, type Config, type Generator, type Options, type Plugin, type Schema, type Token, type Tokens, type TokensParser, type TokensPreprocessor, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, componentFileSchema, componentSchema, componentsSchema, createDocument, defineConfig, definePlugin, formatColorValue, formatDimensionValue, formatTokenValue, isPlainObject, resolveConfig, schema, toCssVar, tokenSchema, tokensSchema };
21
+ export { type Component, type ComponentFile, type Components, type Config, type Generator, type Options, type Plugin, type Schema, type Token, type Tokens, type TokensParser, type TokensPreprocessor, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, componentFileSchema, componentSchema, componentsSchema, createDocument, defineConfig, definePlugin, formatColorValue, formatDimensionValue, formatTokenValue, generator, isPlainObject, resolveConfig, schema, toCssVar, tokenSchema, tokensSchema };
22
22
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -3,7 +3,7 @@ import { a as UserConfigFn, c as UserConfigParams, d as TokensPreprocessor, i as
3
3
  import { definePlugin } from "./plugin.mjs";
4
4
  import { defineConfig, resolveConfig } from "./config.mjs";
5
5
  import { i as tokensSchema, n as Tokens, r as tokenSchema, t as Token } from "./index--y-fo2Lr.mjs";
6
- import "./generator.mjs";
6
+ import { generator } from "./generator.mjs";
7
7
  import { createDocument, formatColorValue, formatDimensionValue, formatTokenValue, isPlainObject, toCssVar } from "./utils/index.mjs";
8
8
  import { GeneratorConfig } from "@power-plant/core";
9
9
  //#region src/types/base.d.ts
@@ -18,5 +18,5 @@ type Generator<TOptions extends object = object> = GeneratorConfig<Schema, TOpti
18
18
  tags: string[];
19
19
  };
20
20
  //#endregion
21
- export { type Component, type ComponentFile, type Components, type Config, type Generator, type Options, type Plugin, type Schema, type Token, type Tokens, type TokensParser, type TokensPreprocessor, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, componentFileSchema, componentSchema, componentsSchema, createDocument, defineConfig, definePlugin, formatColorValue, formatDimensionValue, formatTokenValue, isPlainObject, resolveConfig, schema, toCssVar, tokenSchema, tokensSchema };
21
+ export { type Component, type ComponentFile, type Components, type Config, type Generator, type Options, type Plugin, type Schema, type Token, type Tokens, type TokensParser, type TokensPreprocessor, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type UserConfigParams, componentFileSchema, componentSchema, componentsSchema, createDocument, defineConfig, definePlugin, formatColorValue, formatDimensionValue, formatTokenValue, generator, isPlainObject, resolveConfig, schema, toCssVar, tokenSchema, tokensSchema };
22
22
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{definePlugin as e}from"./plugin.mjs";import{t}from"./resolve-config-CBowa3KM.mjs";import{defineConfig as n}from"./config.mjs";import"./generator-BWQOEMGt.mjs";import{a as r,i,n as a,o,r as s,t as c}from"./schema-Bxzw_P4l.mjs";import{createDocument as l,formatColorValue as u,formatDimensionValue as d,formatTokenValue as f,isPlainObject as p,toCssVar as m}from"./utils/index.mjs";export{i as componentFileSchema,r as componentSchema,o as componentsSchema,l as createDocument,n as defineConfig,e as definePlugin,u as formatColorValue,d as formatDimensionValue,f as formatTokenValue,p as isPlainObject,t as resolveConfig,s as schema,m as toCssVar,c as tokenSchema,a as tokensSchema};
1
+ import{definePlugin as e}from"./plugin.mjs";import{t}from"./resolve-config-CBowa3KM.mjs";import{defineConfig as n}from"./config.mjs";import{t as r}from"./generator-CZASa_I0.mjs";import{a as i,i as a,n as o,o as s,r as c,t as l}from"./schema-Bxzw_P4l.mjs";import{createDocument as u,formatColorValue as d,formatDimensionValue as f,formatTokenValue as p,isPlainObject as m,toCssVar as h}from"./utils/index.mjs";export{a as componentFileSchema,i as componentSchema,s as componentsSchema,u as createDocument,n as defineConfig,e as definePlugin,d as formatColorValue,f as formatDimensionValue,p as formatTokenValue,r as generator,m as isPlainObject,t as resolveConfig,c as schema,h as toCssVar,l as tokenSchema,o as tokensSchema};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@razorwind/core",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "private": false,
5
5
  "description": "💨 Razorwind is a unified set of tools that make creating design systems a breeze.",
6
6
  "keywords": ["razorwind", "storm-software"],
@@ -146,22 +146,22 @@
146
146
  "typings": "dist/index.d.mts",
147
147
  "files": ["dist"],
148
148
  "dependencies": {
149
- "@power-plant/core": "^0.0.33",
149
+ "@power-plant/core": "^0.0.37",
150
150
  "@power-plant/dtcg-schema": "^0.0.1",
151
- "@power-plant/schema": "^0.0.32",
152
- "@power-plant/style-dictionary": "^0.0.18",
153
- "@power-plant/utils": "^0.0.19",
154
- "@stryke/env": "^0.20.114",
155
- "@stryke/fs": "^0.33.97",
156
- "@stryke/path": "^0.29.23",
157
- "@stryke/string-format": "^0.17.38",
158
- "@stryke/type-checks": "^0.6.29",
159
- "@stryke/types": "^0.12.24",
160
- "@stryke/url": "^0.4.47",
151
+ "@power-plant/schema": "^0.0.36",
152
+ "@power-plant/style-dictionary": "^0.0.22",
153
+ "@power-plant/utils": "^0.0.23",
154
+ "@stryke/env": "^0.20.116",
155
+ "@stryke/fs": "^0.33.99",
156
+ "@stryke/path": "^0.29.25",
157
+ "@stryke/string-format": "^0.17.40",
158
+ "@stryke/type-checks": "^0.6.31",
159
+ "@stryke/types": "^0.12.26",
160
+ "@stryke/url": "^0.4.49",
161
161
  "c12": "^3.3.4",
162
162
  "defu": "^6.1.7",
163
163
  "fast-glob": "^3.3.3",
164
- "jiti": "^0.0.0",
164
+ "jiti": "^2.7.0",
165
165
  "json5": "^2.2.3",
166
166
  "smol-toml": "^1.7.0",
167
167
  "style-dictionary": "^5.5.0",
@@ -169,10 +169,10 @@
169
169
  "zod": "^4.4.3"
170
170
  },
171
171
  "devDependencies": {
172
- "@powerlines/plugin-tsdown": "^0.1.555",
172
+ "@powerlines/plugin-tsdown": "^0.1.560",
173
173
  "@types/node": "^25.9.5",
174
174
  "typescript": "^6.0.3"
175
175
  },
176
176
  "publishConfig": { "access": "public" },
177
- "gitHead": "4ee11dd8a6fb1805d01c9e6776ead099d885f93a"
177
+ "gitHead": "6ca83196e6028c6c051887e6390dbd62dd3b0582"
178
178
  }
@@ -1,2 +0,0 @@
1
- import{t as e}from"./resolve-config-CBowa3KM.mjs";import{l as t,t as n}from"./tokens-B8Dv91EB.mjs";import{r}from"./schema-Bxzw_P4l.mjs";import{isSetString as i}from"@stryke/type-checks/is-set-string";import{defineGenerator as a,defineSchema as o,useExecution as s}from"@power-plant/core";import{isEmptyObject as c}from"@stryke/type-checks/is-empty-object";import l from"style-dictionary";var u=a({meta:{name:`razorwind`,title:`Razorwind`,description:`A generator that uses Razorwind to generate design system code from design tokens and components.`,version:`0.0.7`,tags:[`razorwind`,`dtcg`]},schema:o({schema:r}),input:async r=>{let a=s();if(a.options=await e(a.cwd,r),a.options.plugins.length===0)throw Error(`Razorwind will not generate any code - no plugins configured. Please add at least one plugin to the configuration.`);t(a.options.plugins,l);let o=a.options.tokens;(!o||c(o))&&(o=await n(a.options,{cwd:a.cwd,tokensPath:i(a.options.tokensPath)?a.options.tokensPath:void 0}));let u={tokens:o??{},components:{}};for(let e of a.options.plugins.filter(e=>e.extract))u=await e.extract(u,a.options);if(!u.tokens||c(u.tokens))throw Error(`Unable to load design tokens for the current workspace. Please ensure that Razorwind is configured correctly and that the tokens are available.`);for(let e of a.options.plugins.filter(e=>e.validate))await e.validate(u,a.options);return u},generator:async e=>{let t=s(),n={};for(let r of t.options.plugins.filter(e=>e.generate)){let i=await r.generate(e,t.options);Object.assign(n,i)}return n}});export{u as t};
2
- //# sourceMappingURL=generator-BWQOEMGt.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator-BWQOEMGt.mjs","names":[],"sources":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{t as e}from"./resolve-config-CBowa3KM.mjs";import{l as t,t as n}from"./tokens-B8Dv91EB.mjs";import{r}from"./schema-Bxzw_P4l.mjs";import{isSetString as i}from"@stryke/type-checks/is-set-string";import{defineGenerator as a,defineSchema as o,useExecution as s}from"@power-plant/core";import{isEmptyObject as c}from"@stryke/type-checks/is-empty-object";import l from"style-dictionary";var u=a({meta:{name:`razorwind`,title:`Razorwind`,description:`A generator that uses Razorwind to generate design system code from design tokens and components.`,version:`0.0.6`,tags:[`razorwind`,`dtcg`]},schema:o({schema:r}),input:async r=>{let a=s();if(a.options=await e(a.cwd,r),a.options.plugins.length===0)throw Error(`Razorwind will not generate any code - no plugins configured. Please add at least one plugin to the configuration.`);t(a.options.plugins,l);let o=a.options.tokens;(!o||c(o))&&(o=await n(a.options,{cwd:a.cwd,tokensPath:i(a.options.tokensPath)?a.options.tokensPath:void 0}));let u={tokens:o??{},components:{}};for(let e of a.options.plugins.filter(e=>e.extract))u=await e.extract(u,a.options);if(!u.tokens||c(u.tokens))throw Error(`Unable to load design tokens for the current workspace. Please ensure that Razorwind is configured correctly and that the tokens are available.`);for(let e of a.options.plugins.filter(e=>e.validate))await e.validate(u,a.options);return u},generator:async e=>{let t=s(),n={};for(let r of t.options.plugins.filter(e=>e.generate)){let i=await r.generate(e,t.options);Object.assign(n,i)}return n}});export{u as t};
2
- //# sourceMappingURL=generator-DQ1WS7hN.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator-DQ1WS7hN.mjs","names":[],"sources":[],"mappings":""}
@@ -1 +0,0 @@
1
- const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./resolve-config-D7XXy_Qk.cjs"),n=require("./tokens-CoQWg4mX.cjs"),r=require("./schema-CLeH9GGy.cjs");let i=require("@stryke/type-checks/is-set-string"),a=require("@power-plant/core"),o=require("@stryke/type-checks/is-empty-object"),s=require("style-dictionary");s=e.t(s,1);var c=(0,a.defineGenerator)({meta:{name:`razorwind`,title:`Razorwind`,description:`A generator that uses Razorwind to generate design system code from design tokens and components.`,version:`0.0.7`,tags:[`razorwind`,`dtcg`]},schema:(0,a.defineSchema)({schema:r.t}),input:async e=>{let r=(0,a.useExecution)();if(r.options=await t.t(r.cwd,e),r.options.plugins.length===0)throw Error(`Razorwind will not generate any code - no plugins configured. Please add at least one plugin to the configuration.`);n.l(r.options.plugins,s.default);let c=r.options.tokens;(!c||(0,o.isEmptyObject)(c))&&(c=await n.t(r.options,{cwd:r.cwd,tokensPath:(0,i.isSetString)(r.options.tokensPath)?r.options.tokensPath:void 0}));let l={tokens:c??{},components:{}};for(let e of r.options.plugins.filter(e=>e.extract))l=await e.extract(l,r.options);if(!l.tokens||(0,o.isEmptyObject)(l.tokens))throw Error(`Unable to load design tokens for the current workspace. Please ensure that Razorwind is configured correctly and that the tokens are available.`);for(let e of r.options.plugins.filter(e=>e.validate))await e.validate(l,r.options);return l},generator:async e=>{let t=(0,a.useExecution)(),n={};for(let r of t.options.plugins.filter(e=>e.generate)){let i=await r.generate(e,t.options);Object.assign(n,i)}return n}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
@@ -1 +0,0 @@
1
- const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./resolve-config-D7XXy_Qk.cjs"),n=require("./tokens-CoQWg4mX.cjs"),r=require("./schema-CLeH9GGy.cjs");let i=require("@stryke/type-checks/is-set-string"),a=require("@power-plant/core"),o=require("@stryke/type-checks/is-empty-object"),s=require("style-dictionary");s=e.t(s,1);var c=(0,a.defineGenerator)({meta:{name:`razorwind`,title:`Razorwind`,description:`A generator that uses Razorwind to generate design system code from design tokens and components.`,version:`0.0.6`,tags:[`razorwind`,`dtcg`]},schema:(0,a.defineSchema)({schema:r.t}),input:async e=>{let r=(0,a.useExecution)();if(r.options=await t.t(r.cwd,e),r.options.plugins.length===0)throw Error(`Razorwind will not generate any code - no plugins configured. Please add at least one plugin to the configuration.`);n.l(r.options.plugins,s.default);let c=r.options.tokens;(!c||(0,o.isEmptyObject)(c))&&(c=await n.t(r.options,{cwd:r.cwd,tokensPath:(0,i.isSetString)(r.options.tokensPath)?r.options.tokensPath:void 0}));let l={tokens:c??{},components:{}};for(let e of r.options.plugins.filter(e=>e.extract))l=await e.extract(l,r.options);if(!l.tokens||(0,o.isEmptyObject)(l.tokens))throw Error(`Unable to load design tokens for the current workspace. Please ensure that Razorwind is configured correctly and that the tokens are available.`);for(let e of r.options.plugins.filter(e=>e.validate))await e.validate(l,r.options);return l},generator:async e=>{let t=(0,a.useExecution)(),n={};for(let r of t.options.plugins.filter(e=>e.generate)){let i=await r.generate(e,t.options);Object.assign(n,i)}return n}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});