Skip to content

Commit c7150e5

Browse files
committed
chore(components): use commonjs in the patched export file
1 parent 58b2b3f commit c7150e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compass-components/scripts/patch-leafygreen-button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ console.log('Adding @leafygreen-ui/button/constants export...');
1818

1919
fs.writeFileSync(
2020
path.join(leafygreenButtonPackage, 'constants.js'),
21-
"export const PRIMARY_BUTTON_INTERACTIVE_GREEN = '#00593F';"
21+
"module.exports = { PRIMARY_BUTTON_INTERACTIVE_GREEN: '#00593F' };"
2222
);
2323
fs.writeFileSync(
2424
path.join(leafygreenButtonPackage, 'constants.d.ts'),

0 commit comments

Comments
 (0)