plane/packages/propel/.storybook/main.ts
Anmol Singh Bhatia c2464939fc
[WEB-4725] chore: storybook setup & tailwind config package improvements (#7614)
* 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
2025-08-26 02:14:00 +05:30

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;