mirror of
https://github.com/gosticks/plane.git
synced 2025-10-16 12:45:33 +00:00
* chore: global css file added to tailwind config package * chore: tailwind config updated * chore: cn utility function added to propel package * chore: storybook init * fix: format error * chore: code refactor * chore: code refactor * fix: format error * fix: build error
21 lines
573 B
TypeScript
21 lines
573 B
TypeScript
import type { StorybookConfig } from "@storybook/react-vite";
|
|
|
|
import { join, dirname } from "path";
|
|
|
|
/*
|
|
* This function is used to resolve the absolute path of a package.
|
|
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
|
|
*/
|
|
function getAbsolutePath(value: string) {
|
|
return dirname(require.resolve(join(value, "package.json")));
|
|
}
|
|
const config: StorybookConfig = {
|
|
stories: ["../src/**/*.stories.@(ts|tsx)"],
|
|
addons: [],
|
|
framework: {
|
|
name: getAbsolutePath("@storybook/react-vite"),
|
|
options: {},
|
|
},
|
|
};
|
|
export default config;
|