@elliemae/pui-cli 9.0.0-next.3 → 9.0.0-next.31

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 (122) hide show
  1. package/dist/cjs/commands/lint.js +26 -7
  2. package/dist/cjs/commands/start.js +1 -1
  3. package/dist/cjs/commands/storybook.js +2 -2
  4. package/dist/cjs/commands/test.js +51 -22
  5. package/dist/cjs/commands/utils.js +30 -1
  6. package/dist/cjs/index.js +3 -1
  7. package/dist/cjs/lint-config/eslint/common.cjs +3 -2
  8. package/dist/cjs/lint-config/eslint/typescript/common.cjs +3 -3
  9. package/dist/cjs/lint-config/stylelint.config.cjs +14 -13
  10. package/dist/cjs/monorepo/delete-merged-tags.js +1 -1
  11. package/dist/cjs/monorepo/set-registry-version.js +1 -1
  12. package/dist/cjs/monorepo/set-workspace-version.js +1 -1
  13. package/dist/cjs/server/csp.js +2 -1
  14. package/dist/cjs/server/index.js +5 -0
  15. package/dist/cjs/server/utils.js +11 -4
  16. package/dist/cjs/server/wsServer.js +129 -0
  17. package/dist/cjs/testing/ExtendedJSDomEnv.cjs +27 -0
  18. package/dist/cjs/testing/extended/axe-core/getMessageAndPass.js +37 -0
  19. package/dist/cjs/testing/extended/axe-core/index.js +24 -0
  20. package/dist/cjs/testing/extended/axe-core/reporter.js +51 -0
  21. package/dist/cjs/testing/extended/axe-core/shouldIgnoreNodeViolation.js +31 -0
  22. package/dist/cjs/testing/extended/axe-core/toHaveNoViolations.js +43 -0
  23. package/dist/cjs/testing/jest.config.cjs +5 -2
  24. package/dist/cjs/testing/jest.polyfills.cjs +28 -0
  25. package/dist/cjs/testing/setup-test-env.js +0 -2
  26. package/dist/cjs/testing/setup-tests.js +25 -4
  27. package/dist/cjs/testing/vitest.config.js +8 -8
  28. package/dist/cjs/transpile/esbuild.js +1 -1
  29. package/dist/cjs/update-notifier.js +1 -1
  30. package/dist/cjs/utils.js +1 -1
  31. package/dist/cjs/webpack/helpers.js +18 -6
  32. package/dist/cjs/webpack/webpack.base.babel.js +7 -4
  33. package/dist/cjs/webpack/webpack.dev.babel.js +14 -3
  34. package/dist/cjs/webpack/webpack.lib.base.babel.js +13 -5
  35. package/dist/cjs/webpack/webpack.lib.dev.babel.js +5 -11
  36. package/dist/cjs/webpack/webpack.lib.prod.babel.js +4 -5
  37. package/dist/cjs/webpack/webpack.prod.babel.js +3 -2
  38. package/dist/cjs/webpack/webpack.storybook.js +10 -11
  39. package/dist/esm/commands/lint.js +27 -7
  40. package/dist/esm/commands/start.js +1 -1
  41. package/dist/esm/commands/storybook.js +2 -2
  42. package/dist/esm/commands/test.js +51 -22
  43. package/dist/esm/commands/utils.js +30 -1
  44. package/dist/esm/index.js +3 -1
  45. package/dist/esm/lint-config/eslint/common.cjs +3 -2
  46. package/dist/esm/lint-config/eslint/typescript/common.cjs +3 -3
  47. package/dist/esm/lint-config/stylelint.config.cjs +14 -13
  48. package/dist/esm/monorepo/delete-merged-tags.js +1 -1
  49. package/dist/esm/monorepo/set-registry-version.js +1 -1
  50. package/dist/esm/monorepo/set-workspace-version.js +1 -1
  51. package/dist/esm/server/csp.js +2 -1
  52. package/dist/esm/server/index.js +6 -1
  53. package/dist/esm/server/utils.js +11 -4
  54. package/dist/esm/server/wsServer.js +99 -0
  55. package/dist/esm/testing/ExtendedJSDomEnv.cjs +27 -0
  56. package/dist/esm/testing/extended/axe-core/getMessageAndPass.js +17 -0
  57. package/dist/esm/testing/extended/axe-core/index.js +4 -0
  58. package/dist/esm/testing/extended/axe-core/reporter.js +31 -0
  59. package/dist/esm/testing/extended/axe-core/shouldIgnoreNodeViolation.js +11 -0
  60. package/dist/esm/testing/extended/axe-core/toHaveNoViolations.js +23 -0
  61. package/dist/esm/testing/jest.config.cjs +5 -2
  62. package/dist/esm/testing/jest.polyfills.cjs +28 -0
  63. package/dist/esm/testing/setup-test-env.js +0 -2
  64. package/dist/esm/testing/setup-tests.js +25 -4
  65. package/dist/esm/testing/vitest.config.js +8 -8
  66. package/dist/esm/transpile/esbuild.js +1 -1
  67. package/dist/esm/update-notifier.js +1 -1
  68. package/dist/esm/utils.js +1 -1
  69. package/dist/esm/webpack/helpers.js +18 -6
  70. package/dist/esm/webpack/webpack.base.babel.js +7 -4
  71. package/dist/esm/webpack/webpack.dev.babel.js +14 -3
  72. package/dist/esm/webpack/webpack.lib.base.babel.js +13 -5
  73. package/dist/esm/webpack/webpack.lib.dev.babel.js +6 -12
  74. package/dist/esm/webpack/webpack.lib.prod.babel.js +9 -6
  75. package/dist/esm/webpack/webpack.prod.babel.js +3 -2
  76. package/dist/esm/webpack/webpack.storybook.js +11 -12
  77. package/dist/types/babel.config.d.cts +7 -7
  78. package/dist/types/commands/build.d.ts +2 -2
  79. package/dist/types/commands/codemod.d.ts +2 -2
  80. package/dist/types/commands/lint.d.ts +3 -2
  81. package/dist/types/commands/pack.d.ts +2 -2
  82. package/dist/types/commands/start.d.ts +2 -2
  83. package/dist/types/commands/storybook.d.ts +2 -2
  84. package/dist/types/commands/test.d.ts +4 -2
  85. package/dist/types/commands/tscheck.d.ts +2 -2
  86. package/dist/types/commands/utils.d.ts +23 -1
  87. package/dist/types/commands/version.d.ts +2 -2
  88. package/dist/types/commands/vitest.d.ts +2 -2
  89. package/dist/types/index.d.ts +1 -0
  90. package/dist/types/lint-config/commitlint.config.d.cts +1 -1
  91. package/dist/types/lint-config/eslint/common.d.cts +18 -12
  92. package/dist/types/lint-config/eslint/non-react.d.cts +8 -1
  93. package/dist/types/lint-config/eslint/react.d.cts +8 -1
  94. package/dist/types/lint-config/eslint/typescript/common.d.cts +6 -6
  95. package/dist/types/lint-config/eslint/typescript/non-react.d.cts +9 -2
  96. package/dist/types/lint-config/eslint/typescript/react.d.cts +9 -2
  97. package/dist/types/lint-config/lint-staged.config.d.ts +3 -3
  98. package/dist/types/lint-config/prettier.config.d.cts +6 -6
  99. package/dist/types/lint-config/stylelint.config.d.cts +6 -6
  100. package/dist/types/release.config.d.cts +2 -2
  101. package/dist/types/server/csp.d.ts +2 -2
  102. package/dist/types/server/utils.d.ts +1 -0
  103. package/dist/types/server/wsServer.d.ts +13 -0
  104. package/dist/types/testing/ExtendedJSDomEnv.d.cts +5 -0
  105. package/dist/types/testing/extended/axe-core/getMessageAndPass.d.ts +8 -0
  106. package/dist/types/testing/extended/axe-core/index.d.ts +1 -0
  107. package/dist/types/testing/extended/axe-core/reporter.d.ts +2 -0
  108. package/dist/types/testing/extended/axe-core/shouldIgnoreNodeViolation.d.ts +2 -0
  109. package/dist/types/testing/extended/axe-core/toHaveNoViolations.d.ts +12 -0
  110. package/dist/types/testing/jest.config.d.cts +25 -22
  111. package/dist/types/testing/jest.node.config.d.cts +3 -0
  112. package/dist/types/testing/jest.polyfills.d.cts +1 -0
  113. package/dist/types/testing/mocks/axios.d.ts +7 -7
  114. package/dist/types/testing/mocks/pui-diagnostics.d.ts +13 -13
  115. package/dist/types/testing/vitest.config.d.ts +1 -1
  116. package/dist/types/tests/basic.test.d.ts +0 -0
  117. package/dist/types/transpile/esbuild.d.ts +3 -3
  118. package/dist/types/typedoc.d.cts +3 -3
  119. package/dist/types/webpack/helpers.d.ts +4 -1
  120. package/dist/types/webpack/webpack.storybook.d.ts +0 -1
  121. package/nx.json +97 -0
  122. package/package.json +163 -150
@@ -1,5 +1,5 @@
1
1
  import { CommandModule } from 'yargs';
2
- export type Arguments = {
2
+ export interface Arguments {
3
3
  files: string[];
4
- };
4
+ }
5
5
  export declare const tscheckCmd: CommandModule<Record<string, never>, Arguments>;
@@ -1,9 +1,10 @@
1
1
  /// <reference types="node" />
2
- export declare const exec: (command: string, options?: import("execa").Options<null> | undefined) => Promise<import("execa").ExecaReturnValue<Buffer>>;
2
+ export declare const exec: (command: string, options?: import("execa").Options<import("execa").BufferEncodingOption> | undefined) => Promise<import("execa").ExecaReturnValue<Buffer>>;
3
3
  export declare const logInfo: {
4
4
  (...data: any[]): void;
5
5
  (message?: any, ...optionalParams: any[]): void;
6
6
  };
7
+ export declare const logWarning: (...args: string[]) => void;
7
8
  export declare const logSuccess: (...args: string[]) => void;
8
9
  export declare const logError: {
9
10
  (...data: any[]): void;
@@ -15,3 +16,24 @@ export declare const isPathExist: (pathToCheck: string) => Promise<boolean>;
15
16
  export declare const isApp: () => Promise<boolean>;
16
17
  export declare const getCIEnv: () => boolean;
17
18
  export declare const isTypeScriptEnabled: () => boolean;
19
+ /**
20
+ * argv will generate an object with many assumptions based on the library own functionality.
21
+ * some of those assumptions make it hard to use the ...rest operator to get the options,
22
+ * this function is meant to get the options that are not specificially expected.
23
+ * @param {object} options - the options the command is specifically expecting
24
+ * @param {string} command - the raw command (without the prefix nor tag)
25
+ * @returns {object} - options that were not specifically expected by the command, key are camelCase, values are forced to be strings
26
+ * @example
27
+ * // options {
28
+ * // someOption: { alias: 'my-test', string: true, default:'foo' },
29
+ * // 'hello-world': { boolean: true, default:'bar' },
30
+ * // }
31
+ * // command "test"
32
+ * // user's args string
33
+ * // "test --hello-world -my-test='is-working' --orMaybe=\"it isn't\" is_it='? '--a"
34
+ * // ^ command ^ expected option ^ expected option(alias) | unspecified options...
35
+ * // returns { orMaybe: "it isn't", is_it: '? ', a: true }
36
+ * // note that the unspecified options are forced to be strings, unless boolean (without '=')
37
+ * @see {@link https://stackblitz.com/edit/node-gqcdb4?file=package.json stackblitz test}
38
+ */
39
+ export declare const getUnspecifiedOptions: (options: Record<string, Record<string, unknown>>, command: string) => Record<string, string | boolean>;
@@ -1,9 +1,9 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  deleteTags: boolean;
4
4
  useRegistry: boolean;
5
5
  useWorkspace: boolean;
6
6
  lernaOptions?: string;
7
- };
7
+ }
8
8
  export declare const versionCmd: CommandModule<Record<string, never>, Arguments>;
9
9
  export {};
@@ -1,10 +1,10 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  fix?: boolean;
4
4
  watch?: boolean;
5
5
  passWithNoTests?: boolean;
6
6
  findReleatedTests?: boolean;
7
7
  silent?: boolean;
8
- };
8
+ }
9
9
  export declare const vitestCmd: CommandModule<Record<string, never>, Arguments>;
10
10
  export {};
@@ -9,3 +9,4 @@ export { vitestConfig } from './testing/vitest.config.js';
9
9
  export { jestNodeConfig } from './testing/jest.node.config.cjs';
10
10
  export { lintStagedConfig } from './lint-config/lint-staged.config.js';
11
11
  export { loadRoutes } from './server/appRoutes.js';
12
+ export { webpackFinal } from './webpack/webpack.storybook.js';
@@ -1,4 +1,4 @@
1
1
  export namespace commitlintConfig {
2
- const _extends: string[];
2
+ let _extends: string[];
3
3
  export { _extends as extends };
4
4
  }
@@ -6,24 +6,24 @@ export const baseOverrides: {
6
6
  };
7
7
  }[];
8
8
  export namespace baseConfig {
9
- export const parser: string;
9
+ export let parser: string;
10
10
  export { basePlugins as plugins };
11
11
  export namespace env {
12
- const jest: boolean;
13
- const browser: boolean;
14
- const node: boolean;
15
- const es2021: boolean;
12
+ let jest: boolean;
13
+ let browser: boolean;
14
+ let node: boolean;
15
+ let es2021: boolean;
16
16
  }
17
17
  export namespace parserOptions {
18
- const sourceType: string;
18
+ let sourceType: string;
19
19
  namespace ecmaFeatures {
20
- const jsx: boolean;
20
+ let jsx: boolean;
21
21
  }
22
22
  namespace babelOptions {
23
- const plugins: string[];
23
+ let plugins: string[];
24
24
  }
25
25
  }
26
- export const settings: {
26
+ export let settings: {
27
27
  react: {
28
28
  version: string;
29
29
  };
@@ -36,11 +36,18 @@ export namespace baseConfig {
36
36
  };
37
37
  };
38
38
  };
39
- export const ignorePatterns: string[];
39
+ export let ignorePatterns: string[];
40
40
  }
41
41
  export const basePlugins: string[];
42
42
  export const baseRules: {
43
- "prettier/prettier": (string | typeof prettierOptions)[];
43
+ "prettier/prettier": (string | {
44
+ printWidth: number;
45
+ tabWidth: number;
46
+ useTabs: boolean;
47
+ semi: boolean;
48
+ singleQuote: boolean;
49
+ trailingComma: string;
50
+ })[];
44
51
  "arrow-body-style": (string | number)[];
45
52
  "class-methods-use-this": number;
46
53
  "import/imports-first": number;
@@ -127,4 +134,3 @@ export const reactRules: {
127
134
  "redux-saga/no-yield-in-race": number;
128
135
  "redux-saga/yield-effects": number;
129
136
  };
130
- import prettierOptions = require("../prettier.config.cjs");
@@ -1,7 +1,14 @@
1
1
  export const esConfig: {
2
2
  extends: string[];
3
3
  rules: {
4
- "prettier/prettier": (string | typeof import("../prettier.config.cjs"))[];
4
+ "prettier/prettier": (string | {
5
+ printWidth: number;
6
+ tabWidth: number;
7
+ useTabs: boolean;
8
+ semi: boolean;
9
+ singleQuote: boolean;
10
+ trailingComma: string;
11
+ })[];
5
12
  "arrow-body-style": (string | number)[];
6
13
  "class-methods-use-this": number;
7
14
  "import/imports-first": number;
@@ -31,7 +31,14 @@ export const esReactConfig: {
31
31
  })[];
32
32
  "redux-saga/no-yield-in-race": number;
33
33
  "redux-saga/yield-effects": number;
34
- "prettier/prettier": (string | typeof import("../prettier.config.cjs"))[];
34
+ "prettier/prettier": (string | {
35
+ printWidth: number;
36
+ tabWidth: number;
37
+ useTabs: boolean;
38
+ semi: boolean;
39
+ singleQuote: boolean;
40
+ trailingComma: string;
41
+ })[];
35
42
  "arrow-body-style": (string | number)[];
36
43
  "class-methods-use-this": number;
37
44
  "import/imports-first": number;
@@ -20,14 +20,14 @@ export const tsBaseRules: {
20
20
  })[];
21
21
  };
22
22
  export namespace tsBaseConfig {
23
- const files: string[];
24
- const parser: string;
25
- const plugins: string[];
23
+ let files: string[];
24
+ let parser: string;
25
+ let plugins: string[];
26
26
  namespace parserOptions {
27
- const tsconfigRootDir: string;
28
- const project: string;
27
+ let tsconfigRootDir: string;
28
+ let project: boolean;
29
29
  }
30
- const settings: {
30
+ let settings: {
31
31
  'import/resolver': {
32
32
  typescript: {
33
33
  alwaysTryTypes: boolean;
@@ -19,7 +19,14 @@ export const tsConfig: {
19
19
  '@typescript-eslint/no-floating-promises': (string | {
20
20
  ignoreIIFE: boolean;
21
21
  })[];
22
- "prettier/prettier": (string | typeof import("../../prettier.config.cjs"))[];
22
+ "prettier/prettier": (string | {
23
+ printWidth: number;
24
+ tabWidth: number;
25
+ useTabs: boolean;
26
+ semi: boolean;
27
+ singleQuote: boolean;
28
+ trailingComma: string;
29
+ })[];
23
30
  "arrow-body-style": (string | number)[];
24
31
  "class-methods-use-this": number;
25
32
  "import/imports-first": number;
@@ -75,7 +82,7 @@ export const tsConfig: {
75
82
  plugins: string[];
76
83
  parserOptions: {
77
84
  tsconfigRootDir: string;
78
- project: string;
85
+ project: boolean;
79
86
  };
80
87
  settings: {
81
88
  'import/resolver': {
@@ -50,7 +50,14 @@ export const tsReactConfig: {
50
50
  '@typescript-eslint/no-floating-promises': (string | {
51
51
  ignoreIIFE: boolean;
52
52
  })[];
53
- "prettier/prettier": (string | typeof import("../../prettier.config.cjs"))[];
53
+ "prettier/prettier": (string | {
54
+ printWidth: number;
55
+ tabWidth: number;
56
+ useTabs: boolean;
57
+ semi: boolean;
58
+ singleQuote: boolean;
59
+ trailingComma: string;
60
+ })[];
54
61
  "arrow-body-style": (string | number)[];
55
62
  "class-methods-use-this": number;
56
63
  "import/imports-first": number;
@@ -106,7 +113,7 @@ export const tsReactConfig: {
106
113
  plugins: string[];
107
114
  parserOptions: {
108
115
  tsconfigRootDir: string;
109
- project: string;
116
+ project: boolean;
110
117
  };
111
118
  settings: {
112
119
  'import/resolver': {
@@ -1,5 +1,5 @@
1
1
  export const lintStagedConfig: {
2
- "*.{js,ts,jsx,tsx,md,mdx,html,css,json}": string[];
3
- "*.{ts,tsx}": string[];
4
- "*.{js,ts,jsx,tsx}": string[];
2
+ '*.{js,ts,jsx,tsx,md,mdx,html,css,json}': string[];
3
+ '*.{ts,tsx}': string[];
4
+ '*.{js,ts,jsx,tsx}': string[];
5
5
  };
@@ -1,8 +1,8 @@
1
1
  export namespace prettierConfig {
2
- const printWidth: number;
3
- const tabWidth: number;
4
- const useTabs: boolean;
5
- const semi: boolean;
6
- const singleQuote: boolean;
7
- const trailingComma: string;
2
+ let printWidth: number;
3
+ let tabWidth: number;
4
+ let useTabs: boolean;
5
+ let semi: boolean;
6
+ let singleQuote: boolean;
7
+ let trailingComma: string;
8
8
  }
@@ -1,10 +1,10 @@
1
1
  export namespace stylelintConfig {
2
- export const ignoreFiles: string[];
3
- export const customSyntax: string;
4
- const _extends: string[];
2
+ export let ignoreFiles: string[];
3
+ export let customSyntax: string;
4
+ let _extends: string[];
5
5
  export { _extends as extends };
6
- export const rules: {
7
- 'selector-type-no-unknown': null;
8
- 'function-no-unknown': null;
6
+ export let rules: {
7
+ "selector-type-no-unknown": null;
8
+ "function-no-unknown": null;
9
9
  };
10
10
  }
@@ -1,7 +1,7 @@
1
- export const branches: (string | {
1
+ export let branches: (string | {
2
2
  name: string;
3
3
  prerelease: boolean;
4
4
  })[];
5
- export const plugins: (string | (string | {
5
+ export let plugins: (string | (string | {
6
6
  changelogTitle: string;
7
7
  })[])[];
@@ -1,13 +1,13 @@
1
1
  /// <reference types="node" />
2
2
  import fs from 'node:fs';
3
3
  import { Application, Response } from 'express';
4
- type CSPConfig = {
4
+ interface CSPConfig {
5
5
  buildPath: string;
6
6
  page?: string;
7
7
  nonceRegex?: RegExp;
8
8
  res: Response<unknown, Record<string, unknown>>;
9
9
  fileSystem?: typeof fs;
10
- };
10
+ }
11
11
  export declare const sendFileWithCSPNonce: ({ buildPath, page, nonceRegex, res, fileSystem, }: CSPConfig) => void;
12
12
  export declare const csp: (app: Application) => void;
13
13
  export {};
@@ -1,3 +1,4 @@
1
1
  export declare const getCWD: () => string;
2
2
  export declare const port: number;
3
3
  export declare const host: string;
4
+ export declare const wsPort: number;
@@ -0,0 +1,13 @@
1
+ /// <reference types="node" />
2
+ import http from 'node:http';
3
+ import * as wsLib from 'ws';
4
+ export interface Servers {
5
+ httpServer: http.Server;
6
+ wsServer: wsLib.WebSocketServer;
7
+ }
8
+ export interface WSServerOptions {
9
+ port?: number;
10
+ pingInterval?: number;
11
+ onOpen?: (webSocket: wsLib.WebSocket) => void;
12
+ }
13
+ export declare const createWSServer: ({ port, pingInterval, onOpen, }: WSServerOptions) => Promise<Servers>;
@@ -0,0 +1,5 @@
1
+ export = FixJSDOMEnvironment;
2
+ declare const FixJSDOMEnvironment_base: typeof import("jest-environment-jsdom").default;
3
+ declare class FixJSDOMEnvironment extends FixJSDOMEnvironment_base {
4
+ constructor(...args: any[]);
5
+ }
@@ -0,0 +1,8 @@
1
+ import type { Result } from 'axe-core';
2
+ export declare const getMessageAndPass: (violations: Result[]) => {
3
+ message: () => string;
4
+ pass: true;
5
+ } | {
6
+ message: () => string;
7
+ pass: false;
8
+ };
@@ -0,0 +1 @@
1
+ export { toHaveNoViolations } from './toHaveNoViolations.js';
@@ -0,0 +1,2 @@
1
+ import type { Result } from 'axe-core';
2
+ export declare const reporter: (violToFormat: Result[]) => string;
@@ -0,0 +1,2 @@
1
+ import type { NodeResult, Result } from 'axe-core';
2
+ export declare const shouldIgnoreNodeViolation: (node: NodeResult, violation: Result) => boolean;
@@ -0,0 +1,12 @@
1
+ import type { AxeResults, Result } from 'axe-core';
2
+ export declare const toHaveNoViolations: {
3
+ toHaveNoViolations(results: AxeResults): {
4
+ message: () => string;
5
+ pass: true;
6
+ actual: Result[];
7
+ } | {
8
+ message: () => string;
9
+ pass: false;
10
+ actual: Result[];
11
+ };
12
+ };
@@ -1,10 +1,12 @@
1
1
  export namespace jestConfig {
2
- const collectCoverageFrom: string[];
3
- const coverageThreshold: {};
4
- const coverageDirectory: string;
5
- const coverageReporters: string[];
6
- const moduleDirectories: string[];
7
- const moduleNameMapper: {
2
+ let collectCoverageFrom: string[];
3
+ let coverageThreshold: {};
4
+ let coverageDirectory: string;
5
+ let coverageReporters: string[];
6
+ let moduleDirectories: string[];
7
+ let moduleNameMapper: {
8
+ d3: string;
9
+ '^d3-(.*)$': string;
8
10
  '.*\\webpack-hmr(.[t|j]s)?$': string;
9
11
  '.*\\.(css|scss)$': string;
10
12
  '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': string;
@@ -16,26 +18,27 @@ export namespace jestConfig {
16
18
  'react-spring/web': string;
17
19
  'react-spring/renderprops': string;
18
20
  };
19
- const moduleFileExtensions: string[];
20
- const setupFilesAfterEnv: string[];
21
- const setupFiles: string[];
22
- const testRegex: string;
23
- const snapshotSerializers: never[];
24
- const testResultsProcessor: string;
25
- const resolver: string;
26
- const transform: {
21
+ let moduleFileExtensions: string[];
22
+ let setupFilesAfterEnv: string[];
23
+ let setupFiles: string[];
24
+ let testRegex: string;
25
+ let snapshotSerializers: never[];
26
+ let testResultsProcessor: string;
27
+ let resolver: string;
28
+ let transform: {
27
29
  '^.+\\.[jt]sx?$': any[];
28
30
  };
29
- const transformIgnorePatterns: string[];
31
+ let transformIgnorePatterns: string[];
30
32
  namespace globals {
31
- const APP_CONFIG: string | Buffer;
32
- const __webpack_public_path__: string;
33
+ let APP_CONFIG: string | Buffer;
34
+ let __webpack_public_path__: string;
33
35
  }
34
36
  namespace testEnvironmentOptions {
35
- const url: string;
36
- const resources: string;
37
+ let url: string;
38
+ let resources: string;
39
+ let customExportConditions: string[];
37
40
  }
38
- const testEnvironment: string;
39
- const watchPlugins: string[];
40
- const testTimeout: number;
41
+ let testEnvironment: string;
42
+ let watchPlugins: string[];
43
+ let testTimeout: number;
41
44
  }
@@ -9,6 +9,8 @@ export const jestNodeConfig: {
9
9
  coverageReporters: string[];
10
10
  moduleDirectories: string[];
11
11
  moduleNameMapper: {
12
+ d3: string;
13
+ '^d3-(.*)$': string;
12
14
  '.*\\webpack-hmr(.[t|j]s)?$': string;
13
15
  '.*\\.(css|scss)$': string;
14
16
  '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': string;
@@ -35,6 +37,7 @@ export const jestNodeConfig: {
35
37
  testEnvironmentOptions: {
36
38
  url: string;
37
39
  resources: string;
40
+ customExportConditions: string[];
38
41
  };
39
42
  watchPlugins: string[];
40
43
  testTimeout: number;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,17 +1,17 @@
1
1
  declare namespace _default {
2
- const defaults: {};
2
+ let defaults: {};
3
3
  namespace interceptors {
4
4
  namespace request {
5
- const use: jest.Mock<any, any, any>;
5
+ let use: jest.Mock<any, any, any>;
6
6
  }
7
7
  namespace response {
8
- const use_1: jest.Mock<any, any, any>;
8
+ let use_1: jest.Mock<any, any, any>;
9
9
  export { use_1 as use };
10
10
  }
11
11
  }
12
- const create: jest.Mock<any, any, any>;
13
- const get: jest.Mock<any, any, any>;
14
- const post: jest.Mock<any, any, any>;
15
- const put: jest.Mock<any, any, any>;
12
+ let create: jest.Mock<any, any, any>;
13
+ let get: jest.Mock<any, any, any>;
14
+ let post: jest.Mock<any, any, any>;
15
+ let put: jest.Mock<any, any, any>;
16
16
  }
17
17
  export default _default;
@@ -1,10 +1,10 @@
1
1
  export namespace LogLevels {
2
- const DEBUG: number;
3
- const INFO: number;
4
- const AUDIT: number;
5
- const WARN: number;
6
- const ERROR: number;
7
- const FATAL: number;
2
+ let DEBUG: number;
3
+ let INFO: number;
4
+ let AUDIT: number;
5
+ let WARN: number;
6
+ let ERROR: number;
7
+ let FATAL: number;
8
8
  }
9
9
  export function logger(): {
10
10
  setLogLevel(): void;
@@ -19,13 +19,13 @@ export function logger(): {
19
19
  fatal(): void;
20
20
  };
21
21
  export namespace LogLevel {
22
- const info: string;
23
- const debug: string;
24
- const trace: string;
25
- const warn: string;
26
- const error: string;
27
- const audit: string;
28
- const fatal: string;
22
+ let info: string;
23
+ let debug: string;
24
+ let trace: string;
25
+ let warn: string;
26
+ let error: string;
27
+ let audit: string;
28
+ let fatal: string;
29
29
  }
30
30
  export function Console(): {
31
31
  log: () => void;
@@ -1 +1 @@
1
- export declare const vitestConfig: import("vitest/dist/config").UserConfigExport;
1
+ export declare const vitestConfig: import("vite").UserConfig;
File without changes
@@ -1,7 +1,7 @@
1
1
  export namespace TARGETS {
2
- const browserslist: string[];
3
- const web: string;
4
- const node: string;
2
+ let browserslist: string[];
3
+ let web: string;
4
+ let node: string;
5
5
  }
6
6
  export function esBuild({ srcdir, outdir, esmOnly, target, injectReactShim, skipNestedPackageJSON, }: {
7
7
  srcdir: any;
@@ -1,3 +1,3 @@
1
- export const entryPoints: string[];
2
- export const exclude: string[];
3
- export const out: string;
1
+ export let entryPoints: string[];
2
+ export let exclude: string[];
3
+ export let out: string;
@@ -1,13 +1,16 @@
1
1
  /// <reference types="node" />
2
+ import zlib from 'zlib';
2
3
  import CompressionPlugin from 'compression-webpack-plugin';
3
4
  import { ObjectPattern } from 'copy-webpack-plugin';
4
- import zlib from 'zlib';
5
5
  export declare const LATEST_VERSION = "latest";
6
6
  export declare const excludeNodeModulesExcept: (modules: string[]) => (modulePath: string) => boolean;
7
7
  export declare const getLibraryName: () => string;
8
8
  export declare const getLibraryVariableName: () => string[];
9
9
  export declare const mapToFolder: (dependencies: string[], folder: string) => {};
10
10
  export declare const getAlias: () => {};
11
+ export declare const getLibraryAlias: (name: string, alias: string) => {
12
+ [x: string]: string;
13
+ };
11
14
  export declare const modulesToTranspile: string[];
12
15
  export declare const getAppVersion: () => string;
13
16
  export declare const getPaths: (latestVersion?: boolean) => {
@@ -2,4 +2,3 @@ import webpack, { Configuration } from 'webpack';
2
2
  export declare const webpackFinal: (config: Configuration, { configType }: {
3
3
  configType: string;
4
4
  }) => webpack.Configuration;
5
- export declare const managerWebpack: (config: Configuration) => webpack.Configuration;