Skip to content

Commit

Permalink
rename the import and function
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jan 17, 2025
1 parent 013fbe7 commit cc0361d
Show file tree
Hide file tree
Showing 37 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion code/frameworks/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/ember/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.js",
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/ember/src/csf-factory/defineMainConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/experimental-nextjs-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"import": "./dist/vite-plugin/index.mjs",
"require": "./dist/vite-plugin/index.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/html-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/html-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/src/csf-factory/defineMainConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/preact-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/preact-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/react-native-web-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"import": "./dist/vite-plugin.mjs",
"require": "./dist/vite-plugin.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/react-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/react-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/server-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/svelte-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/svelte-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"require": "./dist/vite-plugin.js",
"import": "./dist/vite-plugin.mjs"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/vue3-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"require": "./dist/vite-plugin.js",
"import": "./dist/vite-plugin.mjs"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/vue3-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/web-components-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}
2 changes: 1 addition & 1 deletion code/frameworks/web-components-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"types": "./dist/preset.d.ts",
"require": "./dist/preset.js"
},
"./main": {
"./node": {
"types": "./dist/csf-factory/defineMainConfig.d.ts",
"node": "./dist/csf-factory/defineMainConfig.js",
"import": "./dist/csf-factory/defineMainConfig.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig as commonDefineConfig } from 'storybook/internal/common';

import type { StorybookConfig } from '../types';

export function defineConfig(config: StorybookConfig) {
export function defineMain(config: StorybookConfig) {
return commonDefineConfig<StorybookConfig>(config);
}

0 comments on commit cc0361d

Please sign in to comment.