Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
fix: correct esm build by moving stitches config to src
Browse files Browse the repository at this point in the history
  • Loading branch information
erictaylor committed Mar 2, 2022
1 parent 1ba31a4 commit 358d1f8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion stitches.config.ts → src/stitches.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type * as Stitches from '@stitches/react';
import { createStitches } from '@stitches/react';
import { colorPrimitives } from './src/primitives/colorPrimitives';
import { colorPrimitives } from './primitives/colorPrimitives';

export const {
styled,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import * as Icons from '../.';
import { styled } from '../../../stitches.config';
import * as Icons from '../icons';
import { styled } from '../stitches.config';

const IconsWrapper = styled('div', {
display: 'flex',
width: '100%',
flexFlow: 'row wrap',
width: '100%',
});

const IconContainer = styled('div', {
display: 'flex',
flexFlow: 'column',
'& > *': {
marginBottom: '8px',
},
alignItems: 'center',
fontSize: '1rem',
color: '$brandBlack',
backgroundColor: '$brandWhite',
borderRadius: '20px',
padding: '$16',
margin: '$24',
boxShadow: '0px 0px 20px rgba(0, 0, 0, 0.16)',
'& > *': {
marginBottom: '8px',
},
color: '$brandBlack',
display: 'flex',
flexFlow: 'column',
fontSize: '1rem',
margin: '$24',
padding: '$16',
});

export const AllIcons = () => (
Expand All @@ -37,6 +37,6 @@ export const AllIcons = () => (
);

export default {
title: 'Icons',
component: AllIcons,
title: 'Icons',
};
7 changes: 6 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@
"noEmit": false,
"outDir": "dist/esm"
},
"exclude": ["src/**/__tests__/*", "src/**/*.test.*"]
"exclude": [
"node_modules",
"src/**/__tests__/*",
"src/**/*.test.*",
"src/**/*.stories.*"
]
}

0 comments on commit 358d1f8

Please sign in to comment.