From f5778f7dc717d8ff3d43a4700b4ada333f8a69ab Mon Sep 17 00:00:00 2001 From: Josh Black Date: Tue, 14 Sep 2021 15:22:34 -0500 Subject: [PATCH] fix(carbon-react): add compat styles to package (#9661) --- packages/carbon-react/scss/compat/_theme.scss | 9 +++++++++ packages/carbon-react/scss/compat/_themes.scss | 9 +++++++++ packages/carbon-react/tasks/build-styles.js | 14 ++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 packages/carbon-react/scss/compat/_theme.scss create mode 100644 packages/carbon-react/scss/compat/_themes.scss diff --git a/packages/carbon-react/scss/compat/_theme.scss b/packages/carbon-react/scss/compat/_theme.scss new file mode 100644 index 000000000000..6e35001e7a08 --- /dev/null +++ b/packages/carbon-react/scss/compat/_theme.scss @@ -0,0 +1,9 @@ +// Code generated by @carbon/react. DO NOT EDIT. +// +// Copyright IBM Corp. 2018, 2018 +// +// This source code is licensed under the Apache-2.0 license found in the +// LICENSE file in the root directory of this source tree. +// + +@forward '@carbon/styles/scss/compat/theme'; diff --git a/packages/carbon-react/scss/compat/_themes.scss b/packages/carbon-react/scss/compat/_themes.scss new file mode 100644 index 000000000000..7844e4a87a03 --- /dev/null +++ b/packages/carbon-react/scss/compat/_themes.scss @@ -0,0 +1,9 @@ +// Code generated by @carbon/react. DO NOT EDIT. +// +// Copyright IBM Corp. 2018, 2018 +// +// This source code is licensed under the Apache-2.0 license found in the +// LICENSE file in the root directory of this source tree. +// + +@forward '@carbon/styles/scss/compat/themes'; diff --git a/packages/carbon-react/tasks/build-styles.js b/packages/carbon-react/tasks/build-styles.js index 1d6b54fd8331..171e2cfbcd53 100644 --- a/packages/carbon-react/tasks/build-styles.js +++ b/packages/carbon-react/tasks/build-styles.js @@ -449,6 +449,20 @@ async function build() { }, ], }, + { + type: 'directory', + filepath: 'compat', + files: [ + { + type: 'file', + filepath: '_theme.scss', + }, + { + type: 'file', + filepath: '_themes.scss', + }, + ], + }, ], }; const files = collect(styles);