mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-04-16 22:24:49 +00:00
25 lines
585 B
TypeScript
25 lines
585 B
TypeScript
import { fileURLToPath } from 'node:url';
|
|
import { dirname } from 'node:path';
|
|
import type { StorybookConfig } from '@storybook/angular';
|
|
|
|
const config: StorybookConfig = {
|
|
framework: {
|
|
name: getAbsolutePath('@storybook/angular'),
|
|
options: {}
|
|
},
|
|
staticDirs: [],
|
|
stories: ['lib/**/*.stories.ts'],
|
|
features: {
|
|
backgrounds: false
|
|
},
|
|
core: {
|
|
disableTelemetry: true
|
|
}
|
|
};
|
|
|
|
export default config;
|
|
|
|
function getAbsolutePath(value: string): any {
|
|
return dirname(fileURLToPath(import.meta.resolve(`${value}/package.json`)));
|
|
}
|