Skip to content

Commit

Permalink
chore: fix rollup css (#194)
Browse files Browse the repository at this point in the history
* build(bump versions): bumping versions

bumping versions

BREAKING CHANGE: styles now need to be imported separately

* build(rollup): update to fix css exports

* build(package.json): updates to all packages to trigger version bump
  • Loading branch information
Nazzanuk authored Apr 27, 2023
1 parent 29a9ff3 commit 7d1fc92
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/chip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/collapse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/dropdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/fonts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/form-control/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/logo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/pill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/review-rating/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/switch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/textarea/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
1 change: 0 additions & 1 deletion packages/typography/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"uikit",
"react",
"components",
"modules",
"heycar",
"typescript",
"ui-components",
Expand Down
21 changes: 20 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { ScriptTarget } from 'typescript';

import addCssImports from './tools/rollup/addCssImports';
import bundleCss from './tools/rollup/bundleCss';
import generateClassNameHash from './tools/rollup/generateClassNameHash';
import {
coreComponentsResolver,
coreComponentsRootPackageResolver,
Expand Down Expand Up @@ -169,7 +170,25 @@ const esm = {
}),
}),
json(),
postcss({ plugins: [], sourceMap: true, extract: true, minimize: true }),
postcss({
plugins: [],
sourceMap: true,
extract: true,
minimize: true,
modules: {
generateScopedName: function (name, fileName) {
const relativeFileName = path.relative(currentPackageDir, fileName);
const hash = generateClassNameHash(
pkg.name,
rootPkg.version,
relativeFileName,
);

return `${currentComponentName}__${name}_${hash}`;
},
},
autoModules: false,
}),
copyPlugin(esmDist),
],
};
Expand Down

1 comment on commit 7d1fc92

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 98.14% 1371/1397
🟢 Branches 85.35% 268/314
🟢 Functions 94.29% 99/105
🟢 Lines 98.66% 1247/1264

Test suite run success

301 tests passing in 44 suites.

Report generated by 🧪jest coverage report action from 7d1fc92

Please sign in to comment.