Skip to content

Commit f5778f7

Browse files
authored
fix(carbon-react): add compat styles to package (#9661)
1 parent cb5b4bd commit f5778f7

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Code generated by @carbon/react. DO NOT EDIT.
2+
//
3+
// Copyright IBM Corp. 2018, 2018
4+
//
5+
// This source code is licensed under the Apache-2.0 license found in the
6+
// LICENSE file in the root directory of this source tree.
7+
//
8+
9+
@forward '@carbon/styles/scss/compat/theme';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Code generated by @carbon/react. DO NOT EDIT.
2+
//
3+
// Copyright IBM Corp. 2018, 2018
4+
//
5+
// This source code is licensed under the Apache-2.0 license found in the
6+
// LICENSE file in the root directory of this source tree.
7+
//
8+
9+
@forward '@carbon/styles/scss/compat/themes';

packages/carbon-react/tasks/build-styles.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,20 @@ async function build() {
449449
},
450450
],
451451
},
452+
{
453+
type: 'directory',
454+
filepath: 'compat',
455+
files: [
456+
{
457+
type: 'file',
458+
filepath: '_theme.scss',
459+
},
460+
{
461+
type: 'file',
462+
filepath: '_themes.scss',
463+
},
464+
],
465+
},
452466
],
453467
};
454468
const files = collect(styles);

0 commit comments

Comments
 (0)