@elliemae/pui-cli 9.0.0-next.14 → 9.0.0-next.16

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 (73) 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/test.js +2 -2
  4. package/dist/cjs/commands/utils.js +3 -1
  5. package/dist/cjs/lint-config/eslint/common.cjs +3 -2
  6. package/dist/cjs/lint-config/eslint/typescript/common.cjs +3 -3
  7. package/dist/cjs/lint-config/stylelint.config.cjs +14 -13
  8. package/dist/cjs/monorepo/delete-merged-tags.js +1 -1
  9. package/dist/cjs/monorepo/set-registry-version.js +1 -1
  10. package/dist/cjs/monorepo/set-workspace-version.js +1 -1
  11. package/dist/cjs/server/csp.js +1 -1
  12. package/dist/cjs/server/utils.js +2 -2
  13. package/dist/cjs/testing/jest.config.cjs +2 -0
  14. package/dist/cjs/testing/setup-test-env.js +1 -1
  15. package/dist/cjs/testing/setup-tests.js +23 -2
  16. package/dist/cjs/transpile/esbuild.js +1 -1
  17. package/dist/cjs/update-notifier.js +1 -1
  18. package/dist/cjs/utils.js +1 -1
  19. package/dist/cjs/webpack/helpers.js +8 -6
  20. package/dist/cjs/webpack/webpack.base.babel.js +4 -4
  21. package/dist/cjs/webpack/webpack.dev.babel.js +1 -1
  22. package/dist/cjs/webpack/webpack.lib.base.babel.js +4 -4
  23. package/dist/cjs/webpack/webpack.lib.dev.babel.js +1 -1
  24. package/dist/cjs/webpack/webpack.storybook.js +2 -2
  25. package/dist/esm/commands/lint.js +27 -7
  26. package/dist/esm/commands/start.js +1 -1
  27. package/dist/esm/commands/test.js +2 -2
  28. package/dist/esm/commands/utils.js +3 -1
  29. package/dist/esm/lint-config/eslint/common.cjs +3 -2
  30. package/dist/esm/lint-config/eslint/typescript/common.cjs +3 -3
  31. package/dist/esm/lint-config/stylelint.config.cjs +14 -13
  32. package/dist/esm/monorepo/delete-merged-tags.js +1 -1
  33. package/dist/esm/monorepo/set-registry-version.js +1 -1
  34. package/dist/esm/monorepo/set-workspace-version.js +1 -1
  35. package/dist/esm/server/csp.js +1 -1
  36. package/dist/esm/server/utils.js +2 -2
  37. package/dist/esm/testing/jest.config.cjs +2 -0
  38. package/dist/esm/testing/setup-test-env.js +1 -1
  39. package/dist/esm/testing/setup-tests.js +23 -2
  40. package/dist/esm/transpile/esbuild.js +1 -1
  41. package/dist/esm/update-notifier.js +1 -1
  42. package/dist/esm/utils.js +1 -1
  43. package/dist/esm/webpack/helpers.js +8 -6
  44. package/dist/esm/webpack/webpack.base.babel.js +4 -4
  45. package/dist/esm/webpack/webpack.dev.babel.js +1 -1
  46. package/dist/esm/webpack/webpack.lib.base.babel.js +4 -4
  47. package/dist/esm/webpack/webpack.lib.dev.babel.js +1 -1
  48. package/dist/esm/webpack/webpack.storybook.js +2 -2
  49. package/dist/types/commands/build.d.ts +2 -2
  50. package/dist/types/commands/codemod.d.ts +2 -2
  51. package/dist/types/commands/lint.d.ts +3 -2
  52. package/dist/types/commands/pack.d.ts +2 -2
  53. package/dist/types/commands/start.d.ts +2 -2
  54. package/dist/types/commands/storybook.d.ts +2 -2
  55. package/dist/types/commands/test.d.ts +2 -2
  56. package/dist/types/commands/tscheck.d.ts +2 -2
  57. package/dist/types/commands/utils.d.ts +2 -1
  58. package/dist/types/commands/version.d.ts +2 -2
  59. package/dist/types/commands/vitest.d.ts +2 -2
  60. package/dist/types/lint-config/eslint/common.d.cts +8 -2
  61. package/dist/types/lint-config/eslint/non-react.d.cts +8 -1
  62. package/dist/types/lint-config/eslint/react.d.cts +8 -1
  63. package/dist/types/lint-config/eslint/typescript/common.d.cts +1 -1
  64. package/dist/types/lint-config/eslint/typescript/non-react.d.cts +9 -2
  65. package/dist/types/lint-config/eslint/typescript/react.d.cts +9 -2
  66. package/dist/types/lint-config/lint-staged.config.d.ts +3 -3
  67. package/dist/types/lint-config/stylelint.config.d.cts +2 -2
  68. package/dist/types/server/csp.d.ts +2 -2
  69. package/dist/types/testing/jest.config.d.cts +2 -0
  70. package/dist/types/testing/jest.node.config.d.cts +2 -0
  71. package/dist/types/testing/vitest.config.d.ts +1 -1
  72. package/dist/types/webpack/helpers.d.ts +1 -1
  73. package/package.json +113 -112
@@ -1,9 +1,9 @@
1
1
  const { baseExtends, basePlugins } = require('../common.cjs');
2
2
 
3
3
  exports.tsBaseExtends = [
4
- 'plugin:@typescript-eslint/recommended',
5
4
  'plugin:import/typescript',
6
- 'plugin:@typescript-eslint/recommended-requiring-type-checking',
5
+ 'plugin:@typescript-eslint/recommended-type-checked',
6
+ 'plugin:@typescript-eslint/stylistic-type-checked',
7
7
  ].concat(baseExtends);
8
8
 
9
9
  exports.tsBaseRules = {
@@ -34,7 +34,7 @@ exports.tsBaseConfig = {
34
34
  plugins: ['@typescript-eslint'].concat(basePlugins),
35
35
  parserOptions: {
36
36
  tsconfigRootDir: process.cwd(),
37
- project: 'tsconfig.json',
37
+ project: true,
38
38
  },
39
39
  settings: {
40
40
  'import/resolver': {
@@ -1,19 +1,20 @@
1
1
  exports.stylelintConfig = {
2
2
  ignoreFiles: [
3
- '/dist/**/*',
4
- '/coverage/**/*',
5
- '/build/**/*',
6
- '/reports/**/*',
7
- '/temp/**/*',
8
- '/docs/**/*',
9
- '/demo/**/*',
10
- '/node_modules/**/*',
11
- '/vendor/**/*',
3
+ "/dist/**/*",
4
+ "/coverage/**/*",
5
+ "/build/**/*",
6
+ "/reports/**/*",
7
+ "/temp/**/*",
8
+ "/docs/**/*",
9
+ "/demo/**/*",
10
+ "/node_modules/**/*",
11
+ "/vendor/**/*",
12
12
  ],
13
- customSyntax: '@stylelint/postcss-css-in-js',
13
+ customSyntax: "@stylelint/postcss-css-in-js",
14
+ // customSyntax: "postcss-styled-components", // '@stylelint/postcss-css-in-js' is deprecated, this may be a replacement?
14
15
  extends: [
15
- 'stylelint-config-recommended',
16
- 'stylelint-config-styled-components',
16
+ "stylelint-config-recommended",
17
+ "stylelint-config-styled-components",
17
18
  ],
18
- rules: { 'selector-type-no-unknown': null, 'function-no-unknown': null },
19
+ rules: { "selector-type-no-unknown": null, "function-no-unknown": null },
19
20
  };
@@ -3,7 +3,7 @@ const cwd = process.cwd();
3
3
  const execaOptions = { cwd, stdio: "inherit" };
4
4
  const semVerRegEx = /^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
5
5
  const isSemVersion = (tagName) => semVerRegEx.test(tagName);
6
- const branchName = (process.env.BRANCH_NAME || "master").toLowerCase();
6
+ const branchName = (process.env.BRANCH_NAME ?? "master").toLowerCase();
7
7
  const branchTags = {
8
8
  master: /^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/,
9
9
  next: /^v.*-next\.(0|[1-9]\d*)/,
@@ -2,7 +2,7 @@ import { readFile, writeFile } from "node:fs/promises";
2
2
  import fg from "fast-glob";
3
3
  import normalizePath from "normalize-path";
4
4
  import { findMonoRepoRoot } from "./utils.js";
5
- const monorepoRoot = normalizePath(findMonoRepoRoot() || "");
5
+ const monorepoRoot = normalizePath(findMonoRepoRoot() ?? "");
6
6
  const setRegistryVersion = async () => {
7
7
  const files = await fg([
8
8
  `${monorepoRoot}/libs/*/package.json`,
@@ -2,7 +2,7 @@ import { readFile, writeFile } from "node:fs/promises";
2
2
  import fg from "fast-glob";
3
3
  import normalizePath from "normalize-path";
4
4
  import { findMonoRepoRoot } from "./utils.js";
5
- const monorepoRoot = normalizePath(findMonoRepoRoot() || "");
5
+ const monorepoRoot = normalizePath(findMonoRepoRoot() ?? "");
6
6
  const setWorkspaceVersion = async () => {
7
7
  const files = await fg([
8
8
  `${monorepoRoot}/libs/*/package.json`,
@@ -1,8 +1,8 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
+ import crypto from "crypto";
3
4
  import express from "express";
4
5
  import cspPolicy from "helmet-csp";
5
- import crypto from "crypto";
6
6
  const CSP_REPORT_URI = "/diagnostics/v1/csp";
7
7
  const sources = [
8
8
  "'self'",
@@ -2,10 +2,10 @@ import minimist from "minimist";
2
2
  const argv = minimist(process.argv.slice(2));
3
3
  const getCWD = () => process.cwd();
4
4
  const port = parseInt(
5
- argv.port || process.env.port || process.env.PORT || "3000",
5
+ argv.port ?? process.env.port ?? process.env.PORT ?? "3000",
6
6
  10
7
7
  );
8
- const host = argv.host || process.env.HOST || "localhost";
8
+ const host = argv.host ?? process.env.HOST ?? "localhost";
9
9
  export {
10
10
  getCWD,
11
11
  host,
@@ -57,6 +57,8 @@ const jestConfig = {
57
57
  coverageReporters: ['lcov', 'html', 'text-summary'],
58
58
  moduleDirectories: ['node_modules', 'app', 'lib'],
59
59
  moduleNameMapper: {
60
+ d3: '<rootDir>/node_modules/d3/dist/d3.min.js',
61
+ '^d3-(.*)$': '<rootDir>/node_modules/d3-$1/dist/d3-$1.min.js',
60
62
  '.*\\webpack-hmr(.[t|j]s)?$': getMockFilePath('webpack-hmr.js'),
61
63
  '.*\\.(css|scss)$': getMockFilePath('cssModule.js'),
62
64
  '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$':
@@ -1,7 +1,7 @@
1
1
  import { afterEach } from "vitest";
2
2
  import "jest-styled-components";
3
3
  import { cleanup } from "@testing-library/react";
4
- import "@testing-library/jest-dom/extend-expect";
4
+ import "@testing-library/jest-dom/jest-globals";
5
5
  afterEach(() => {
6
6
  cleanup();
7
7
  });
@@ -1,6 +1,5 @@
1
- import "core-js/stable";
2
1
  import "regenerator-runtime/runtime";
3
- import "@testing-library/jest-dom/extend-expect";
2
+ import "@testing-library/jest-dom/jest-globals";
4
3
  import jestAxe from "jest-axe";
5
4
  import ResizeObserver from "resize-observer-polyfill";
6
5
  import { addMatchMedia } from "./mocks/matchMedia.js";
@@ -49,3 +48,25 @@ window.emui = {
49
48
  logger: logger(),
50
49
  _BASE_PATH: new URL(document.baseURI).pathname
51
50
  };
51
+ let showCorejsWarn = false;
52
+ afterAll(() => {
53
+ if (showCorejsWarn) {
54
+ console.warn(
55
+ `IMPORTANT: Try importing core-js/stable in your failed test files and retrying.
56
+ Some tests might have failed because of it`
57
+ );
58
+ }
59
+ });
60
+ const originalTest = global.test;
61
+ global.it = (name, fn, timeout = void 0) => {
62
+ const fnWrapper = async () => {
63
+ try {
64
+ await fn();
65
+ } catch (error) {
66
+ showCorejsWarn = true;
67
+ throw error;
68
+ }
69
+ };
70
+ originalTest(name, fnWrapper, timeout);
71
+ };
72
+ global.it.skip = originalTest.skip;
@@ -1,8 +1,8 @@
1
1
  import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
+ import { writeFile, copyFile, readFile, mkdir } from "node:fs/promises";
3
4
  import fg from "fast-glob";
4
5
  import { build } from "esbuild";
5
- import { writeFile, copyFile, readFile, mkdir } from "node:fs/promises";
6
6
  import browserslistToEsbuild from "browserslist-to-esbuild";
7
7
  import lodashTransformer from "esbuild-plugin-lodash";
8
8
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -1,6 +1,6 @@
1
- import updateNotifier from "update-notifier";
2
1
  import path from "node:path";
3
2
  import fs from "node:fs/promises";
3
+ import updateNotifier from "update-notifier";
4
4
  const notifyUpdates = async () => {
5
5
  const pkgFile = await fs.readFile(path.join(process.cwd(), "./package.json"));
6
6
  const pkg = JSON.parse(pkgFile);
package/dist/esm/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- const basePath = (process.env.BASE_PATH || "/").replace(/\/?$/, "/");
3
+ const basePath = (process.env.BASE_PATH ?? "/").replace(/\/?$/, "/");
4
4
  const isApp = () => fs.existsSync(path.join(process.cwd(), "app"));
5
5
  const getAppConfig = () => {
6
6
  const appConfigPath = path.join(
@@ -1,8 +1,8 @@
1
1
  import path from "node:path";
2
2
  import fs from "node:fs";
3
+ import zlib from "zlib";
3
4
  import _ from "lodash";
4
5
  import CompressionPlugin from "compression-webpack-plugin";
5
- import zlib from "zlib";
6
6
  import { findMonoRepoRoot } from "../monorepo/utils.js";
7
7
  import { basePath, getAppConfig } from "../utils.js";
8
8
  let pathSep = path.sep;
@@ -16,8 +16,8 @@ const excludeNodeModulesExcept = (modules) => {
16
16
  const moduleRegExps = getNodeModulesRegEx(modules);
17
17
  return function(modulePath) {
18
18
  if (/node_modules/.test(modulePath)) {
19
- for (let i = 0; i < moduleRegExps.length; i += 1)
20
- if (moduleRegExps[i].test(modulePath))
19
+ for (const moduleRegExp of moduleRegExps)
20
+ if (moduleRegExp.test(modulePath))
21
21
  return false;
22
22
  return true;
23
23
  }
@@ -32,7 +32,7 @@ const getLibraryName = () => {
32
32
  const modifiedLibName = `emui-${libraryName.replace("@elliemae/", "").replace("pui-", "")}`;
33
33
  return _.camelCase(modifiedLibName);
34
34
  };
35
- const getLibraryVariableName = () => (process.env.LIBRARY_VARIABLE_NAME || getLibraryName()).split(".");
35
+ const getLibraryVariableName = () => (process.env.LIBRARY_VARIABLE_NAME ?? getLibraryName()).split(".");
36
36
  const mapToFolder = (dependencies, folder) => dependencies.reduce(
37
37
  (acc, dependency) => ({
38
38
  [dependency]: path.resolve(`${folder}/${dependency.replace("$", "")}`),
@@ -41,7 +41,7 @@ const mapToFolder = (dependencies, folder) => dependencies.reduce(
41
41
  {}
42
42
  );
43
43
  const getAlias = () => {
44
- const monorepoRoot = findMonoRepoRoot(process.cwd()) || "";
44
+ const monorepoRoot = findMonoRepoRoot(process.cwd()) ?? "";
45
45
  return mapToFolder(
46
46
  [
47
47
  "@babel/runtime",
@@ -55,6 +55,8 @@ const getAlias = () => {
55
55
  "styled-components",
56
56
  "immer",
57
57
  "react-dates",
58
+ "react-select",
59
+ "react-spring",
58
60
  "react-transition-group",
59
61
  "@elliemae/pui-cli",
60
62
  "@elliemae/pui-app-sdk$",
@@ -125,7 +127,7 @@ const getAppVersion = () => {
125
127
  if (!process.env.APP_VERSION)
126
128
  return LATEST_VERSION;
127
129
  const match = process.env.APP_VERSION.match(/^v?(\d+\.\d+)\..*$/);
128
- return match && match[1] || LATEST_VERSION;
130
+ return match?.[1] ?? LATEST_VERSION;
129
131
  };
130
132
  const getPaths = (latestVersion = true) => {
131
133
  const version = latestVersion ? LATEST_VERSION : getAppVersion();
@@ -257,7 +257,7 @@ const baseConfig = (options) => ({
257
257
  mainFields: ["browser", "module", "main"],
258
258
  alias: {
259
259
  ...getAlias(),
260
- ...(options.resolve || {}).alias || {}
260
+ ...options.resolve?.alias ?? {}
261
261
  }
262
262
  },
263
263
  externalsPresets: {
@@ -287,9 +287,9 @@ const baseConfig = (options) => ({
287
287
  "styled-system": "emuiAppReactDependencies.styledSystem"
288
288
  // "@xstyled/styled-components": "emuiAppReactDependencies.xstyled",
289
289
  },
290
- devtool: options.devtool || "eval-source-map",
291
- performance: options.performance || {},
292
- devServer: options.devServer || {}
290
+ devtool: options.devtool ?? "eval-source-map",
291
+ performance: options.performance ?? {},
292
+ devServer: options.devServer ?? {}
293
293
  });
294
294
  export {
295
295
  baseConfig
@@ -114,7 +114,7 @@ const devConfig = {
114
114
  },
115
115
  hot: true,
116
116
  open: [basePath],
117
- port: process.env.PORT || "auto",
117
+ port: process.env.PORT ?? "auto",
118
118
  setupMiddlewares: (middlewares, devServer) => {
119
119
  if (devServer.app) {
120
120
  setupDefaultMiddlewares(devServer.app);
@@ -185,7 +185,7 @@ const baseConfig = (options) => ({
185
185
  mainFields: ["browser", "module", "main"],
186
186
  alias: {
187
187
  ...getAlias(),
188
- ...(options.resolve || {}).alias || {}
188
+ ...options.resolve?.alias ?? {}
189
189
  },
190
190
  plugins: [new ResolveTypeScriptPlugin({})]
191
191
  },
@@ -194,9 +194,9 @@ const baseConfig = (options) => ({
194
194
  "@elliemae/pui-app-loader": "emuiAppLoader",
195
195
  "@elliemae/pui-diagnostics": "emuiDiagnostics"
196
196
  },
197
- devtool: options.devtool || "eval-source-map",
198
- performance: options.performance || {},
199
- devServer: options.devServer || {}
197
+ devtool: options.devtool ?? "eval-source-map",
198
+ performance: options.performance ?? {},
199
+ devServer: options.devServer ?? {}
200
200
  });
201
201
  export {
202
202
  baseConfig
@@ -56,7 +56,7 @@ var webpack_lib_dev_babel_default = baseConfig({
56
56
  historyApiFallback: true,
57
57
  hot: true,
58
58
  open: [basePath],
59
- port: process.env.PORT || "auto",
59
+ port: process.env.PORT ?? "auto",
60
60
  headers: {
61
61
  "Access-Control-Allow-Origin": "*",
62
62
  "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS"
@@ -67,11 +67,11 @@ const webpackFinal = (config, { configType }) => {
67
67
  config.resolve.fallback = { ...config.resolve.fallback, crypto: false };
68
68
  config.resolve.extensions?.push(".svg");
69
69
  config.resolve.plugins = [
70
- ...config.resolve.plugins || [],
70
+ ...config.resolve.plugins ?? [],
71
71
  new ResolveTypeScriptPlugin({})
72
72
  ];
73
73
  }
74
- config.externals = config.externals || {};
74
+ config.externals = config.externals ?? {};
75
75
  if (config.externals) {
76
76
  config.externals["@elliemae/pui-user-monitoring"] = "emuiUserMonitoring";
77
77
  config.externals["@elliemae/pui-app-loader"] = "emuiAppLoader";
@@ -1,6 +1,6 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  service: boolean;
4
- };
4
+ }
5
5
  export declare const buildCmd: CommandModule<Record<string, never>, Arguments>;
6
6
  export {};
@@ -1,6 +1,6 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  transform: string;
4
- };
4
+ }
5
5
  export declare const codemodCmd: CommandModule<Record<string, never>, Arguments>;
6
6
  export {};
@@ -1,8 +1,9 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  css: boolean;
4
4
  js: boolean;
5
5
  fix: boolean;
6
- };
6
+ debug: boolean;
7
+ }
7
8
  export declare const lintCmd: CommandModule<Record<string, never>, Arguments>;
8
9
  export {};
@@ -1,8 +1,8 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  production: boolean;
4
4
  target: string;
5
5
  srcPath: string;
6
- };
6
+ }
7
7
  export declare const packCmd: CommandModule<Record<string, never>, Arguments>;
8
8
  export {};
@@ -1,6 +1,6 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  prod: boolean;
4
- };
4
+ }
5
5
  export declare const startCmd: CommandModule<Record<string, never>, Arguments>;
6
6
  export {};
@@ -1,8 +1,8 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  build: boolean;
4
4
  docs: boolean;
5
5
  output: string;
6
- };
6
+ }
7
7
  export declare const storybookCmd: CommandModule<Record<string, never>, Arguments>;
8
8
  export {};
@@ -1,11 +1,11 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  fix: boolean;
4
4
  watch: boolean;
5
5
  debug: boolean;
6
6
  passWithNoTests: boolean;
7
7
  findReleatedTests: boolean;
8
8
  silent: boolean;
9
- };
9
+ }
10
10
  export declare const testCmd: CommandModule<Record<string, never>, Arguments>;
11
11
  export {};
@@ -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;
@@ -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 {};
@@ -40,7 +40,14 @@ export namespace baseConfig {
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;
@@ -25,7 +25,7 @@ export namespace tsBaseConfig {
25
25
  let plugins: string[];
26
26
  namespace parserOptions {
27
27
  let tsconfigRootDir: string;
28
- let project: string;
28
+ let project: boolean;
29
29
  }
30
30
  let settings: {
31
31
  'import/resolver': {
@@ -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
  };
@@ -4,7 +4,7 @@ export namespace stylelintConfig {
4
4
  let _extends: string[];
5
5
  export { _extends as extends };
6
6
  export let rules: {
7
- 'selector-type-no-unknown': null;
8
- 'function-no-unknown': null;
7
+ "selector-type-no-unknown": null;
8
+ "function-no-unknown": null;
9
9
  };
10
10
  }
@@ -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 {};
@@ -5,6 +5,8 @@ export namespace jestConfig {
5
5
  let coverageReporters: string[];
6
6
  let moduleDirectories: string[];
7
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;
@@ -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;
@@ -1 +1 @@
1
- export declare const vitestConfig: import("vitest/dist/config").UserConfigExport;
1
+ export declare const vitestConfig: import("vite").UserConfig;