@elliemae/pui-cli 8.62.1 → 9.0.0-alpha.2

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.
Files changed (108) hide show
  1. package/README.md +33 -0
  2. package/dist/cjs/commands/test.js +0 -1
  3. package/dist/cjs/commands/utils.js +4 -4
  4. package/dist/cjs/commands/vitest.js +0 -1
  5. package/dist/cjs/index.cjs +12 -0
  6. package/dist/cjs/index.js +6 -0
  7. package/dist/cjs/lint-config/eslint/common.cjs +1 -1
  8. package/dist/cjs/lint-config/eslint/flat/common.mjs +167 -0
  9. package/dist/cjs/lint-config/eslint/flat/index.mjs +20 -0
  10. package/dist/cjs/lint-config/eslint/flat/non-react-export.mjs +10 -0
  11. package/dist/cjs/lint-config/eslint/flat/non-react.mjs +6 -0
  12. package/dist/cjs/lint-config/eslint/flat/presets.mjs +78 -0
  13. package/dist/cjs/lint-config/eslint/flat/react-export.mjs +7 -0
  14. package/dist/cjs/lint-config/eslint/flat/react.mjs +60 -0
  15. package/dist/cjs/lint-config/eslint/flat/rules.mjs +185 -0
  16. package/dist/cjs/lint-config/eslint/typescript/non-react.cjs +1 -1
  17. package/dist/cjs/lint-config/eslint/typescript/react.cjs +1 -1
  18. package/dist/cjs/monorepo/utils.cjs +2 -2
  19. package/dist/cjs/monorepo/utils.js +1 -1
  20. package/dist/cjs/testing/jest.config.cjs +5 -9
  21. package/dist/cjs/testing/resolver.cjs +1 -1
  22. package/dist/cjs/testing/setup-react-env.js +1 -1
  23. package/dist/cjs/transpile/esbuild.js +1 -1
  24. package/dist/cjs/webpack/csp-plugin.js +2 -4
  25. package/dist/cjs/webpack/prop-types-shim.js +0 -1
  26. package/dist/cjs/webpack/webpack.lib.base.babel.js +0 -8
  27. package/dist/esm/commands/test.js +0 -1
  28. package/dist/esm/commands/utils.js +4 -4
  29. package/dist/esm/commands/vitest.js +0 -1
  30. package/dist/esm/index.cjs +12 -0
  31. package/dist/esm/index.js +12 -0
  32. package/dist/esm/lint-config/eslint/common.cjs +1 -1
  33. package/dist/esm/lint-config/eslint/flat/common.mjs +167 -0
  34. package/dist/esm/lint-config/eslint/flat/index.mjs +20 -0
  35. package/dist/esm/lint-config/eslint/flat/non-react-export.mjs +10 -0
  36. package/dist/esm/lint-config/eslint/flat/non-react.mjs +6 -0
  37. package/dist/esm/lint-config/eslint/flat/presets.mjs +78 -0
  38. package/dist/esm/lint-config/eslint/flat/react-export.mjs +7 -0
  39. package/dist/esm/lint-config/eslint/flat/react.mjs +60 -0
  40. package/dist/esm/lint-config/eslint/flat/rules.mjs +185 -0
  41. package/dist/esm/lint-config/eslint/typescript/non-react.cjs +1 -1
  42. package/dist/esm/lint-config/eslint/typescript/react.cjs +1 -1
  43. package/dist/esm/monorepo/utils.cjs +2 -2
  44. package/dist/esm/monorepo/utils.js +1 -1
  45. package/dist/esm/testing/jest.config.cjs +5 -9
  46. package/dist/esm/testing/resolver.cjs +1 -1
  47. package/dist/esm/testing/setup-react-env.js +1 -1
  48. package/dist/esm/transpile/esbuild.js +1 -1
  49. package/dist/esm/webpack/csp-plugin.js +2 -4
  50. package/dist/esm/webpack/prop-types-shim.js +0 -1
  51. package/dist/esm/webpack/webpack.lib.base.babel.js +0 -8
  52. package/dist/types/docusaurus.config.d.ts +3 -2
  53. package/dist/types/lib/commands/build.d.ts +1 -1
  54. package/dist/types/lib/commands/buildcdn.d.ts +1 -1
  55. package/dist/types/lib/commands/codemod.d.ts +1 -1
  56. package/dist/types/lib/commands/gendoc.d.ts +1 -1
  57. package/dist/types/lib/commands/lint.d.ts +1 -1
  58. package/dist/types/lib/commands/pack.d.ts +1 -1
  59. package/dist/types/lib/commands/start.d.ts +1 -1
  60. package/dist/types/lib/commands/storybook.d.ts +1 -1
  61. package/dist/types/lib/commands/test.d.ts +1 -1
  62. package/dist/types/lib/commands/tscheck.d.ts +1 -1
  63. package/dist/types/lib/commands/version.d.ts +1 -1
  64. package/dist/types/lib/commands/vitest.d.ts +1 -1
  65. package/dist/types/lib/index.d.cts +5 -1
  66. package/dist/types/lib/index.d.ts +4 -0
  67. package/dist/types/lib/lint-config/eslint/flat/common.d.mts +6 -0
  68. package/dist/types/lib/lint-config/eslint/flat/index.d.mts +6 -0
  69. package/dist/types/lib/lint-config/eslint/flat/non-react-export.d.mts +4 -0
  70. package/dist/types/lib/lint-config/eslint/flat/non-react.d.mts +3 -0
  71. package/dist/types/lib/lint-config/eslint/flat/presets.d.mts +63 -0
  72. package/dist/types/lib/lint-config/eslint/flat/react-export.d.mts +4 -0
  73. package/dist/types/lib/lint-config/eslint/flat/react.d.mts +4 -0
  74. package/dist/types/lib/lint-config/eslint/flat/rules.d.mts +358 -0
  75. package/dist/types/lib/server/appRoutes.d.ts +1 -1
  76. package/dist/types/lib/server/csp.d.ts +1 -1
  77. package/dist/types/lib/server/middlewares.d.ts +1 -1
  78. package/dist/types/lib/webpack/csp-plugin.d.ts +3 -3
  79. package/dist/types/lib/webpack/helpers.d.ts +1 -1
  80. package/dist/types/lib/webpack/interceptor-middleware.d.ts +2 -2
  81. package/dist/types/lib/webpack/webpack.base.babel.d.ts +1 -1
  82. package/dist/types/lib/webpack/webpack.lib.base.babel.d.ts +1 -1
  83. package/dist/types/lib/webpack/webpack.lib.prod.babel.d.ts +1 -1
  84. package/dist/types/lib/webpack/webpack.prod.babel.d.ts +1 -1
  85. package/dist/types/lib/webpack/webpack.storybook.d.ts +1 -1
  86. package/dist/types/tsconfig.tsbuildinfo +1 -1
  87. package/lib/lint-config/commitlint.config.cjs +1 -0
  88. package/lib/lint-config/eslint/common.cjs +164 -0
  89. package/lib/lint-config/eslint/flat/common.mjs +167 -0
  90. package/lib/lint-config/eslint/flat/index.mjs +20 -0
  91. package/lib/lint-config/eslint/flat/non-react-export.mjs +10 -0
  92. package/lib/lint-config/eslint/flat/non-react.mjs +6 -0
  93. package/lib/lint-config/eslint/flat/presets.mjs +78 -0
  94. package/lib/lint-config/eslint/flat/react-export.mjs +7 -0
  95. package/lib/lint-config/eslint/flat/react.mjs +60 -0
  96. package/lib/lint-config/eslint/flat/rules.mjs +185 -0
  97. package/lib/lint-config/eslint/non-react.cjs +14 -0
  98. package/lib/lint-config/eslint/react.cjs +26 -0
  99. package/lib/lint-config/eslint/typescript/common.cjs +49 -0
  100. package/lib/lint-config/eslint/typescript/non-react.cjs +12 -0
  101. package/lib/lint-config/eslint/typescript/react.cjs +19 -0
  102. package/lib/lint-config/lint-staged.config.js +15 -0
  103. package/lib/lint-config/prettier.config.cjs +8 -0
  104. package/lib/lint-config/stylelint.config.cjs +19 -0
  105. package/package.json +35 -28
  106. package/dist/cjs/testing/setup-env.js +0 -8
  107. package/dist/esm/testing/setup-env.js +0 -7
  108. package/dist/types/lib/testing/setup-env.d.ts +0 -1
@@ -0,0 +1,358 @@
1
+ /** Shared rule sets migrated from legacy eslintrc (common.cjs + typescript/*.cjs). */
2
+ export const baseRules: {
3
+ 'arrow-body-style': string[];
4
+ 'class-methods-use-this': string;
5
+ 'import-x/imports-first': string;
6
+ 'import-x/newline-after-import': string;
7
+ 'import-x/no-dynamic-require': string;
8
+ 'import-x/no-extraneous-dependencies': (string | {
9
+ devDependencies: string[];
10
+ })[];
11
+ 'import-x/no-named-as-default': string;
12
+ 'import-x/no-unresolved': (string | {
13
+ caseSensitive: boolean;
14
+ caseSensitiveStrict: boolean;
15
+ })[];
16
+ 'import-x/no-webpack-loader-syntax': string;
17
+ 'import-x/prefer-default-export': string;
18
+ 'import-x/default': string;
19
+ 'import-x/namespace': string;
20
+ 'import-x/extensions': (string | {
21
+ json: string;
22
+ js: string;
23
+ })[];
24
+ complexity: (string | {
25
+ max: number;
26
+ })[];
27
+ 'max-depth': (string | {
28
+ max: number;
29
+ })[];
30
+ 'max-lines-per-function': string;
31
+ 'max-nested-callbacks': (string | {
32
+ max: number;
33
+ })[];
34
+ 'max-params': (string | {
35
+ max: number;
36
+ })[];
37
+ 'max-statements': (string | {
38
+ max: number;
39
+ })[];
40
+ 'max-len': string;
41
+ 'newline-per-chained-call': string;
42
+ 'no-confusing-arrow': string;
43
+ 'no-console': string;
44
+ 'no-param-reassign': (string | {
45
+ props: boolean;
46
+ })[];
47
+ 'prefer-template': string;
48
+ 'require-yield': string;
49
+ 'eslint-comments/disable-enable-pair': string;
50
+ };
51
+ /** Relaxed type-checked rules for test files (shared by default and strict configs). */
52
+ export const typescriptTestRelaxedRules: {
53
+ '@typescript-eslint/no-unsafe-assignment': string;
54
+ '@typescript-eslint/no-unsafe-member-access': string;
55
+ '@typescript-eslint/no-unsafe-call': string;
56
+ '@typescript-eslint/no-unsafe-argument': string;
57
+ '@typescript-eslint/no-unsafe-return': string;
58
+ '@typescript-eslint/unbound-method': string;
59
+ };
60
+ export const jsRules: {
61
+ 'max-lines': (string | {
62
+ max: number;
63
+ skipComments: boolean;
64
+ })[];
65
+ 'no-unused-vars': string;
66
+ 'arrow-body-style': string[];
67
+ 'class-methods-use-this': string;
68
+ 'import-x/imports-first': string;
69
+ 'import-x/newline-after-import': string;
70
+ 'import-x/no-dynamic-require': string;
71
+ 'import-x/no-extraneous-dependencies': (string | {
72
+ devDependencies: string[];
73
+ })[];
74
+ 'import-x/no-named-as-default': string;
75
+ 'import-x/no-unresolved': (string | {
76
+ caseSensitive: boolean;
77
+ caseSensitiveStrict: boolean;
78
+ })[];
79
+ 'import-x/no-webpack-loader-syntax': string;
80
+ 'import-x/prefer-default-export': string;
81
+ 'import-x/default': string;
82
+ 'import-x/namespace': string;
83
+ 'import-x/extensions': (string | {
84
+ json: string;
85
+ js: string;
86
+ })[];
87
+ complexity: (string | {
88
+ max: number;
89
+ })[];
90
+ 'max-depth': (string | {
91
+ max: number;
92
+ })[];
93
+ 'max-lines-per-function': string;
94
+ 'max-nested-callbacks': (string | {
95
+ max: number;
96
+ })[];
97
+ 'max-params': (string | {
98
+ max: number;
99
+ })[];
100
+ 'max-statements': (string | {
101
+ max: number;
102
+ })[];
103
+ 'max-len': string;
104
+ 'newline-per-chained-call': string;
105
+ 'no-confusing-arrow': string;
106
+ 'no-console': string;
107
+ 'no-param-reassign': (string | {
108
+ props: boolean;
109
+ })[];
110
+ 'prefer-template': string;
111
+ 'require-yield': string;
112
+ 'eslint-comments/disable-enable-pair': string;
113
+ };
114
+ export const typescriptRules: {
115
+ 'max-lines': (string | {
116
+ max: number;
117
+ skipComments: boolean;
118
+ })[];
119
+ '@typescript-eslint/explicit-module-boundary-types': string;
120
+ '@typescript-eslint/explicit-function-return-type': string;
121
+ '@typescript-eslint/no-use-before-define': (string | {
122
+ functions: boolean;
123
+ classes: boolean;
124
+ variables: boolean;
125
+ typedefs: boolean;
126
+ })[];
127
+ '@typescript-eslint/unbound-method': (string | {
128
+ ignoreStatic: boolean;
129
+ })[];
130
+ '@typescript-eslint/no-floating-promises': (string | {
131
+ ignoreIIFE: boolean;
132
+ })[];
133
+ '@typescript-eslint/no-misused-promises': (string | {
134
+ checksVoidReturn: {
135
+ attributes: boolean;
136
+ };
137
+ })[];
138
+ '@typescript-eslint/no-unsafe-assignment': string;
139
+ '@typescript-eslint/no-unsafe-member-access': string;
140
+ '@typescript-eslint/no-unsafe-call': string;
141
+ '@typescript-eslint/no-unsafe-argument': string;
142
+ '@typescript-eslint/no-unsafe-return': string;
143
+ '@typescript-eslint/consistent-type-imports': (string | {
144
+ prefer: string;
145
+ fixStyle: string;
146
+ })[];
147
+ '@typescript-eslint/no-import-type-side-effects': string;
148
+ 'no-unused-vars': string;
149
+ '@typescript-eslint/no-unused-vars': (string | {
150
+ argsIgnorePattern: string;
151
+ ignoreRestSiblings: boolean;
152
+ })[];
153
+ 'arrow-body-style': string[];
154
+ 'class-methods-use-this': string;
155
+ 'import-x/imports-first': string;
156
+ 'import-x/newline-after-import': string;
157
+ 'import-x/no-dynamic-require': string;
158
+ 'import-x/no-extraneous-dependencies': (string | {
159
+ devDependencies: string[];
160
+ })[];
161
+ 'import-x/no-named-as-default': string;
162
+ 'import-x/no-unresolved': (string | {
163
+ caseSensitive: boolean;
164
+ caseSensitiveStrict: boolean;
165
+ })[];
166
+ 'import-x/no-webpack-loader-syntax': string;
167
+ 'import-x/prefer-default-export': string;
168
+ 'import-x/default': string;
169
+ 'import-x/namespace': string;
170
+ 'import-x/extensions': (string | {
171
+ json: string;
172
+ js: string;
173
+ })[];
174
+ complexity: (string | {
175
+ max: number;
176
+ })[];
177
+ 'max-depth': (string | {
178
+ max: number;
179
+ })[];
180
+ 'max-lines-per-function': string;
181
+ 'max-nested-callbacks': (string | {
182
+ max: number;
183
+ })[];
184
+ 'max-params': (string | {
185
+ max: number;
186
+ })[];
187
+ 'max-statements': (string | {
188
+ max: number;
189
+ })[];
190
+ 'max-len': string;
191
+ 'newline-per-chained-call': string;
192
+ 'no-confusing-arrow': string;
193
+ 'no-console': string;
194
+ 'no-param-reassign': (string | {
195
+ props: boolean;
196
+ })[];
197
+ 'prefer-template': string;
198
+ 'require-yield': string;
199
+ 'eslint-comments/disable-enable-pair': string;
200
+ };
201
+ /** Stricter TypeScript rules (error on unsafe any usage). */
202
+ export const typescriptStrictRules: {
203
+ '@typescript-eslint/no-unsafe-assignment': string;
204
+ '@typescript-eslint/no-unsafe-member-access': string;
205
+ '@typescript-eslint/no-unsafe-call': string;
206
+ '@typescript-eslint/no-unsafe-argument': string;
207
+ '@typescript-eslint/no-unsafe-return': string;
208
+ 'max-lines': (string | {
209
+ max: number;
210
+ skipComments: boolean;
211
+ })[];
212
+ '@typescript-eslint/explicit-module-boundary-types': string;
213
+ '@typescript-eslint/explicit-function-return-type': string;
214
+ '@typescript-eslint/no-use-before-define': (string | {
215
+ functions: boolean;
216
+ classes: boolean;
217
+ variables: boolean;
218
+ typedefs: boolean;
219
+ })[];
220
+ '@typescript-eslint/unbound-method': (string | {
221
+ ignoreStatic: boolean;
222
+ })[];
223
+ '@typescript-eslint/no-floating-promises': (string | {
224
+ ignoreIIFE: boolean;
225
+ })[];
226
+ '@typescript-eslint/no-misused-promises': (string | {
227
+ checksVoidReturn: {
228
+ attributes: boolean;
229
+ };
230
+ })[];
231
+ '@typescript-eslint/consistent-type-imports': (string | {
232
+ prefer: string;
233
+ fixStyle: string;
234
+ })[];
235
+ '@typescript-eslint/no-import-type-side-effects': string;
236
+ 'no-unused-vars': string;
237
+ '@typescript-eslint/no-unused-vars': (string | {
238
+ argsIgnorePattern: string;
239
+ ignoreRestSiblings: boolean;
240
+ })[];
241
+ 'arrow-body-style': string[];
242
+ 'class-methods-use-this': string;
243
+ 'import-x/imports-first': string;
244
+ 'import-x/newline-after-import': string;
245
+ 'import-x/no-dynamic-require': string;
246
+ 'import-x/no-extraneous-dependencies': (string | {
247
+ devDependencies: string[];
248
+ })[];
249
+ 'import-x/no-named-as-default': string;
250
+ 'import-x/no-unresolved': (string | {
251
+ caseSensitive: boolean;
252
+ caseSensitiveStrict: boolean;
253
+ })[];
254
+ 'import-x/no-webpack-loader-syntax': string;
255
+ 'import-x/prefer-default-export': string;
256
+ 'import-x/default': string;
257
+ 'import-x/namespace': string;
258
+ 'import-x/extensions': (string | {
259
+ json: string;
260
+ js: string;
261
+ })[];
262
+ complexity: (string | {
263
+ max: number;
264
+ })[];
265
+ 'max-depth': (string | {
266
+ max: number;
267
+ })[];
268
+ 'max-lines-per-function': string;
269
+ 'max-nested-callbacks': (string | {
270
+ max: number;
271
+ })[];
272
+ 'max-params': (string | {
273
+ max: number;
274
+ })[];
275
+ 'max-statements': (string | {
276
+ max: number;
277
+ })[];
278
+ 'max-len': string;
279
+ 'newline-per-chained-call': string;
280
+ 'no-confusing-arrow': string;
281
+ 'no-console': string;
282
+ 'no-param-reassign': (string | {
283
+ props: boolean;
284
+ })[];
285
+ 'prefer-template': string;
286
+ 'require-yield': string;
287
+ 'eslint-comments/disable-enable-pair': string;
288
+ };
289
+ export const reactRules: {
290
+ 'jsx-a11y/aria-props': string;
291
+ 'jsx-a11y/heading-has-content': string;
292
+ 'jsx-a11y/label-has-associated-control': (string | {
293
+ controlComponents: string[];
294
+ })[];
295
+ 'jsx-a11y/label-has-for': string;
296
+ 'jsx-a11y/mouse-events-have-key-events': string;
297
+ 'jsx-a11y/role-has-required-aria-props': string;
298
+ 'jsx-a11y/role-supports-aria-props': string;
299
+ 'react/destructuring-assignment': string;
300
+ 'react-hooks/rules-of-hooks': string;
301
+ 'react-hooks/exhaustive-deps': string;
302
+ 'react/jsx-closing-tag-location': string;
303
+ 'react/forbid-prop-types': string;
304
+ 'react/jsx-first-prop-new-line': string[];
305
+ 'react/jsx-no-target-blank': string;
306
+ 'react/jsx-props-no-spreading': string;
307
+ 'react/jsx-uses-vars': string;
308
+ 'react/require-default-props': string;
309
+ 'react/require-extension': string;
310
+ 'react/self-closing-comp': string;
311
+ 'react/sort-comp': string;
312
+ 'react/react-in-jsx-scope': string;
313
+ 'react/jsx-filename-extension': (string | {
314
+ extensions: string[];
315
+ })[];
316
+ 'react/function-component-definition': (string | {
317
+ namedComponents: string;
318
+ })[];
319
+ 'react/prop-types': string;
320
+ 'redux-saga/no-yield-in-race': string;
321
+ 'redux-saga/yield-effects': string;
322
+ };
323
+ /** Stricter React rules (exhaustive-deps as error). */
324
+ export const reactStrictRules: {
325
+ 'react-hooks/exhaustive-deps': string;
326
+ 'jsx-a11y/aria-props': string;
327
+ 'jsx-a11y/heading-has-content': string;
328
+ 'jsx-a11y/label-has-associated-control': (string | {
329
+ controlComponents: string[];
330
+ })[];
331
+ 'jsx-a11y/label-has-for': string;
332
+ 'jsx-a11y/mouse-events-have-key-events': string;
333
+ 'jsx-a11y/role-has-required-aria-props': string;
334
+ 'jsx-a11y/role-supports-aria-props': string;
335
+ 'react/destructuring-assignment': string;
336
+ 'react-hooks/rules-of-hooks': string;
337
+ 'react/jsx-closing-tag-location': string;
338
+ 'react/forbid-prop-types': string;
339
+ 'react/jsx-first-prop-new-line': string[];
340
+ 'react/jsx-no-target-blank': string;
341
+ 'react/jsx-props-no-spreading': string;
342
+ 'react/jsx-uses-vars': string;
343
+ 'react/require-default-props': string;
344
+ 'react/require-extension': string;
345
+ 'react/self-closing-comp': string;
346
+ 'react/sort-comp': string;
347
+ 'react/react-in-jsx-scope': string;
348
+ 'react/jsx-filename-extension': (string | {
349
+ extensions: string[];
350
+ })[];
351
+ 'react/function-component-definition': (string | {
352
+ namedComponents: string;
353
+ })[];
354
+ 'react/prop-types': string;
355
+ 'redux-saga/no-yield-in-race': string;
356
+ 'redux-saga/yield-effects': string;
357
+ };
358
+ export const ignorePatterns: string[];
@@ -1,2 +1,2 @@
1
- import { Application } from 'express';
1
+ import type { Application } from 'express';
2
2
  export declare const loadRoutes: (app: Application) => Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import fs from 'node:fs';
2
- import { Application, Response } from 'express';
2
+ import { type Application, type Response } from 'express';
3
3
  type CSPConfig = {
4
4
  buildPath: string;
5
5
  page?: string;
@@ -1,4 +1,4 @@
1
- import express, { Application } from 'express';
1
+ import express, { type Application } from 'express';
2
2
  export declare const setupDefaultMiddlewares: (app: Application) => void;
3
3
  export declare const setupAdditionalMiddlewars: (app: Application, options?: {
4
4
  buildPath?: string;
@@ -1,4 +1,4 @@
1
- import webpack from 'webpack';
1
+ import type webpack from 'webpack';
2
2
  import HtmlWebpackPlugin from 'html-webpack-plugin';
3
3
  type HTMLWebpackPluginData = {
4
4
  html: string;
@@ -12,10 +12,10 @@ declare class CspPlugin {
12
12
  #private;
13
13
  /**
14
14
  *
15
- * @param htmlWebpackPlugin
15
+ * @param _htmlWebpackPlugin
16
16
  * @param {object} options Additional options for this module.
17
17
  */
18
- constructor(htmlWebpackPlugin: typeof HtmlWebpackPlugin, options?: typeof defaultOptions);
18
+ constructor(_htmlWebpackPlugin: typeof HtmlWebpackPlugin, options?: typeof defaultOptions);
19
19
  /**
20
20
  * Processes HtmlWebpackPlugin's html data by adding the CSP
21
21
  * @param compilation
@@ -1,6 +1,6 @@
1
1
  import zlib from 'zlib';
2
2
  import CompressionPlugin from 'compression-webpack-plugin';
3
- import { ObjectPattern } from 'copy-webpack-plugin';
3
+ import type { ObjectPattern } from 'copy-webpack-plugin';
4
4
  export declare const LATEST_VERSION = "latest";
5
5
  export declare const excludeNodeModulesExcept: (modules: string[]) => (modulePath: string) => boolean;
6
6
  export declare const getLibraryName: () => string;
@@ -1,5 +1,5 @@
1
- import { Request, Response } from 'express';
2
- import { Middleware } from 'webpack-dev-server';
1
+ import type { Request, Response } from 'express';
2
+ import type { Middleware } from 'webpack-dev-server';
3
3
  type ReplacerFunction = (req: Request, res: Response) => {
4
4
  isInterceptable: () => boolean;
5
5
  intercept: (body: string, send: (body: string) => void) => void;
@@ -1,3 +1,3 @@
1
- import { Configuration } from 'webpack';
1
+ import { type Configuration } from 'webpack';
2
2
  import 'webpack-dev-server';
3
3
  export declare const baseConfig: (options: Configuration) => Configuration;
@@ -1,3 +1,3 @@
1
- import { Configuration } from 'webpack';
1
+ import { type Configuration } from 'webpack';
2
2
  import 'webpack-dev-server';
3
3
  export declare const baseConfig: (options: Configuration) => Configuration;
@@ -1,3 +1,3 @@
1
- import { Configuration } from 'webpack';
1
+ import type { Configuration } from 'webpack';
2
2
  declare const _default: Configuration[];
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Configuration } from 'webpack';
1
+ import type { Configuration } from 'webpack';
2
2
  declare const config: Configuration;
3
3
  export default config;
@@ -1,4 +1,4 @@
1
- import webpack, { Configuration } from 'webpack';
1
+ import webpack, { type Configuration } from 'webpack';
2
2
  export declare const webpackFinal: (config: Configuration, { configType }: {
3
3
  configType: string;
4
4
  }) => webpack.Configuration;