Skip to content

Commit

Permalink
fix: build regression
Browse files Browse the repository at this point in the history
Signed-off-by: hxtree <[email protected]>
  • Loading branch information
hxtree committed Dec 5, 2023
1 parent 9dee8f8 commit 4d9e954
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 35 deletions.
7 changes: 1 addition & 6 deletions services/design-system/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { StorybookConfig } from '@storybook/react-vite';
import path, { join, dirname } from 'path';

const config: StorybookConfig = {
stories: ['../stories/**/*.stories.@(js|jsx|ts|tsx)'],
Expand All @@ -9,11 +8,7 @@ const config: StorybookConfig = {
'@storybook/addon-a11y',
{
name: '@storybook/addon-styling',
options: {
sass: {
implementation: require('sass'),
},
},
options: {},
},
],
typescript: {
Expand Down
7 changes: 4 additions & 3 deletions services/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@cats-cradle/design-system",
"version": "0.4.0",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"main": "dist/src/index.js",
"typings": "dist/src/index.d.ts",
"files": [
"dist",
"src"
Expand Down Expand Up @@ -95,7 +95,8 @@
"deploy": "gh-pages -d build",
"storybook": "storybook dev -p 6006 -s public",
"dev": "storybook dev -p 6006",
"build": "storybook build",
"build": "tsc",
"build:sb": "storybook build",
"build:all": "rush build -t .",
"test": "",
"watch": "tsc -w",
Expand Down
2 changes: 1 addition & 1 deletion services/design-system/src/Mui/Typography.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Typography as MuiTypography, TypographyProps } from '@mui/material';
import { styled } from '@mui/system';

export const Typography = styled(MuiTypography)<TypographyProps>(() => ({
export const Typography: any = styled(MuiTypography)<TypographyProps>(() => ({
'&.center': {
textAlign: 'center',
},
Expand Down
50 changes: 25 additions & 25 deletions services/design-system/src/Mui/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@ export * from './Layout';
export * from './Alert';

export {
// Drawer,
// CssBaseline,
// Toolbar,
// List,
Drawer,
CssBaseline,
Toolbar,
List,
Divider,
// IconButton,
// ListItem,
// ListItemButton,
// FormControl,
// InputLabel,
// Select,
// Box,
// CardContent,
// Card,
// Grid,
// Stack,
// Container,
// // SelectChangeEvent,
// OutlinedInput,
// MenuItem,
// ListItemIcon,
// ListItemText,
// styled,
// AppBar,
// AppBarProps,
// useTheme,
IconButton,
ListItem,
ListItemButton,
FormControl,
InputLabel,
Select,
Box,
CardContent,
Card,
Grid,
Stack,
Container,
// SelectChangeEvent,
OutlinedInput,
MenuItem,
ListItemIcon,
ListItemText,
styled,
AppBar,
// AppBarProps,
useTheme,
} from '@mui/material';
2 changes: 2 additions & 0 deletions services/design-system/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
"inlineSources": true,
"experimentalDecorators": true,
"allowJs": true,
"declarationMap": true,
"emitDecoratorMetadata": true,
"strictPropertyInitialization": false,
"baseUrl": ".",
"typeRoots": ["./node_modules/@types"]
},
"sourceMap": true,
Expand Down

0 comments on commit 4d9e954

Please sign in to comment.