Skip to content

Commit

Permalink
feat: adapt generated outputs (#504)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Remove :host() scoped output, replace css placeholder output by SCSS mixin
  • Loading branch information
jeripeierSBB committed Apr 16, 2024
1 parent 6017346 commit d1c9a3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
13 changes: 3 additions & 10 deletions config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,12 @@ export const config: Config = {
prefix: 'sbb',
files: [
{
destination: 'sbb-variables--root.css',
destination: 'sbb-variables.css',
format: 'css/variables',
options: {
selector: ':root',
},
},
{
destination: 'sbb-variables--host.css',
format: 'css/variables',
options: {
selector: ':host',
},
},
],
transformGroup: 'css',
transforms: [
Expand Down Expand Up @@ -89,10 +82,10 @@ export const config: Config = {
format: 'custom/format/scss',
},
{
destination: 'sbb-variables_css--placeholder.scss',
destination: 'sbb-variables_css--mixin.scss',
format: 'css/variables',
options: {
selector: '%lyne-design-tokens-css-variables',
selector: '@mixin lyne-design-tokens-css-variables',
},
},
],
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"sass": "./dist/scss/sbb-variables.scss",
"node": "./dist/js/sbb-tokens.mjs",
"require": "./dist/js/sbb-tokens.cjs",
"default": "./dist/js/sbb-tokens.mjs"
"default": "./dist/js/sbb-tokens.mjs",
"style": "./dist/sbb-variables.css"
},
"./dist/js/*": {
"default": "./dist/js/*"
Expand All @@ -61,6 +62,9 @@
},
"./dist/scss/*": {
"sass": "./dist/scss/*"
},
"./dist/css/*": {
"style": "./dist/sbb-variables.css"
}
},
"prettier": {
Expand Down

0 comments on commit d1c9a3b

Please sign in to comment.