@jakubmazanec/carson-templates 2.5.0 → 2.6.0-unstable.081bdf1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@jakubmazanec/carson-templates",
3
- "version": "2.5.0",
3
+ "version": "2.6.0-unstable.081bdf1",
4
4
  "description": "Collection of Carson templates.",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git@github.com:jakubmazanec/js-tools.git",
7
+ "url": "git@github.com:jakubmazanec/tools.git",
8
8
  "directory": "packages/carson-templates"
9
9
  },
10
10
  "license": "MIT",
@@ -11,22 +11,26 @@ strategy: overwrite
11
11
  */
12
12
 
13
13
  import {type StorybookConfig} from '@storybook/react-vite';
14
+ import _ from 'lodash';
14
15
 
15
- const config: StorybookConfig = {
16
- stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
17
- addons: [
18
- '@chromatic-com/storybook',
19
- '@storybook/addon-essentials',
20
- '@storybook/addon-interactions',
21
- '@storybook/addon-links',
22
- ],
23
- framework: {
24
- name: '@storybook/react-vite',
25
- options: {},
26
- },
27
- docs: {
28
- autodocs: 'tag',
29
- },
30
- };
16
+ const config: StorybookConfig = _.merge(
17
+ {
18
+ stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
19
+ addons: [
20
+ '@chromatic-com/storybook',
21
+ '@storybook/addon-essentials',
22
+ '@storybook/addon-interactions',
23
+ '@storybook/addon-links',
24
+ ],
25
+ framework: {
26
+ name: '@storybook/react-vite',
27
+ options: {},
28
+ },
29
+ docs: {
30
+ autodocs: 'tag',
31
+ },
32
+ } satisfies StorybookConfig,
33
+ <%- JSON.stringify(project.config.overrides?.storybookConfig ?? {}, null, 2) %>,
34
+ );
31
35
 
32
36
  export default config;
@@ -64,7 +64,7 @@ let packageJson = lodash.merge(
64
64
  },
65
65
  files,
66
66
  scripts: {
67
- build: `del-cli ${BUILD_DIRECTORY} tsconfig.tsbuildinfo && ${BUILD_TO_ESM_COMMAND} && tsc && storybook build`,
67
+ build: `del-cli ${BUILD_DIRECTORY} tsconfig.tsbuildinfo && ${BUILD_TO_ESM_COMMAND} --loader:.woff2=copy && tsc && storybook build`,
68
68
  clean: `del-cli coverage ${BUILD_DIRECTORY} *.tsbuildinfo`,
69
69
  develop: `concurrently "${BUILD_TO_ESM_COMMAND} --watch" "tsc --watch" "storybook dev -p 6006 --no-open"`,
70
70
  document: 'del-cli docs && typedoc --options typedoc.config.cjs',