Sync shared snapshot from a90f4eb
This commit is contained in:
1 parent
85f02a7327
commit
4e413a5cf6
4 files changed
+19
-6
No files matched your search
@@ -103,7 +103,12 @@ function Convert-ToConsumerWebUiPackage {
|
||||
|
||||
$manifest = Get-Content -LiteralPath $PackagePath -Raw | ConvertFrom-Json
|
||||
$manifest.files = @('src', 'README.md')
|
||||
$manifest.dependencies = [pscustomobject]@{}
|
||||
if ($null -ne $manifest.dependencies) {
|
||||
$designTokensDependency = $manifest.dependencies.PSObject.Properties['@gabriel20xx/design-tokens']
|
||||
if ($null -ne $designTokensDependency) {
|
||||
$manifest.dependencies.PSObject.Properties.Remove('@gabriel20xx/design-tokens')
|
||||
}
|
||||
}
|
||||
$manifest.svelte = './src/index.ts'
|
||||
$manifest.types = './src/index.ts'
|
||||
|
||||
@@ -133,6 +138,7 @@ function Convert-ToConsumerWebUiSources {
|
||||
if (Test-Path -LiteralPath $stylesPath) {
|
||||
$styles = Get-Content -LiteralPath $stylesPath -Raw
|
||||
$styles = $styles.Replace("@import '@gabriel20xx/design-tokens/theme.css';", "@import '../../../design-tokens/theme.css';")
|
||||
$styles = $styles.Replace('@import "@gabriel20xx/design-tokens/theme.css";', "@import '../../../design-tokens/theme.css';")
|
||||
Write-Utf8NoBom -Path $stylesPath -Content $styles
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user