Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
swantzter committed Mar 17, 2024
1 parent 01b7756 commit 1fe26de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
const WindiCSS = require('vite-plugin-windicss').default;
const Icons = require('unplugin-icons/vite');
const { default: Icons } = require('unplugin-icons/vite');
const { default: Unocss } = require('unocss/vite')
module.exports = {
stories: ['../lib/**/*.stories.mdx', '../lib/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
Expand All @@ -10,8 +10,8 @@ module.exports = {
},
async viteFinal(config) {
config.root = path.dirname(__dirname);
config.plugins.push(WindiCSS({
config: path.join(__dirname, '..', 'windi.config.ts')
config.plugins.push(Unocss({
config: path.join(__dirname, '..', 'uno.config.ts')
}));
config.plugins.push(Icons({
compiler: 'vue3'
Expand All @@ -21,4 +21,4 @@ module.exports = {
docs: {
autodocs: true
}
};
};
3 changes: 2 additions & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'virtual:windi.css'
import 'uno.css'
import '../lib/base.css'

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.production.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"exclude": [
"vite.config.ts",
"windi.config.ts",
"unocss.config.ts",
"lib/**/*.test.ts",
"lib/**/*.stories.ts"
]
Expand Down

0 comments on commit 1fe26de

Please sign in to comment.