@spectrum-web-components/icons-workflow 0.42.1 → 0.42.3

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/bin/build.js CHANGED
@@ -146,20 +146,22 @@ icons.forEach((i) => {
146
146
  }
147
147
  `;
148
148
 
149
- const icon = prettier.format(iconLiteral, {
150
- printWidth: 100,
151
- tabWidth: 2,
152
- useTabs: false,
153
- semi: true,
154
- singleQuote: true,
155
- trailingComma: 'all',
156
- bracketSpacing: true,
157
- jsxBracketSameLine: false,
158
- arrowParens: 'avoid',
159
- parser: 'typescript',
160
- });
161
-
162
- fs.writeFileSync(location, icon, 'utf-8');
149
+ prettier
150
+ .format(iconLiteral, {
151
+ printWidth: 100,
152
+ tabWidth: 2,
153
+ useTabs: false,
154
+ semi: true,
155
+ singleQuote: true,
156
+ trailingComma: 'all',
157
+ bracketSpacing: true,
158
+ jsxBracketSameLine: false,
159
+ arrowParens: 'avoid',
160
+ parser: 'typescript',
161
+ })
162
+ .then((icon) => {
163
+ fs.writeFileSync(location, icon, 'utf-8');
164
+ });
163
165
 
164
166
  const exportString = `export {${ComponentName}Icon} from './icons/${id}.js';\r\n`;
165
167
  fs.appendFileSync(
@@ -197,31 +199,33 @@ icons.forEach((i) => {
197
199
  }
198
200
  }
199
201
  `;
200
- const iconElementFile = prettier.format(iconElement, {
201
- printWidth: 100,
202
- tabWidth: 2,
203
- useTabs: false,
204
- semi: true,
205
- singleQuote: true,
206
- trailingComma: 'all',
207
- bracketSpacing: true,
208
- jsxBracketSameLine: false,
209
- arrowParens: 'avoid',
210
- parser: 'typescript',
211
- });
212
-
213
- fs.writeFileSync(
214
- path.join(
215
- rootDir,
216
- 'packages',
217
- 'icons-workflow',
218
- 'src',
219
- 'elements',
220
- `Icon${id}.ts`
221
- ),
222
- iconElementFile,
223
- 'utf-8'
224
- );
202
+ prettier
203
+ .format(iconElement, {
204
+ printWidth: 100,
205
+ tabWidth: 2,
206
+ useTabs: false,
207
+ semi: true,
208
+ singleQuote: true,
209
+ trailingComma: 'all',
210
+ bracketSpacing: true,
211
+ jsxBracketSameLine: false,
212
+ arrowParens: 'avoid',
213
+ parser: 'typescript',
214
+ })
215
+ .then((iconElementFile) => {
216
+ fs.writeFileSync(
217
+ path.join(
218
+ rootDir,
219
+ 'packages',
220
+ 'icons-workflow',
221
+ 'src',
222
+ 'elements',
223
+ `Icon${id}.ts`
224
+ ),
225
+ iconElementFile,
226
+ 'utf-8'
227
+ );
228
+ });
225
229
 
226
230
  const iconRegistration = `
227
231
  ${disclaimer}
@@ -237,30 +241,33 @@ icons.forEach((i) => {
237
241
  }
238
242
  }
239
243
  `;
240
- const iconRegistrationFile = prettier.format(iconRegistration, {
241
- printWidth: 100,
242
- tabWidth: 2,
243
- useTabs: false,
244
- semi: true,
245
- singleQuote: true,
246
- trailingComma: 'all',
247
- bracketSpacing: true,
248
- jsxBracketSameLine: false,
249
- arrowParens: 'avoid',
250
- parser: 'typescript',
251
- });
244
+ prettier
245
+ .format(iconRegistration, {
246
+ printWidth: 100,
247
+ tabWidth: 2,
248
+ useTabs: false,
249
+ semi: true,
250
+ singleQuote: true,
251
+ trailingComma: 'all',
252
+ bracketSpacing: true,
253
+ jsxBracketSameLine: false,
254
+ arrowParens: 'avoid',
255
+ parser: 'typescript',
256
+ })
257
+ .then((iconRegistrationFile) => {
258
+ fs.writeFileSync(
259
+ path.join(
260
+ rootDir,
261
+ 'packages',
262
+ 'icons-workflow',
263
+ 'icons',
264
+ `${iconElementName}.ts`
265
+ ),
266
+ iconRegistrationFile,
267
+ 'utf-8'
268
+ );
269
+ });
252
270
 
253
- fs.writeFileSync(
254
- path.join(
255
- rootDir,
256
- 'packages',
257
- 'icons-workflow',
258
- 'icons',
259
- `${iconElementName}.ts`
260
- ),
261
- iconRegistrationFile,
262
- 'utf-8'
263
- );
264
271
  const importStatement = `\r\nimport '@spectrum-web-components/icons-workflow/icons/${iconElementName}.js';`;
265
272
  const metadata = `{name: '${Case.sentence(
266
273
  ComponentName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/icons-workflow",
3
- "version": "0.42.1",
3
+ "version": "0.42.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,8 +44,8 @@
44
44
  "lit-html"
45
45
  ],
46
46
  "dependencies": {
47
- "@spectrum-web-components/base": "^0.42.1",
48
- "@spectrum-web-components/icon": "^0.42.1"
47
+ "@spectrum-web-components/base": "^0.42.3",
48
+ "@spectrum-web-components/icon": "^0.42.3"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@adobe/spectrum-css-workflow-icons": "^1.5.4",
@@ -55,7 +55,7 @@
55
55
  "fast-glob": "^3.2.12",
56
56
  "fs": "^0.0.1-security",
57
57
  "path": "^0.12.7",
58
- "prettier": "^2.7.1"
58
+ "prettier": "^3.0.0"
59
59
  },
60
60
  "types": "./src/index.d.ts",
61
61
  "customElements": "custom-elements.json",
@@ -63,5 +63,5 @@
63
63
  "./src/index.js",
64
64
  "./icons/*"
65
65
  ],
66
- "gitHead": "c7ab5516e86d20194e92114afd04affa490b7248"
66
+ "gitHead": "a03edce4f21f232f1705d8eb222e6e5436cad4c3"
67
67
  }
@@ -1,6 +1,6 @@
1
1
  import { html, TemplateResult } from '@spectrum-web-components/base';
2
2
  export type { TemplateResult };
3
- export declare type GenericTemplateLiteralTagType = (strings: TemplateStringsArray, ...values: unknown[]) => string;
4
- declare type TemplateLiteralTagType = GenericTemplateLiteralTagType | typeof html;
3
+ export type GenericTemplateLiteralTagType = (strings: TemplateStringsArray, ...values: unknown[]) => string;
4
+ type TemplateLiteralTagType = GenericTemplateLiteralTagType | typeof html;
5
5
  export declare const tag: (strings: TemplateStringsArray, ...values: unknown[]) => string | TemplateResult;
6
6
  export declare const setCustomTemplateLiteralTag: (tag: TemplateLiteralTagType) => void;