storyblok 4.22.0 → 4.22.1

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/README.md CHANGED
@@ -27,33 +27,42 @@
27
27
 
28
28
  ## Features
29
29
 
30
- - 🛡️ **Type Safety** - Generate TypeScript type definitions for your Storyblok components, ensuring type safety in your frontend applications
30
+ - 🛡️ **Type Safety** - Generate TypeScript type definitions for your Storyblok components, ensuring
31
+ type safety in your frontend applications
31
32
  - 🔐 **Authentication** - Secure login system with support for different regions and CI environments
32
- - 🧩 **Component Management** - Pull and push component schemas, groups, presets, and internal tags between spaces
33
- - 🔄 **Migration System** - Generate and run migrations to transform or update field values across your Storyblok content
33
+ - 🧩 **Component Management** - Pull and push component schemas, groups, presets, and internal tags
34
+ between spaces
35
+ - 🔄 **Migration System** - Generate and run migrations to transform or update field values across
36
+ your Storyblok content
34
37
  - 🌐 **Language Management** - Pull and manage languages for your Storyblok space
35
38
  - 📁 **File Organization** - Organized file structure with the `.storyblok` directory as default
36
39
  - 🛠️ **Customizable Paths** - Flexible path configuration for all generated files
37
40
  - 📝 **Naming Conventions** - Consistent file naming with customizable suffixes and prefixes
38
- - 📂 **Separate Files Support** - Option to work with individual component files or consolidated files
41
+ - 📂 **Separate Files Support** - Option to work with individual component files or consolidated
42
+ files
39
43
  - 👀 **Dry Run Mode** - Preview migrations changes before applying them to your Storyblok space
40
- - 🔍 **Filtering Capabilities** - Filter components and stories using glob patterns and Storyblok query syntax
41
- - 📊 **Verbose Logging** - Improved error handling and detailed logging options for debugging and monitoring
44
+ - 🔍 **Filtering Capabilities** - Filter components and stories using glob patterns and Storyblok
45
+ query syntax
46
+ - 📊 **Verbose Logging** - Improved error handling and detailed logging options for debugging and
47
+ monitoring
42
48
 
43
49
  ## Pre-requisites
44
50
 
45
51
  - [Node.js >= 18.0.0](https://nodejs.org/en/download/)
46
- - Storyblok account (sign up [here](https://app.storyblok.com/#!/signup?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-cli))
47
- - Personal access token from Storyblok (get it [here](https://app.storyblok.com/#/me/account?tab=token))
52
+ - Storyblok account (sign up
53
+ [here](https://app.storyblok.com/#!/signup?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-cli))
54
+ - Personal access token from Storyblok (get it
55
+ [here](https://app.storyblok.com/#/me/account?tab=token))
48
56
 
49
57
  ## Documentation
50
58
 
51
- > [!WARNING]
52
- > Official documentation for this package v4 is still in development. In the meantime, please refer to the internal documentation for the [v4 beta](src/README.md).
59
+ > [!WARNING] Official documentation for this package v4 is still in development. In the meantime,
60
+ > please refer to the internal documentation for the [v4 beta](src/README.md).
53
61
 
54
62
  ## Setup
55
63
 
56
- This package relies on [pnpm](https://pnpm.io/) to manage dependencies. For instructions on how to install pnpm, please visit [pnpm.io](https://pnpm.io/installation).
64
+ This package relies on [pnpm](https://pnpm.io/) to manage dependencies. For instructions on how to
65
+ install pnpm, please visit [pnpm.io](https://pnpm.io/installation).
57
66
 
58
67
  ```bash
59
68
  pnpm install
@@ -73,7 +82,8 @@ To run the tests you can use the following command:
73
82
  pnpm run test
74
83
  ```
75
84
 
76
- If you prefer a more visual experience while writing tests you can use this command powered by [vitest/ui](https://vitest.dev/guide/ui):
85
+ If you prefer a more visual experience while writing tests you can use this command powered by
86
+ [vitest/ui](https://vitest.dev/guide/ui):
77
87
 
78
88
  ```bash
79
89
  pnpm run test:ui
@@ -82,22 +92,25 @@ pnpm run test:ui
82
92
  You can also check the coverage with:
83
93
 
84
94
  ```bash
85
- pnpm run coverage
95
+ pnpm run test:coverage
86
96
  ```
87
97
 
88
98
  ### Debugging
89
99
 
90
- To debug the CLI you can use the `launch.json` configuration in the `.vscode` folder. You can run any command with the debugger attached.
100
+ To debug the CLI you can use the `launch.json` configuration in the `.vscode` folder. You can run
101
+ any command with the debugger attached.
91
102
 
92
103
  ![A screenshot of the Visual Studio Code debugger](/.github/assets/debug-vscode.png)
93
104
 
94
- Then you can set breakpoints directly to the typescript files and the debugger will handle the rest with sourcempaps.
105
+ Then you can set breakpoints directly to the typescript files and the debugger will handle the rest
106
+ with sourcempaps.
95
107
 
96
108
  ![A screenshot of a breakpoint set in the Visual Studio Code debugger](/.github/assets/breakpoints.png)
97
109
 
98
110
  ## Community
99
111
 
100
- For help, discussion about best practices, or any other conversation that would benefit from being searchable:
112
+ For help, discussion about best practices, or any other conversation that would benefit from being
113
+ searchable:
101
114
 
102
115
  - [Discuss Storyblok on GitHub Discussions](https://github.com/storyblok/storyblok/discussions)
103
116
 
@@ -107,22 +120,30 @@ For community support, chatting with other users, please visit:
107
120
 
108
121
  ## Support
109
122
 
110
- For bugs or feature requests, please [submit an issue](https://github.com/storyblok/storyblok-cli/issues/new/choose).
123
+ For bugs or feature requests, please
124
+ [submit an issue](https://github.com/storyblok/storyblok-cli/issues/new/choose).
111
125
 
112
- > [!IMPORTANT]
113
- > Please search existing issues before submitting a new one. Issues without a minimal reproducible example will be closed. [Why reproductions are Required](https://antfu.me/posts/why-reproductions-are-required).
126
+ > [!IMPORTANT] Please search existing issues before submitting a new one. Issues without a minimal
127
+ > reproducible example will be closed.
128
+ > [Why reproductions are Required](https://antfu.me/posts/why-reproductions-are-required).
114
129
 
115
130
  ### I can't share my company project code
116
131
 
117
- We understand that you might not be able to share your company's project code. Please provide a minimal reproducible example that demonstrates the issue by using tools like [Stackblitz](https://stackblitz.com) or a link to a GitHub repo. Please make sure you include a README file with the instructions to build and run the project, important not to include any access token, password or personal information of any kind.
132
+ We understand that you might not be able to share your company's project code. Please provide a
133
+ minimal reproducible example that demonstrates the issue by using tools like
134
+ [Stackblitz](https://stackblitz.com) or a link to a GitHub repo. Please make sure you include a
135
+ README file with the instructions to build and run the project, important not to include any access
136
+ token, password or personal information of any kind.
118
137
 
119
138
  ### I only have a question
120
139
 
121
- If you have a question, please ask in the [Discuss Storyblok on Discord](https://storyblok.com/join-discord) channel.
140
+ If you have a question, please ask in the
141
+ [Discuss Storyblok on Discord](https://storyblok.com/join-discord) channel.
122
142
 
123
143
  ## Contributing
124
144
 
125
- If you're interested in contributing to Storyblok CLI, please read our [contributing docs](../../CONTRIBUTING.md) before submitting a pull request.
145
+ If you're interested in contributing to Storyblok CLI, please read our
146
+ [contributing docs](../../CONTRIBUTING.md) before submitting a pull request.
126
147
 
127
148
  ## License
128
149
 
@@ -1,347 +1,217 @@
1
+ import { a as PushComponentsOptions, i as PullDatasourcesOptions, n as MigrationsGenerateOptions, o as PullComponentsOptions, r as PushDatasourcesOptions, s as CommandOptions, t as MigrationsRunOptions } from "../constants-FGOZXcwP.mjs";
2
+ import { Command, Option } from "commander";
3
+ //#region src/constants.d.ts
1
4
  declare const regionCodes: readonly ["eu", "us", "cn", "ca", "ap"];
2
- type RegionCode = typeof regionCodes[number];
3
-
4
- /**
5
- * Interface representing the default options for a CLI command.
6
- */
7
- interface CommandOptions {
8
- /**
9
- * Indicates whether verbose output is enabled.
10
- */
11
- verbose: boolean;
12
- }
13
-
14
- /**
15
- * Interface representing the options for the `components pull` command.
16
- */
17
- interface PullComponentsOptions extends CommandOptions {
18
- /**
19
- * The filename to save the file as.
20
- * Defaults to `components`. The file will be saved as `<filename>.<space>.json`.
21
- * @default `components
22
- */
23
- filename?: string;
24
- /**
25
- * The suffix to add to the filename.
26
- * Defaults to the space ID.
27
- * @default space
28
- */
29
- suffix?: string;
30
- /**
31
- * Indicates whether to save each component to a separate file.
32
- * @default false
33
- */
34
- separateFiles?: boolean;
35
- /**
36
- * Glob pattern to select components by name. Matching components and their dependencies
37
- * (assigned groups with ancestors, tags, presets, and schema-whitelisted groups/tags) are pulled.
38
- */
39
- filter?: string;
40
- /**
41
- * Component group name(s) or `Parent/Child` path(s) to select. Includes descendant groups.
42
- * Repeatable; multiple values match any of the given groups.
43
- */
44
- group?: string[];
45
- /**
46
- * Component tag name(s) to select. Repeatable and comma-separated; multiple values match any.
47
- */
48
- tag?: string[];
49
- }
50
-
51
- interface PushComponentsOptions extends CommandOptions {
52
- /**
53
- * The glob pattern filter to apply to components before pushing.
54
- * Matching components and all their dependencies (groups, tags, other components)
55
- * will be collected and pushed together.
56
- * @default `.*`
57
- */
58
- filter?: string;
59
- /**
60
- * Indicates whether to save each component to a separate file.
61
- * @default false
62
- */
63
- separateFiles?: boolean;
64
- /**
65
- * The source space id.
66
- */
67
- from?: string;
68
- /**
69
- * Suffix to add to the component name.
70
- */
71
- suffix?: string;
72
- /**
73
- * Component group name(s) or `Parent/Child` path(s) to select from local files. Includes descendants.
74
- * Repeatable; multiple values match any of the given groups.
75
- */
76
- group?: string[];
77
- /**
78
- * Component tag name(s) to select from local files. Repeatable and comma-separated; multiple values match any.
79
- */
80
- tag?: string[];
81
- }
82
-
83
- interface MigrationsGenerateOptions extends CommandOptions {
84
- suffix?: string;
85
- }
86
-
87
- interface MigrationsRunOptions extends CommandOptions {
88
- dryRun?: boolean;
89
- filter?: string;
90
- /**
91
- * The source space id to read migration files from.
92
- */
93
- from?: string;
94
- query?: string;
95
- startsWith?: string;
96
- publish?: 'all' | 'published' | 'published-with-changes';
97
- }
98
-
5
+ type RegionCode = (typeof regionCodes)[number];
6
+ //#endregion
7
+ //#region src/commands/datasources/delete/constants.d.ts
99
8
  /**
100
9
  * Options for the datasources delete command.
101
10
  */
102
11
  interface DeleteDatasourceOptions {
103
- /**
104
- * The datasource id to delete by, if provided. If not set, the command will delete by name.
105
- */
106
- id?: string;
107
- /**
108
- * If true, skip confirmation prompt (for CI or automation)
109
- */
110
- force?: boolean;
111
- }
112
-
113
- /**
114
- * Interface representing the options for the `datasources pull` command.
115
- */
116
- interface PullDatasourcesOptions extends CommandOptions {
117
- /**
118
- * The filename to save the file as.
119
- * Defaults to `DEFAULT_DATASOURCES_FILENAME`. The file will be saved as `<filename>.<space>.json`.
120
- * @default DEFAULT_DATASOURCES_FILENAME
121
- */
122
- filename?: string;
123
- /**
124
- * The suffix to add to the filename.
125
- * Defaults to the space ID.
126
- * @default space
127
- */
128
- suffix?: string;
129
- /**
130
- * Indicates whether to save each datasource to a separate file.
131
- * @default false
132
- */
133
- separateFiles?: boolean;
134
- }
135
-
136
- interface PushDatasourcesOptions extends CommandOptions {
137
- /**
138
- * The glob pattern filter to apply to datasources before pushing.
139
- * @default `.*`
140
- */
141
- filter?: string;
142
- /**
143
- * Indicates whether to save each component to a separate file.
144
- * @default false
145
- */
146
- separateFiles?: boolean;
147
- /**
148
- * The source space id.
149
- */
150
- from?: string;
151
- /**
152
- * Suffix to add to the component name.
153
- */
154
- suffix?: string;
155
- }
156
-
12
+ /**
13
+ * The datasource id to delete by, if provided. If not set, the command will delete by name.
14
+ */
15
+ id?: string;
16
+ /**
17
+ * If true, skip confirmation prompt (for CI or automation)
18
+ */
19
+ force?: boolean;
20
+ }
21
+ //#endregion
22
+ //#region src/commands/migrations/rollback/types.d.ts
157
23
  type MigrationsRollbackOptions = CommandOptions;
158
-
24
+ //#endregion
25
+ //#region src/commands/types/generate/constants.d.ts
159
26
  interface GenerateTypesOptions {
160
- separateFiles?: boolean;
161
- strict?: boolean;
162
- typePrefix?: string;
163
- typeSuffix?: string;
164
- filename?: string;
165
- path?: string;
166
- suffix?: string;
167
- customFieldsParser?: string;
168
- compilerOptions?: string;
169
- }
170
-
27
+ separateFiles?: boolean;
28
+ strict?: boolean;
29
+ typePrefix?: string;
30
+ typeSuffix?: string;
31
+ filename?: string;
32
+ path?: string;
33
+ suffix?: string;
34
+ customFieldsParser?: string;
35
+ compilerOptions?: string;
36
+ }
37
+ //#endregion
38
+ //#region src/commands/languages/constants.d.ts
171
39
  /**
172
40
  * Interface representing the options for the `pull-languages` command.
173
41
  */
174
42
  interface PullLanguagesOptions extends CommandOptions {
175
- /**
176
- * The path to save the languages file to.
177
- * Defaults to `.storyblok/languages`.
178
- * @default `.storyblok/languages`
179
- */
180
- path?: string;
181
- /**
182
- * The space ID.
183
- * @required true
184
- */
185
- space: string;
186
- /**
187
- * The filename to save the file as.
188
- * Defaults to `DEFAULT_LANGUAGES_FILENAME`. The file will be saved as `<filename>.<space>.json`.
189
- * @default DEFAULT_LANGUAGES_FILENAME
190
- */
191
- filename?: string;
192
- /**
193
- * The suffix to add to the filename.
194
- * Defaults to the space ID.
195
- * @default space
196
- */
197
- suffix?: string;
198
- }
199
-
43
+ /**
44
+ * The path to save the languages file to.
45
+ * Defaults to `.storyblok/languages`.
46
+ * @default `.storyblok/languages`
47
+ */
48
+ path?: string;
49
+ /**
50
+ * The space ID.
51
+ * @required true
52
+ */
53
+ space: string;
54
+ /**
55
+ * The filename to save the file as.
56
+ * Defaults to `DEFAULT_LANGUAGES_FILENAME`. The file will be saved as `<filename>.<space>.json`.
57
+ * @default DEFAULT_LANGUAGES_FILENAME
58
+ */
59
+ filename?: string;
60
+ /**
61
+ * The suffix to add to the filename.
62
+ * Defaults to the space ID.
63
+ * @default space
64
+ */
65
+ suffix?: string;
66
+ }
67
+ //#endregion
68
+ //#region src/commands/assets/pull/types.d.ts
200
69
  interface PullAssetsOptions extends CommandOptions {
201
- dryRun?: boolean;
202
- query?: string;
203
- assetToken?: string;
70
+ dryRun?: boolean;
71
+ query?: string;
72
+ assetToken?: string;
204
73
  }
205
-
74
+ //#endregion
75
+ //#region src/commands/assets/push/types.d.ts
206
76
  interface PushAssetsOptions extends CommandOptions {
207
- from?: string;
208
- data?: string;
209
- shortFilename?: string;
210
- folder?: string;
211
- cleanup?: boolean;
212
- updateStories?: boolean;
213
- assetToken?: string;
214
- dryRun?: boolean;
215
- }
216
-
77
+ from?: string;
78
+ data?: string;
79
+ shortFilename?: string;
80
+ folder?: string;
81
+ cleanup?: boolean;
82
+ updateStories?: boolean;
83
+ assetToken?: string;
84
+ dryRun?: boolean;
85
+ }
86
+ //#endregion
87
+ //#region src/commands/stories/pull/types.d.ts
217
88
  interface PullStoriesOptions extends CommandOptions {
218
- dryRun?: boolean;
219
- query?: string;
220
- startsWith?: string;
89
+ dryRun?: boolean;
90
+ query?: string;
91
+ startsWith?: string;
221
92
  }
222
-
93
+ //#endregion
94
+ //#region src/commands/stories/push/types.d.ts
223
95
  interface PushStoriesOptions extends CommandOptions {
224
- from?: string;
225
- dryRun?: boolean;
226
- publish?: string;
227
- cleanup?: boolean;
96
+ from?: string;
97
+ dryRun?: boolean;
98
+ publish?: string;
99
+ cleanup?: boolean;
228
100
  }
229
-
101
+ //#endregion
102
+ //#region src/commands/logs/prune/types.d.ts
230
103
  interface PruneLogsOptions extends CommandOptions {
231
- keep: number;
104
+ keep: number;
232
105
  }
233
-
106
+ //#endregion
107
+ //#region src/commands/reports/prune/types.d.ts
234
108
  interface PruneReportsOptions extends CommandOptions {
235
- keep: number;
109
+ keep: number;
236
110
  }
237
-
111
+ //#endregion
112
+ //#region src/utils/types.d.ts
238
113
  /**
239
114
  * Makes all properties in T optional recursively
240
115
  */
241
- type DeepPartial<T> = T extends object ? {
242
- [P in keyof T]?: DeepPartial<T[P]>;
243
- } : T;
244
-
116
+ type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T;
117
+ //#endregion
118
+ //#region src/lib/config/types.d.ts
245
119
  interface ApiConfig {
246
- maxRetries: number;
247
- rateLimit: number;
248
- /** @deprecated Use `rateLimit` instead. @todo(next-major): Remove this field. */
249
- maxConcurrency?: number;
120
+ maxRetries: number;
121
+ rateLimit: number;
122
+ /** @deprecated Use `rateLimit` instead. @todo(next-major): Remove this field. */
123
+ maxConcurrency?: number;
250
124
  }
251
125
  interface LogConsoleConfig {
252
- enabled: boolean;
253
- level: string;
126
+ enabled: boolean;
127
+ level: string;
254
128
  }
255
129
  interface LogFileConfig {
256
- enabled: boolean;
257
- level: string;
258
- maxFiles: number;
130
+ enabled: boolean;
131
+ level: string;
132
+ maxFiles: number;
259
133
  }
260
134
  interface LogConfig {
261
- console: LogConsoleConfig;
262
- file: LogFileConfig;
135
+ console: LogConsoleConfig;
136
+ file: LogFileConfig;
263
137
  }
264
138
  interface ReportConfig {
265
- enabled: boolean;
266
- maxFiles: number;
139
+ enabled: boolean;
140
+ maxFiles: number;
267
141
  }
268
142
  interface UiConfig {
269
- enabled: boolean;
143
+ enabled: boolean;
270
144
  }
271
145
  interface GlobalConfig {
272
- region?: RegionCode;
273
- space?: number | string;
274
- path?: string;
275
- api: ApiConfig;
276
- log: LogConfig;
277
- report: ReportConfig;
278
- ui: UiConfig;
279
- verbose: boolean;
146
+ region?: RegionCode;
147
+ space?: number | string;
148
+ path?: string;
149
+ api: ApiConfig;
150
+ log: LogConfig;
151
+ report: ReportConfig;
152
+ ui: UiConfig;
153
+ verbose: boolean;
280
154
  }
281
155
  type StripCommandOption<T> = T extends CommandOptions ? Omit<T, keyof CommandOptions> : T;
282
156
  type CommandConfig<T> = Partial<StripCommandOption<T>>;
283
157
  interface SharedConfigOptions {
284
- space?: number | string;
285
- path?: string;
158
+ space?: number | string;
159
+ path?: string;
286
160
  }
287
161
  interface CommandOptionsMap {
288
- components: {
289
- pull: PullComponentsOptions;
290
- push: PushComponentsOptions;
291
- };
292
- datasources: {
293
- pull: PullDatasourcesOptions;
294
- push: PushDatasourcesOptions;
295
- delete: DeleteDatasourceOptions;
296
- };
297
- migrations: {
298
- generate: MigrationsGenerateOptions;
299
- run: MigrationsRunOptions;
300
- rollback: MigrationsRollbackOptions;
301
- };
302
- types: {
303
- generate: GenerateTypesOptions;
304
- };
305
- languages: {
306
- pull: PullLanguagesOptions;
307
- };
308
- assets: {
309
- pull: PullAssetsOptions;
310
- push: PushAssetsOptions;
311
- };
312
- stories: {
313
- pull: PullStoriesOptions;
314
- push: PushStoriesOptions;
315
- };
316
- logs: {
317
- list: Record<string, never>;
318
- prune: PruneLogsOptions;
319
- };
320
- reports: {
321
- list: Record<string, never>;
322
- prune: PruneReportsOptions;
323
- };
162
+ components: {
163
+ pull: PullComponentsOptions;
164
+ push: PushComponentsOptions;
165
+ };
166
+ datasources: {
167
+ pull: PullDatasourcesOptions;
168
+ push: PushDatasourcesOptions;
169
+ delete: DeleteDatasourceOptions;
170
+ };
171
+ migrations: {
172
+ generate: MigrationsGenerateOptions;
173
+ run: MigrationsRunOptions;
174
+ rollback: MigrationsRollbackOptions;
175
+ };
176
+ types: {
177
+ generate: GenerateTypesOptions;
178
+ };
179
+ languages: {
180
+ pull: PullLanguagesOptions;
181
+ };
182
+ assets: {
183
+ pull: PullAssetsOptions;
184
+ push: PushAssetsOptions;
185
+ };
186
+ stories: {
187
+ pull: PullStoriesOptions;
188
+ push: PushStoriesOptions;
189
+ };
190
+ logs: {
191
+ list: Record<string, never>;
192
+ prune: PruneLogsOptions;
193
+ };
194
+ reports: {
195
+ list: Record<string, never>;
196
+ prune: PruneReportsOptions;
197
+ };
324
198
  }
325
199
  type SubcommandConfig<T> = SharedConfigOptions & CommandConfig<T>;
326
- type ModuleConfig<Subs extends Record<string, any>> = SharedConfigOptions & {
327
- [K in keyof Subs]?: SubcommandConfig<Subs[K]>;
328
- };
329
- type ModulesConfig = {
330
- [K in keyof CommandOptionsMap]?: ModuleConfig<CommandOptionsMap[K]>;
331
- };
332
- type ComponentsModuleConfig = ModulesConfig['components'];
333
- type DatasourcesModuleConfig = ModulesConfig['datasources'];
334
- type MigrationsModuleConfig = ModulesConfig['migrations'];
335
- type TypesModuleConfig = ModulesConfig['types'];
336
- type LanguagesModuleConfig = ModulesConfig['languages'];
337
- type AssetsModuleConfig = ModulesConfig['assets'];
338
- type StoriesModuleConfig = ModulesConfig['stories'];
339
- type LogsModuleConfig = ModulesConfig['logs'];
340
- type ReportsModuleConfig = ModulesConfig['reports'];
200
+ type ModuleConfig<Subs extends Record<string, any>> = SharedConfigOptions & { [K in keyof Subs]?: SubcommandConfig<Subs[K]>; };
201
+ type ModulesConfig = { [K in keyof CommandOptionsMap]?: ModuleConfig<CommandOptionsMap[K]>; };
202
+ type ComponentsModuleConfig = ModulesConfig["components"];
203
+ type DatasourcesModuleConfig = ModulesConfig["datasources"];
204
+ type MigrationsModuleConfig = ModulesConfig["migrations"];
205
+ type TypesModuleConfig = ModulesConfig["types"];
206
+ type LanguagesModuleConfig = ModulesConfig["languages"];
207
+ type AssetsModuleConfig = ModulesConfig["assets"];
208
+ type StoriesModuleConfig = ModulesConfig["stories"];
209
+ type LogsModuleConfig = ModulesConfig["logs"];
210
+ type ReportsModuleConfig = ModulesConfig["reports"];
341
211
  interface StoryblokConfig extends DeepPartial<GlobalConfig> {
342
- modules?: ModulesConfig;
212
+ modules?: ModulesConfig;
343
213
  }
344
214
  declare function defineConfig<T extends StoryblokConfig>(config: T): T;
345
-
346
- export { defineConfig };
347
- export type { AssetsModuleConfig, ComponentsModuleConfig, DatasourcesModuleConfig, LanguagesModuleConfig, LogsModuleConfig, MigrationsModuleConfig, ModulesConfig, ReportsModuleConfig, StoriesModuleConfig, StoryblokConfig, TypesModuleConfig };
215
+ //#endregion
216
+ export { type AssetsModuleConfig, type ComponentsModuleConfig, type DatasourcesModuleConfig, type LanguagesModuleConfig, type LogsModuleConfig, type MigrationsModuleConfig, type ModulesConfig, type ReportsModuleConfig, type StoriesModuleConfig, type StoryblokConfig, type TypesModuleConfig, defineConfig };
217
+ //# sourceMappingURL=index.d.mts.map
@@ -1,6 +1,8 @@
1
+ //#region src/lib/config/types.ts
1
2
  function defineConfig(config) {
2
- return config;
3
+ return config;
3
4
  }
4
-
5
+ //#endregion
5
6
  export { defineConfig };
6
- //# sourceMappingURL=index.mjs.map
7
+
8
+ //# sourceMappingURL=index.mjs.map