@spectrum-web-components/icons-ui
Advanced tools
Comparing version 0.42.2 to 0.42.3
132
bin/build.js
@@ -144,17 +144,19 @@ /* | ||
const icon = prettier.format(iconLiteral, { | ||
printWidth: 100, | ||
tabWidth: 2, | ||
useTabs: false, | ||
semi: true, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
bracketSpacing: true, | ||
jsxBracketSameLine: false, | ||
arrowParens: 'avoid', | ||
parser: 'typescript', | ||
}); | ||
prettier | ||
.format(iconLiteral, { | ||
printWidth: 100, | ||
tabWidth: 2, | ||
useTabs: false, | ||
semi: true, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
bracketSpacing: true, | ||
jsxBracketSameLine: false, | ||
arrowParens: 'avoid', | ||
parser: 'typescript', | ||
}) | ||
.then((icon) => { | ||
fs.writeFileSync(location, icon, 'utf-8'); | ||
}); | ||
fs.writeFileSync(location, icon, 'utf-8'); | ||
const exportString = `export {${ComponentName}Icon} from './icons/${id}.js';\r\n`; | ||
@@ -196,28 +198,30 @@ fs.appendFileSync( | ||
`; | ||
const iconElementFile = prettier.format(iconElement, { | ||
printWidth: 100, | ||
tabWidth: 2, | ||
useTabs: false, | ||
semi: true, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
bracketSpacing: true, | ||
jsxBracketSameLine: false, | ||
arrowParens: 'avoid', | ||
parser: 'typescript', | ||
}); | ||
prettier | ||
.format(iconElement, { | ||
printWidth: 100, | ||
tabWidth: 2, | ||
useTabs: false, | ||
semi: true, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
bracketSpacing: true, | ||
jsxBracketSameLine: false, | ||
arrowParens: 'avoid', | ||
parser: 'typescript', | ||
}) | ||
.then((iconElementFile) => { | ||
fs.writeFileSync( | ||
path.join( | ||
rootDir, | ||
'packages', | ||
'icons-ui', | ||
'src', | ||
'elements', | ||
`Icon${id}.ts` | ||
), | ||
iconElementFile, | ||
'utf-8' | ||
); | ||
}); | ||
fs.writeFileSync( | ||
path.join( | ||
rootDir, | ||
'packages', | ||
'icons-ui', | ||
'src', | ||
'elements', | ||
`Icon${id}.ts` | ||
), | ||
iconElementFile, | ||
'utf-8' | ||
); | ||
const iconRegistration = ` | ||
@@ -237,26 +241,28 @@ ${disclaimer} | ||
`; | ||
const iconRegistrationFile = prettier.format(iconRegistration, { | ||
printWidth: 100, | ||
tabWidth: 2, | ||
useTabs: false, | ||
semi: true, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
bracketSpacing: true, | ||
jsxBracketSameLine: false, | ||
arrowParens: 'avoid', | ||
parser: 'typescript', | ||
}); | ||
fs.writeFileSync( | ||
path.join( | ||
rootDir, | ||
'packages', | ||
'icons-ui', | ||
'icons', | ||
`${iconElementName}.ts` | ||
), | ||
iconRegistrationFile, | ||
'utf-8' | ||
); | ||
prettier | ||
.format(iconRegistration, { | ||
printWidth: 100, | ||
tabWidth: 2, | ||
useTabs: false, | ||
semi: true, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
bracketSpacing: true, | ||
jsxBracketSameLine: false, | ||
arrowParens: 'avoid', | ||
parser: 'typescript', | ||
}) | ||
.then((iconRegistrationFile) => { | ||
fs.writeFileSync( | ||
path.join( | ||
rootDir, | ||
'packages', | ||
'icons-ui', | ||
'icons', | ||
`${iconElementName}.ts` | ||
), | ||
iconRegistrationFile, | ||
'utf-8' | ||
); | ||
}); | ||
const importStatement = `\r\nimport '@spectrum-web-components/icons-ui/icons/${iconElementName}.js';`; | ||
@@ -263,0 +269,0 @@ const metadata = `{name: '${Case.sentence( |
{ | ||
"name": "@spectrum-web-components/icons-ui", | ||
"version": "0.42.2", | ||
"version": "0.42.3", | ||
"publishConfig": { | ||
@@ -47,5 +47,5 @@ "access": "public" | ||
"dependencies": { | ||
"@spectrum-web-components/base": "^0.42.2", | ||
"@spectrum-web-components/icon": "^0.42.2", | ||
"@spectrum-web-components/iconset": "^0.42.2" | ||
"@spectrum-web-components/base": "^0.42.3", | ||
"@spectrum-web-components/icon": "^0.42.3", | ||
"@spectrum-web-components/iconset": "^0.42.3" | ||
}, | ||
@@ -59,3 +59,3 @@ "devDependencies": { | ||
"path": "^0.12.7", | ||
"prettier": "^2.7.1" | ||
"prettier": "^3.0.0" | ||
}, | ||
@@ -68,3 +68,3 @@ "types": "./src/index.d.ts", | ||
], | ||
"gitHead": "e19af30387032608baaa88c6a17c2ee50103a7c5" | ||
"gitHead": "a03edce4f21f232f1705d8eb222e6e5436cad4c3" | ||
} |
import { html, TemplateResult } from '@spectrum-web-components/base'; | ||
export type { TemplateResult }; | ||
export declare type GenericTemplateLiteralTagType = (strings: TemplateStringsArray, ...values: unknown[]) => string; | ||
declare type TemplateLiteralTagType = GenericTemplateLiteralTagType | typeof html; | ||
export type GenericTemplateLiteralTagType = (strings: TemplateStringsArray, ...values: unknown[]) => string; | ||
type TemplateLiteralTagType = GenericTemplateLiteralTagType | typeof html; | ||
export declare const tag: (strings: TemplateStringsArray, ...values: unknown[]) => string | TemplateResult; | ||
export declare const setCustomTemplateLiteralTag: (tag: TemplateLiteralTagType) => void; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
490090
5077