@powerlines/plugin-style-dictionary 0.3.20 → 0.3.22

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 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
  };
@@ -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
  *
@@ -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.20",
3
+ "version": "0.3.22",
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.24",
130
+ "powerlines": "^0.36.26",
131
131
  "style-dictionary": "^5.1.1"
132
132
  },
133
133
  "devDependencies": {
134
- "@powerlines/nx": "^0.11.50",
135
- "@powerlines/plugin-plugin": "^0.12.71",
134
+ "@powerlines/nx": "^0.11.52",
135
+ "@powerlines/plugin-plugin": "^0.12.73",
136
136
  "@types/node": "^24.10.4"
137
137
  },
138
138
  "publishConfig": { "access": "public" },
139
- "gitHead": "4b695d4b3476fd9dd79521f92258d52dab2b8d72"
139
+ "gitHead": "f27028746c0657470a2c93af2e3224565ae7fd61"
140
140
  }