@powerlines/plugin-style-dictionary 0.3.19 → 0.3.21
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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types/plugin.d.cts +9 -0
- package/dist/types/plugin.d.mts +9 -0
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -112,7 +112,7 @@ const plugin = (options = {}) => {
|
|
|
112
112
|
prepare: {
|
|
113
113
|
order: "pre",
|
|
114
114
|
async handler() {
|
|
115
|
-
await this.styleDictionary.buildAllPlatforms({ cache: !this.config.skipCache });
|
|
115
|
+
if (!this.config.styleDictionary.skipBuild) await this.styleDictionary.buildAllPlatforms({ cache: !this.config.skipCache });
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -108,7 +108,7 @@ const plugin = (options = {}) => {
|
|
|
108
108
|
prepare: {
|
|
109
109
|
order: "pre",
|
|
110
110
|
async handler() {
|
|
111
|
-
await this.styleDictionary.buildAllPlatforms({ cache: !this.config.skipCache });
|
|
111
|
+
if (!this.config.styleDictionary.skipBuild) await this.styleDictionary.buildAllPlatforms({ cache: !this.config.skipCache });
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
};
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -16,6 +16,15 @@ type CustomFiltersBuilder = StyleDictionaryExtensionBuilder<Filter>;
|
|
|
16
16
|
type CustomParsersBuilder = (extensionContext: StyleDictionaryPluginContext) => Parser[];
|
|
17
17
|
type CustomPreprocessorsBuilder = StyleDictionaryExtensionBuilder<Preprocessor>;
|
|
18
18
|
type StyleDictionaryPluginOptions = Omit<Config, "platforms"> & {
|
|
19
|
+
/**
|
|
20
|
+
* Whether to skip the Style Dictionary build process.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* If set to `true`, the Style Dictionary build step will be skipped (ran during the "prepare" command), allowing for manual control over when the build occurs.
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue false
|
|
26
|
+
*/
|
|
27
|
+
skipBuild?: boolean;
|
|
19
28
|
/**
|
|
20
29
|
* Custom Style Dictionary actions to register.
|
|
21
30
|
*
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -16,6 +16,15 @@ type CustomFiltersBuilder = StyleDictionaryExtensionBuilder<Filter>;
|
|
|
16
16
|
type CustomParsersBuilder = (extensionContext: StyleDictionaryPluginContext) => Parser[];
|
|
17
17
|
type CustomPreprocessorsBuilder = StyleDictionaryExtensionBuilder<Preprocessor>;
|
|
18
18
|
type StyleDictionaryPluginOptions = Omit<Config, "platforms"> & {
|
|
19
|
+
/**
|
|
20
|
+
* Whether to skip the Style Dictionary build process.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* If set to `true`, the Style Dictionary build step will be skipped (ran during the "prepare" command), allowing for manual control over when the build occurs.
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue false
|
|
26
|
+
*/
|
|
27
|
+
skipBuild?: boolean;
|
|
19
28
|
/**
|
|
20
29
|
* Custom Style Dictionary actions to register.
|
|
21
30
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-style-dictionary",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code with Style Dictionary.",
|
|
6
6
|
"repository": {
|
|
@@ -127,14 +127,14 @@
|
|
|
127
127
|
"@stryke/types": "^0.10.29",
|
|
128
128
|
"defu": "^6.1.4",
|
|
129
129
|
"jiti": "^2.6.1",
|
|
130
|
-
"powerlines": "^0.36.
|
|
130
|
+
"powerlines": "^0.36.25",
|
|
131
131
|
"style-dictionary": "^5.1.1"
|
|
132
132
|
},
|
|
133
133
|
"devDependencies": {
|
|
134
|
-
"@powerlines/nx": "^0.11.
|
|
135
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
134
|
+
"@powerlines/nx": "^0.11.51",
|
|
135
|
+
"@powerlines/plugin-plugin": "^0.12.72",
|
|
136
136
|
"@types/node": "^24.10.4"
|
|
137
137
|
},
|
|
138
138
|
"publishConfig": { "access": "public" },
|
|
139
|
-
"gitHead": "
|
|
139
|
+
"gitHead": "c1a4108ae6677e951e90e42f8d270959a401d1bd"
|
|
140
140
|
}
|