@elliemae/pui-cli 9.0.0-next.4 → 9.0.0-next.40

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 (183) hide show
  1. package/app.tsconfig.json +1 -1
  2. package/dist/cjs/commands/lint.js +27 -8
  3. package/dist/cjs/commands/start.js +1 -1
  4. package/dist/cjs/commands/storybook.js +2 -2
  5. package/dist/cjs/commands/test.js +51 -22
  6. package/dist/cjs/commands/utils.js +33 -2
  7. package/dist/cjs/index.cjs +0 -2
  8. package/dist/cjs/index.js +4 -2
  9. package/dist/cjs/lint-config/eslint/common.cjs +3 -2
  10. package/dist/cjs/lint-config/eslint/typescript/common.cjs +3 -3
  11. package/dist/cjs/lint-config/stylelint.config.js +45 -0
  12. package/dist/cjs/monorepo/delete-merged-tags.js +1 -1
  13. package/dist/cjs/monorepo/set-registry-version.js +1 -1
  14. package/dist/cjs/monorepo/set-workspace-version.js +1 -1
  15. package/dist/cjs/pui-config.js +1 -1
  16. package/dist/cjs/release.config.js +46 -0
  17. package/dist/cjs/server/csp.js +2 -1
  18. package/dist/cjs/server/index.js +5 -0
  19. package/dist/cjs/server/utils.js +11 -4
  20. package/dist/cjs/server/wsServer.js +129 -0
  21. package/dist/cjs/testing/ExtendedJSDomEnv.cjs +27 -0
  22. package/dist/cjs/testing/extended/axe-core/getMessageAndPass.js +37 -0
  23. package/dist/cjs/testing/extended/axe-core/index.js +24 -0
  24. package/dist/cjs/testing/extended/axe-core/reporter.js +51 -0
  25. package/dist/cjs/testing/extended/axe-core/shouldIgnoreNodeViolation.js +31 -0
  26. package/dist/cjs/testing/extended/axe-core/toHaveNoViolations.js +43 -0
  27. package/dist/cjs/testing/jest.config.cjs +5 -2
  28. package/dist/cjs/testing/jest.polyfills.cjs +30 -0
  29. package/dist/cjs/testing/setup-test-env.js +0 -2
  30. package/dist/cjs/testing/setup-tests.js +26 -4
  31. package/dist/cjs/testing/vitest.config.js +8 -8
  32. package/dist/cjs/transpile/.swcrc +1 -1
  33. package/dist/cjs/transpile/esbuild.js +4 -4
  34. package/dist/cjs/update-notifier.js +1 -1
  35. package/dist/cjs/utils.js +1 -1
  36. package/dist/cjs/webpack/helpers.js +20 -8
  37. package/dist/cjs/webpack/webpack.base.babel.js +13 -27
  38. package/dist/cjs/webpack/webpack.dev.babel.js +14 -3
  39. package/dist/cjs/webpack/webpack.lib.base.babel.js +13 -5
  40. package/dist/cjs/webpack/webpack.lib.dev.babel.js +8 -12
  41. package/dist/cjs/webpack/webpack.lib.prod.babel.js +7 -6
  42. package/dist/cjs/webpack/webpack.prod.babel.js +3 -2
  43. package/dist/cjs/webpack/webpack.storybook.js +10 -11
  44. package/dist/esm/commands/lint.js +28 -8
  45. package/dist/esm/commands/start.js +1 -1
  46. package/dist/esm/commands/storybook.js +2 -2
  47. package/dist/esm/commands/test.js +51 -22
  48. package/dist/esm/commands/utils.js +33 -2
  49. package/dist/esm/index.cjs +0 -2
  50. package/dist/esm/index.js +4 -2
  51. package/dist/esm/lint-config/eslint/common.cjs +3 -2
  52. package/dist/esm/lint-config/eslint/typescript/common.cjs +3 -3
  53. package/dist/esm/lint-config/stylelint.config.js +25 -0
  54. package/dist/esm/monorepo/delete-merged-tags.js +1 -1
  55. package/dist/esm/monorepo/set-registry-version.js +1 -1
  56. package/dist/esm/monorepo/set-workspace-version.js +1 -1
  57. package/dist/esm/pui-config.js +1 -1
  58. package/dist/esm/release.config.js +26 -0
  59. package/dist/esm/server/csp.js +2 -1
  60. package/dist/esm/server/index.js +6 -1
  61. package/dist/esm/server/utils.js +11 -4
  62. package/dist/esm/server/wsServer.js +99 -0
  63. package/dist/esm/testing/ExtendedJSDomEnv.cjs +27 -0
  64. package/dist/esm/testing/extended/axe-core/getMessageAndPass.js +17 -0
  65. package/dist/esm/testing/extended/axe-core/index.js +4 -0
  66. package/dist/esm/testing/extended/axe-core/reporter.js +31 -0
  67. package/dist/esm/testing/extended/axe-core/shouldIgnoreNodeViolation.js +11 -0
  68. package/dist/esm/testing/extended/axe-core/toHaveNoViolations.js +23 -0
  69. package/dist/esm/testing/jest.config.cjs +5 -2
  70. package/dist/esm/testing/jest.polyfills.cjs +30 -0
  71. package/dist/esm/testing/setup-test-env.js +0 -2
  72. package/dist/esm/testing/setup-tests.js +26 -4
  73. package/dist/esm/testing/vitest.config.js +8 -8
  74. package/dist/esm/transpile/.swcrc +1 -1
  75. package/dist/esm/transpile/esbuild.js +4 -4
  76. package/dist/esm/update-notifier.js +1 -1
  77. package/dist/esm/utils.js +1 -1
  78. package/dist/esm/webpack/helpers.js +20 -8
  79. package/dist/esm/webpack/webpack.base.babel.js +13 -27
  80. package/dist/esm/webpack/webpack.dev.babel.js +14 -3
  81. package/dist/esm/webpack/webpack.lib.base.babel.js +13 -5
  82. package/dist/esm/webpack/webpack.lib.dev.babel.js +9 -13
  83. package/dist/esm/webpack/webpack.lib.prod.babel.js +12 -7
  84. package/dist/esm/webpack/webpack.prod.babel.js +3 -2
  85. package/dist/esm/webpack/webpack.storybook.js +11 -12
  86. package/dist/types/docusaurus.config.d.ts +2 -0
  87. package/dist/types/{babel.config.d.cts → lib/babel.config.d.cts} +7 -7
  88. package/dist/types/{commands → lib/commands}/build.d.ts +2 -2
  89. package/dist/types/{commands → lib/commands}/codemod.d.ts +2 -2
  90. package/dist/types/{commands → lib/commands}/lint.d.ts +3 -2
  91. package/dist/types/{commands → lib/commands}/pack.d.ts +2 -2
  92. package/dist/types/{commands → lib/commands}/start.d.ts +2 -2
  93. package/dist/types/{commands → lib/commands}/storybook.d.ts +2 -2
  94. package/dist/types/{commands → lib/commands}/test.d.ts +4 -2
  95. package/dist/types/{commands → lib/commands}/tscheck.d.ts +2 -2
  96. package/dist/types/lib/commands/utils.d.ts +39 -0
  97. package/dist/types/{commands → lib/commands}/version.d.ts +2 -2
  98. package/dist/types/{commands → lib/commands}/vitest.d.ts +2 -2
  99. package/dist/types/{index.d.cts → lib/index.d.cts} +1 -2
  100. package/dist/types/{index.d.ts → lib/index.d.ts} +3 -1
  101. package/dist/types/{lint-config → lib/lint-config}/commitlint.config.d.cts +1 -1
  102. package/dist/types/{lint-config → lib/lint-config}/eslint/common.d.cts +18 -12
  103. package/dist/types/{lint-config → lib/lint-config}/eslint/non-react.d.cts +8 -1
  104. package/dist/types/{lint-config → lib/lint-config}/eslint/react.d.cts +8 -1
  105. package/dist/types/{lint-config → lib/lint-config}/eslint/typescript/common.d.cts +6 -6
  106. package/dist/types/{lint-config → lib/lint-config}/eslint/typescript/non-react.d.cts +9 -2
  107. package/dist/types/{lint-config → lib/lint-config}/eslint/typescript/react.d.cts +9 -2
  108. package/dist/types/lib/lint-config/lint-staged.config.d.ts +5 -0
  109. package/dist/types/lib/lint-config/prettier.config.d.cts +8 -0
  110. package/dist/types/lib/lint-config/stylelint.config.d.ts +13 -0
  111. package/dist/types/lib/release.config.d.ts +10 -0
  112. package/dist/types/{server → lib/server}/csp.d.ts +2 -2
  113. package/dist/types/{server → lib/server}/utils.d.ts +1 -0
  114. package/dist/types/lib/server/wsServer.d.ts +13 -0
  115. package/dist/types/lib/testing/ExtendedJSDomEnv.d.cts +5 -0
  116. package/dist/types/lib/testing/extended/axe-core/getMessageAndPass.d.ts +8 -0
  117. package/dist/types/lib/testing/extended/axe-core/index.d.ts +1 -0
  118. package/dist/types/lib/testing/extended/axe-core/reporter.d.ts +2 -0
  119. package/dist/types/lib/testing/extended/axe-core/shouldIgnoreNodeViolation.d.ts +2 -0
  120. package/dist/types/lib/testing/extended/axe-core/toHaveNoViolations.d.ts +12 -0
  121. package/dist/types/lib/testing/jest.config.d.cts +44 -0
  122. package/dist/types/{testing → lib/testing}/jest.node.config.d.cts +3 -0
  123. package/dist/types/lib/testing/mocks/axios.d.ts +17 -0
  124. package/dist/types/{testing → lib/testing}/mocks/pui-diagnostics.d.ts +13 -13
  125. package/dist/types/lib/testing/setup-tests.d.ts +1 -0
  126. package/dist/types/lib/testing/vitest.config.d.ts +1 -0
  127. package/dist/types/lib/tests/basic.test.d.ts +0 -0
  128. package/dist/types/{transpile → lib/transpile}/esbuild.d.ts +3 -3
  129. package/dist/types/lib/typedoc.d.cts +3 -0
  130. package/dist/types/{webpack → lib/webpack}/helpers.d.ts +4 -1
  131. package/dist/types/{webpack → lib/webpack}/webpack.storybook.d.ts +0 -1
  132. package/nx.json +97 -0
  133. package/package.json +188 -177
  134. package/dist/cjs/lint-config/stylelint.config.cjs +0 -19
  135. package/dist/cjs/release.config.cjs +0 -24
  136. package/dist/esm/lint-config/stylelint.config.cjs +0 -19
  137. package/dist/esm/release.config.cjs +0 -24
  138. package/dist/types/commands/utils.d.ts +0 -17
  139. package/dist/types/lint-config/lint-staged.config.d.ts +0 -5
  140. package/dist/types/lint-config/prettier.config.d.cts +0 -8
  141. package/dist/types/lint-config/stylelint.config.d.cts +0 -10
  142. package/dist/types/release.config.d.cts +0 -7
  143. package/dist/types/testing/jest.config.d.cts +0 -41
  144. package/dist/types/testing/mocks/axios.d.ts +0 -17
  145. package/dist/types/testing/vitest.config.d.ts +0 -1
  146. package/dist/types/typedoc.d.cts +0 -3
  147. /package/dist/types/{cli.d.ts → lib/cli.d.ts} +0 -0
  148. /package/dist/types/{commands → lib/commands}/gendoc.d.ts +0 -0
  149. /package/dist/types/{dummy.d.ts → lib/dummy.d.ts} +0 -0
  150. /package/dist/types/{monorepo → lib/monorepo}/delete-merged-tags.d.ts +0 -0
  151. /package/dist/types/{monorepo → lib/monorepo}/set-registry-version.d.ts +0 -0
  152. /package/dist/types/{monorepo → lib/monorepo}/set-workspace-version.d.ts +0 -0
  153. /package/dist/types/{monorepo → lib/monorepo}/utils.d.cts +0 -0
  154. /package/dist/types/{monorepo → lib/monorepo}/utils.d.ts +0 -0
  155. /package/dist/types/{pui-config.d.ts → lib/pui-config.d.ts} +0 -0
  156. /package/dist/types/{server → lib/server}/appRoutes.d.ts +0 -0
  157. /package/dist/types/{server → lib/server}/index.d.ts +0 -0
  158. /package/dist/types/{server → lib/server}/logger.d.ts +0 -0
  159. /package/dist/types/{server → lib/server}/middlewares.d.ts +0 -0
  160. /package/dist/types/{testing/setup-react-env.d.ts → lib/testing/jest.polyfills.d.cts} +0 -0
  161. /package/dist/types/{testing → lib/testing}/mocks/cssModule.d.ts +0 -0
  162. /package/dist/types/{testing → lib/testing}/mocks/html.d.ts +0 -0
  163. /package/dist/types/{testing → lib/testing}/mocks/image.d.ts +0 -0
  164. /package/dist/types/{testing → lib/testing}/mocks/matchMedia.d.ts +0 -0
  165. /package/dist/types/{testing → lib/testing}/mocks/pui-app-loader.d.ts +0 -0
  166. /package/dist/types/{testing → lib/testing}/mocks/pui-user-monitoring.d.ts +0 -0
  167. /package/dist/types/{testing → lib/testing}/mocks/retry-axios.d.ts +0 -0
  168. /package/dist/types/{testing → lib/testing}/mocks/svg.d.ts +0 -0
  169. /package/dist/types/{testing → lib/testing}/mocks/webpack-hmr.d.ts +0 -0
  170. /package/dist/types/{testing → lib/testing}/resolver.d.cts +0 -0
  171. /package/dist/types/{testing/setup-test-env.d.ts → lib/testing/setup-react-env.d.ts} +0 -0
  172. /package/dist/types/{testing/setup-tests.d.ts → lib/testing/setup-test-env.d.ts} +0 -0
  173. /package/dist/types/{transpile → lib/transpile}/react-shim.d.ts +0 -0
  174. /package/dist/types/{transpile → lib/transpile}/swcrc.config.d.cts +0 -0
  175. /package/dist/types/{update-notifier.d.ts → lib/update-notifier.d.ts} +0 -0
  176. /package/dist/types/{utils.d.cts → lib/utils.d.cts} +0 -0
  177. /package/dist/types/{utils.d.ts → lib/utils.d.ts} +0 -0
  178. /package/dist/types/{webpack → lib/webpack}/webpack.base.babel.d.ts +0 -0
  179. /package/dist/types/{webpack → lib/webpack}/webpack.dev.babel.d.ts +0 -0
  180. /package/dist/types/{webpack → lib/webpack}/webpack.lib.base.babel.d.ts +0 -0
  181. /package/dist/types/{webpack → lib/webpack}/webpack.lib.dev.babel.d.ts +0 -0
  182. /package/dist/types/{webpack → lib/webpack}/webpack.lib.prod.babel.d.ts +0 -0
  183. /package/dist/types/{webpack → lib/webpack}/webpack.prod.babel.d.ts +0 -0
@@ -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': {
@@ -0,0 +1,5 @@
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[];
5
+ };
@@ -0,0 +1,8 @@
1
+ export namespace prettierConfig {
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
+ }
@@ -0,0 +1,13 @@
1
+ export namespace stylelintConfig {
2
+ export let ignoreFiles: string[];
3
+ let _extends: string[];
4
+ export { _extends as extends };
5
+ export let customSyntax: string;
6
+ export let rules: {
7
+ 'selector-type-no-unknown': null;
8
+ 'function-no-unknown': null;
9
+ 'value-no-vendor-prefix': boolean;
10
+ 'property-no-vendor-prefix': boolean;
11
+ 'no-empty-source': null;
12
+ };
13
+ }
@@ -0,0 +1,10 @@
1
+ declare namespace _default {
2
+ let branches: (string | {
3
+ name: string;
4
+ prerelease: boolean;
5
+ })[];
6
+ let plugins: (string | (string | {
7
+ changelogTitle: string;
8
+ })[])[];
9
+ }
10
+ export default _default;
@@ -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
+ };
@@ -0,0 +1,44 @@
1
+ export namespace jestConfig {
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;
10
+ '.*\\webpack-hmr(.[t|j]s)?$': string;
11
+ '.*\\.(css|scss)$': string;
12
+ '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': string;
13
+ '.*\\.svg(?:\\?[a-zA-Z]+)?$': string;
14
+ '.*\\.html(?:\\?[a-zA-Z]+)?$': string;
15
+ '@elliemae/pui-user-monitoring': string;
16
+ '@elliemae/pui-app-loader': string;
17
+ '@elliemae/pui-diagnostics': string;
18
+ 'react-spring/web': string;
19
+ 'react-spring/renderprops': string;
20
+ };
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: {
29
+ '^.+\\.[jt]sx?$': any[];
30
+ };
31
+ let transformIgnorePatterns: string[];
32
+ namespace globals {
33
+ let APP_CONFIG: string | Buffer;
34
+ let __webpack_public_path__: string;
35
+ }
36
+ namespace testEnvironmentOptions {
37
+ let url: string;
38
+ let resources: string;
39
+ let customExportConditions: string[];
40
+ }
41
+ let testEnvironment: string;
42
+ let watchPlugins: string[];
43
+ let testTimeout: number;
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,17 @@
1
+ declare namespace _default {
2
+ let defaults: {};
3
+ namespace interceptors {
4
+ namespace request {
5
+ let use: jest.Mock<any, any, any>;
6
+ }
7
+ namespace response {
8
+ let use_1: jest.Mock<any, any, any>;
9
+ export { use_1 as use };
10
+ }
11
+ }
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
+ }
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;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
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;
@@ -0,0 +1,3 @@
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;
package/nx.json ADDED
@@ -0,0 +1,97 @@
1
+ {
2
+ "$schema": "./node_modules/nx/schemas/nx-schema.json",
3
+ "targetDependencies": {
4
+ "build": [
5
+ {
6
+ "target": "build",
7
+ "projects": "dependencies"
8
+ }
9
+ ],
10
+ "test": [
11
+ {
12
+ "target": "build",
13
+ "projects": "dependencies"
14
+ }
15
+ ],
16
+ "dts": [
17
+ {
18
+ "target": "dts",
19
+ "projects": "dependencies"
20
+ }
21
+ ],
22
+ "lint": [
23
+ {
24
+ "target": "dts",
25
+ "projects": "dependencies"
26
+ }
27
+ ],
28
+ "dev": [
29
+ {
30
+ "target": "dev",
31
+ "projects": "dependencies"
32
+ }
33
+ ],
34
+ "storybook:start": [
35
+ {
36
+ "target": "build",
37
+ "projects": "dependencies"
38
+ }
39
+ ],
40
+ "storybook:build": [
41
+ {
42
+ "target": "build",
43
+ "projects": "dependencies"
44
+ }
45
+ ],
46
+ "prepare": [
47
+ {
48
+ "target": "prepare",
49
+ "projects": "dependencies"
50
+ }
51
+ ],
52
+ "package": [
53
+ {
54
+ "target": "package",
55
+ "projects": "dependencies"
56
+ }
57
+ ]
58
+ },
59
+ "targetDefaults": {
60
+ "postinstall": {
61
+ "cache": true
62
+ },
63
+ "build": {
64
+ "cache": true
65
+ },
66
+ "dev": {
67
+ "cache": true
68
+ },
69
+ "dev:project": {
70
+ "cache": true
71
+ },
72
+ "test": {
73
+ "cache": true
74
+ },
75
+ "lint": {
76
+ "cache": true
77
+ },
78
+ "dts": {
79
+ "cache": true
80
+ },
81
+ "storybook:start": {
82
+ "cache": true
83
+ },
84
+ "storybook:build": {
85
+ "cache": true
86
+ },
87
+ "package": {
88
+ "cache": true
89
+ },
90
+ "prepare": {
91
+ "cache": true
92
+ },
93
+ "compile:scss": {
94
+ "cache": true
95
+ }
96
+ }
97
+ }