@elliemae/pui-cli 7.27.0-beta.2 → 8.0.0-next.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 (53) hide show
  1. package/dist/cjs/commands/build.js +1 -1
  2. package/dist/cjs/commands/codemod.js +1 -1
  3. package/dist/cjs/commands/gendoc.js +1 -1
  4. package/dist/cjs/commands/lint.js +1 -1
  5. package/dist/cjs/commands/pack.js +1 -1
  6. package/dist/cjs/commands/start.js +1 -1
  7. package/dist/cjs/commands/storybook.js +1 -1
  8. package/dist/cjs/commands/test.js +1 -1
  9. package/dist/cjs/commands/tscheck.js +1 -1
  10. package/dist/cjs/commands/version.js +1 -1
  11. package/dist/cjs/commands/vitest.js +1 -1
  12. package/dist/cjs/lint-config/eslint/common.cjs +88 -85
  13. package/dist/cjs/release.config.cjs +0 -7
  14. package/dist/cjs/server/appRoutes.js +5 -4
  15. package/dist/cjs/webpack/webpack.dev.babel.js +2 -2
  16. package/dist/esm/commands/build.js +1 -1
  17. package/dist/esm/commands/codemod.js +1 -1
  18. package/dist/esm/commands/gendoc.js +1 -1
  19. package/dist/esm/commands/lint.js +1 -1
  20. package/dist/esm/commands/pack.js +1 -1
  21. package/dist/esm/commands/start.js +1 -1
  22. package/dist/esm/commands/storybook.js +1 -1
  23. package/dist/esm/commands/test.js +1 -1
  24. package/dist/esm/commands/tscheck.js +1 -1
  25. package/dist/esm/commands/version.js +1 -1
  26. package/dist/esm/commands/vitest.js +1 -1
  27. package/dist/esm/lint-config/eslint/common.cjs +88 -85
  28. package/dist/esm/release.config.cjs +0 -7
  29. package/dist/esm/server/appRoutes.js +5 -4
  30. package/dist/esm/webpack/webpack.dev.babel.js +6 -3
  31. package/dist/types/commands/build.d.ts +5 -13
  32. package/dist/types/commands/codemod.d.ts +2 -9
  33. package/dist/types/commands/gendoc.d.ts +2 -7
  34. package/dist/types/commands/lint.d.ts +2 -23
  35. package/dist/types/commands/pack.d.ts +2 -23
  36. package/dist/types/commands/start.d.ts +2 -13
  37. package/dist/types/commands/storybook.d.ts +2 -22
  38. package/dist/types/commands/test.d.ts +2 -38
  39. package/dist/types/commands/tscheck.d.ts +3 -14
  40. package/dist/types/commands/version.d.ts +2 -24
  41. package/dist/types/commands/vitest.d.ts +2 -33
  42. package/dist/types/lint-config/eslint/common.d.cts +58 -55
  43. package/dist/types/lint-config/eslint/non-react.d.cts +34 -31
  44. package/dist/types/lint-config/eslint/react.d.cts +58 -55
  45. package/dist/types/lint-config/eslint/typescript/non-react.d.cts +28 -28
  46. package/dist/types/lint-config/eslint/typescript/react.d.cts +52 -52
  47. package/dist/types/release.config.d.cts +0 -2
  48. package/dist/types/server/middlewares.d.ts +3 -3
  49. package/package.json +14 -12
  50. package/dist/cjs/typescript/app.tsconfig.json +0 -23
  51. package/dist/cjs/typescript/library.tsconfig.json +0 -23
  52. package/dist/esm/typescript/app.tsconfig.json +0 -23
  53. package/dist/esm/typescript/library.tsconfig.json +0 -23
@@ -1,51 +1,51 @@
1
1
  /* eslint-disable max-lines */
2
- const prettierOptions = require('../prettier.config.cjs');
2
+ const prettierOptions = require("../prettier.config.cjs");
3
3
  // const webpackConfig = require('../../webpack/webpack.prod.babel');
4
4
 
5
5
  exports.baseExtends = [
6
- 'plugin:eslint-comments/recommended',
7
- 'plugin:import/recommended',
8
- 'plugin:prettier/recommended',
9
- 'plugin:jest/recommended',
10
- 'plugin:jsdoc/recommended',
11
- 'plugin:wdio/recommended',
12
- 'plugin:testing-library/dom',
13
- 'plugin:storybook/recommended',
6
+ "plugin:eslint-comments/recommended",
7
+ "plugin:import/recommended",
8
+ "plugin:prettier/recommended",
9
+ "plugin:jest/recommended",
10
+ "plugin:jsdoc/recommended",
11
+ "plugin:wdio/recommended",
12
+ "plugin:testing-library/dom",
13
+ "plugin:storybook/recommended",
14
14
  ];
15
15
 
16
- const basePlugins = ['testing-library', 'jest', 'jsdoc', 'wdio', 'import'];
16
+ const basePlugins = ["testing-library", "jest", "jsdoc", "wdio", "import"];
17
17
  exports.basePlugins = basePlugins;
18
18
 
19
19
  exports.baseOverrides = [
20
20
  {
21
- files: ['*.func.spec.js', '*.visual.spec.js'],
21
+ files: ["*.func.spec.js", "*.visual.spec.js"],
22
22
  rules: {
23
- 'jest/valid-expect': 'off',
23
+ "jest/valid-expect": "off",
24
24
  },
25
25
  },
26
26
  ];
27
27
 
28
28
  const baseRules = {
29
- 'prettier/prettier': ['error', prettierOptions],
30
- 'arrow-body-style': [2, 'as-needed'],
31
- 'class-methods-use-this': 0,
32
- 'import/imports-first': 0,
33
- 'import/newline-after-import': 0,
34
- 'import/no-dynamic-require': 0,
35
- 'import/no-extraneous-dependencies': 0,
36
- 'import/no-named-as-default': 0,
37
- 'import/no-unresolved': [
29
+ "prettier/prettier": ["error", prettierOptions],
30
+ "arrow-body-style": [2, "as-needed"],
31
+ "class-methods-use-this": 0,
32
+ "import/imports-first": 0,
33
+ "import/newline-after-import": 0,
34
+ "import/no-dynamic-require": 0,
35
+ "import/no-extraneous-dependencies": 0,
36
+ "import/no-named-as-default": 0,
37
+ "import/no-unresolved": [
38
38
  2,
39
39
  { caseSensitive: true, caseSensitiveStrict: true },
40
40
  ], // Tip: https://github.com/import-js/eslint-plugin-import/issues/1868
41
- 'import/no-webpack-loader-syntax': 0,
42
- 'import/prefer-default-export': 0,
43
- 'import/extensions': [
41
+ "import/no-webpack-loader-syntax": 0,
42
+ "import/prefer-default-export": 0,
43
+ "import/extensions": [
44
44
  2,
45
- 'never',
45
+ "never",
46
46
  {
47
- json: 'ignorePackages',
48
- js: 'ignorePackages',
47
+ json: "ignorePackages",
48
+ js: "ignorePackages",
49
49
  },
50
50
  ],
51
51
  indent: [
@@ -55,72 +55,72 @@ const baseRules = {
55
55
  SwitchCase: 1,
56
56
  },
57
57
  ],
58
- 'max-lines': ['error', { max: 120, skipComments: true }],
59
- complexity: ['error', { max: 10 }],
60
- 'max-depth': ['error', { max: 4 }],
61
- 'max-lines-per-function': 0,
62
- 'max-nested-callbacks': ['error', { max: 3 }],
63
- 'max-params': ['error', { max: 3 }],
64
- 'max-statements': ['error', { max: 20 }],
65
- 'max-len': 0,
66
- 'newline-per-chained-call': 0,
67
- 'no-confusing-arrow': 0,
68
- 'no-console': 1,
69
- 'no-param-reassign': ['error', { props: false }],
70
- 'no-unused-vars': 2,
71
- 'no-use-before-define': 0,
72
- 'prefer-template': 2,
73
- 'require-yield': 0,
74
- 'jsdoc/require-jsdoc': 0,
75
- 'eslint-comments/disable-enable-pair': 0,
58
+ "max-lines": ["error", { max: 120, skipComments: true }],
59
+ complexity: ["error", { max: 10 }],
60
+ "max-depth": ["error", { max: 4 }],
61
+ "max-lines-per-function": 0,
62
+ "max-nested-callbacks": ["error", { max: 3 }],
63
+ "max-params": ["error", { max: 3 }],
64
+ "max-statements": ["error", { max: 20 }],
65
+ "max-len": 0,
66
+ "newline-per-chained-call": 0,
67
+ "no-confusing-arrow": 0,
68
+ "no-console": 1,
69
+ "no-param-reassign": ["error", { props: false }],
70
+ "no-unused-vars": 2,
71
+ "no-use-before-define": 0,
72
+ "prefer-template": 2,
73
+ "require-yield": 0,
74
+ "jsdoc/require-jsdoc": 0,
75
+ "eslint-comments/disable-enable-pair": 0,
76
76
  };
77
77
 
78
78
  exports.baseRules = baseRules;
79
79
 
80
80
  const reactRules = {
81
- 'jsx-a11y/aria-props': 2,
82
- 'jsx-a11y/heading-has-content': 0,
83
- 'jsx-a11y/label-has-associated-control': [
81
+ "jsx-a11y/aria-props": 2,
82
+ "jsx-a11y/heading-has-content": 0,
83
+ "jsx-a11y/label-has-associated-control": [
84
84
  2,
85
85
  {
86
86
  // NOTE: If this error triggers, either disable it or add
87
87
  // your custom components, labels and attributes via these options
88
88
  // See https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-associated-control.md
89
- controlComponents: ['Input'],
89
+ controlComponents: ["Input"],
90
90
  },
91
91
  ],
92
- 'jsx-a11y/label-has-for': 0,
93
- 'jsx-a11y/mouse-events-have-key-events': 2,
94
- 'jsx-a11y/role-has-required-aria-props': 2,
95
- 'jsx-a11y/role-supports-aria-props': 2,
96
- 'react/destructuring-assignment': 0,
97
- 'react-hooks/rules-of-hooks': 'error',
98
- 'react/jsx-closing-tag-location': 0,
99
- 'react/forbid-prop-types': 0,
100
- 'react/jsx-first-prop-new-line': [2, 'multiline'],
101
- 'react/jsx-no-target-blank': 0,
102
- 'react/jsx-props-no-spreading': 0,
103
- 'react/jsx-uses-vars': 2,
104
- 'react/require-default-props': 0,
105
- 'react/require-extension': 0,
106
- 'react/self-closing-comp': 0,
107
- 'react/sort-comp': 0,
108
- 'react/react-in-jsx-scope': 0,
109
- 'react/jsx-filename-extension': [
92
+ "jsx-a11y/label-has-for": 0,
93
+ "jsx-a11y/mouse-events-have-key-events": 2,
94
+ "jsx-a11y/role-has-required-aria-props": 2,
95
+ "jsx-a11y/role-supports-aria-props": 2,
96
+ "react/destructuring-assignment": 0,
97
+ "react-hooks/rules-of-hooks": "error",
98
+ "react/jsx-closing-tag-location": 0,
99
+ "react/forbid-prop-types": 0,
100
+ "react/jsx-first-prop-new-line": [2, "multiline"],
101
+ "react/jsx-no-target-blank": 0,
102
+ "react/jsx-props-no-spreading": 0,
103
+ "react/jsx-uses-vars": 2,
104
+ "react/require-default-props": 0,
105
+ "react/require-extension": 0,
106
+ "react/self-closing-comp": 0,
107
+ "react/sort-comp": 0,
108
+ "react/react-in-jsx-scope": 0,
109
+ "react/jsx-filename-extension": [
110
110
  1,
111
- { extensions: ['.js', '.jsx', '.tsx', '.mdx'] },
111
+ { extensions: [".js", ".jsx", ".tsx", ".mdx"] },
112
112
  ],
113
- 'react/function-component-definition': [
113
+ "react/function-component-definition": [
114
114
  2,
115
- { namedComponents: 'arrow-function' },
115
+ { namedComponents: "arrow-function" },
116
116
  ],
117
- 'redux-saga/no-yield-in-race': 2,
118
- 'redux-saga/yield-effects': 2,
117
+ "redux-saga/no-yield-in-race": 2,
118
+ "redux-saga/yield-effects": 2,
119
119
  };
120
120
  exports.reactRules = reactRules;
121
121
 
122
122
  exports.baseConfig = {
123
- parser: '@babel/eslint-parser',
123
+ parser: "@babel/eslint-parser",
124
124
  plugins: basePlugins,
125
125
  env: {
126
126
  jest: true,
@@ -129,32 +129,35 @@ exports.baseConfig = {
129
129
  es2021: true,
130
130
  },
131
131
  parserOptions: {
132
- sourceType: 'module',
132
+ sourceType: "module",
133
133
  ecmaFeatures: {
134
134
  jsx: true,
135
135
  },
136
+ babelOptions: {
137
+ plugins: ["@babel/plugin-syntax-import-assertions"],
138
+ },
136
139
  },
137
140
  settings: {
138
141
  react: {
139
- version: 'detect',
142
+ version: "detect",
140
143
  },
141
144
  jest: {
142
145
  version: 28,
143
146
  },
144
- 'import/resolver': {
147
+ "import/resolver": {
145
148
  node: {
146
- extensions: ['.js', '.jsx', '.ts', '.tsx']
149
+ extensions: [".js", ".jsx", ".ts", ".tsx"],
147
150
  },
148
151
  },
149
152
  },
150
153
  ignorePatterns: [
151
- '/build/**/*',
152
- '/dist/**/*',
153
- '/reports/**/*',
154
- '/coverage/**/*',
155
- '/demo/**/*',
156
- '/docs/**/*',
157
- '/temp/**/*',
158
- '**/vendor/*.js',
154
+ "/build/**/*",
155
+ "/dist/**/*",
156
+ "/reports/**/*",
157
+ "/coverage/**/*",
158
+ "/demo/**/*",
159
+ "/docs/**/*",
160
+ "/temp/**/*",
161
+ "**/vendor/*.js",
159
162
  ],
160
163
  };
@@ -20,12 +20,5 @@ module.exports = {
20
20
  ],
21
21
  '@semantic-release/npm',
22
22
  '@semantic-release/github',
23
- [
24
- '@semantic-release/exec',
25
- {
26
- successCmd:
27
- 'scmutil get slack-release-notes && scmutil get contributors',
28
- },
29
- ],
30
23
  ],
31
24
  };
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- const allJS = /\.(js|ts)$/;
4
- const serviceEndpoints = /\.endpoint\.(ts|js)$/;
3
+ const allJS = /\.js$/;
4
+ const serviceEndpoints = /\.endpoint\.js$/;
5
5
  const getFilesMatching = (filePattern) => {
6
6
  const getFiles = (dir) => {
7
7
  let routeFiles = [];
@@ -28,9 +28,10 @@ const loadRoutes = async (app) => {
28
28
  routeFiles.push(...getServiceEndpoints(path.join(process.cwd(), "lib")));
29
29
  await Promise.all(
30
30
  routeFiles.map(async (routeFile) => {
31
- const init = await import(routeFile);
31
+ const { default: init } = await import(routeFile);
32
32
  try {
33
- init(app);
33
+ if (typeof init === "function")
34
+ init(app);
34
35
  } catch (err) {
35
36
  console.error(
36
37
  `unable to load routes from ${routeFile}. ${err.message}`
@@ -5,8 +5,10 @@ import HtmlWebpackPlugin from "html-webpack-plugin";
5
5
  import CircularDependencyPlugin from "circular-dependency-plugin";
6
6
  import MiniCssExtractPlugin from "mini-css-extract-plugin";
7
7
  import ReactRefreshWebpackPlugin from "@pmmmwh/react-refresh-webpack-plugin";
8
- import expressStaticGzip from "express-static-gzip";
9
- import { setupDefaultMiddlewares } from "../server/middlewares.js";
8
+ import {
9
+ setupAdditionalMiddlewars,
10
+ setupDefaultMiddlewares
11
+ } from "../server/middlewares.js";
10
12
  import { loadRoutes } from "../server/appRoutes.js";
11
13
  import {
12
14
  isAppLoaderEnabled,
@@ -115,8 +117,9 @@ const devConfig = {
115
117
  setupMiddlewares: (middlewares, devServer) => {
116
118
  if (devServer.app) {
117
119
  setupDefaultMiddlewares(devServer.app);
118
- devServer.app.use(expressStaticGzip("cdn", {}));
119
120
  loadRoutes(devServer.app).then(() => {
121
+ if (devServer.app)
122
+ setupAdditionalMiddlewars(devServer.app);
120
123
  }).catch((err) => {
121
124
  console.error(err);
122
125
  });
@@ -1,14 +1,6 @@
1
- import yargs, { Argv } from 'yargs';
2
- export declare const buildCmd: {
3
- handler: ({ service }: {
4
- service?: boolean | undefined;
5
- }) => Promise<void>;
6
- command: string;
7
- desc: string;
8
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "service"> & yargs.InferredOptionTypes<{
9
- service: {
10
- boolean: boolean;
11
- default: boolean;
12
- };
13
- }>>;
1
+ import { CommandModule } from 'yargs';
2
+ type Arguments = {
3
+ service: boolean;
14
4
  };
5
+ export declare const buildCmd: CommandModule<Record<string, never>, Arguments>;
6
+ export {};
@@ -1,13 +1,6 @@
1
- import yargs, { Argv } from 'yargs';
1
+ import { CommandModule } from 'yargs';
2
2
  type Arguments = {
3
3
  transform: string;
4
4
  };
5
- export declare const codemodCmd: {
6
- handler: (argv: Arguments) => Promise<void>;
7
- command: string;
8
- desc: string;
9
- builder: (yargsRef: Argv) => yargs.Argv<{
10
- transform: string;
11
- }>;
12
- };
5
+ export declare const codemodCmd: CommandModule<Record<string, never>, Arguments>;
13
6
  export {};
@@ -1,7 +1,2 @@
1
- import yargs, { Argv } from 'yargs';
2
- export declare const gendocCmd: {
3
- handler: () => Promise<void>;
4
- command: string;
5
- desc: string;
6
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, never> & yargs.InferredOptionTypes<{}>>;
7
- };
1
+ import { CommandModule } from 'yargs';
2
+ export declare const gendocCmd: CommandModule<Record<string, never>, Record<string, never>>;
@@ -1,29 +1,8 @@
1
- import yargs, { Argv } from 'yargs';
1
+ import { CommandModule } from 'yargs';
2
2
  type Arguments = {
3
3
  css: boolean;
4
4
  js: boolean;
5
5
  fix: boolean;
6
6
  };
7
- export declare const lintCmd: {
8
- handler: (argv: Arguments) => Promise<void>;
9
- command: string;
10
- desc: string;
11
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "css" | "js" | "fix"> & yargs.InferredOptionTypes<{
12
- css: {
13
- boolean: boolean;
14
- alias: string;
15
- default: boolean;
16
- };
17
- js: {
18
- boolean: boolean;
19
- alias: string;
20
- default: boolean;
21
- };
22
- fix: {
23
- boolean: boolean;
24
- alias: string;
25
- default: boolean;
26
- };
27
- }>>;
28
- };
7
+ export declare const lintCmd: CommandModule<Record<string, never>, Arguments>;
29
8
  export {};
@@ -1,29 +1,8 @@
1
- import yargs, { Argv } from 'yargs';
1
+ import { CommandModule } from 'yargs';
2
2
  type Arguments = {
3
3
  production: boolean;
4
4
  target: string;
5
5
  srcPath: string;
6
6
  };
7
- export declare const packCmd: {
8
- handler: (argv: Arguments) => Promise<void>;
9
- command: string;
10
- desc: string;
11
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "target" | "production" | "srcPath"> & yargs.InferredOptionTypes<{
12
- production: {
13
- boolean: boolean;
14
- alias: string;
15
- default: boolean;
16
- };
17
- target: {
18
- string: boolean;
19
- alias: string;
20
- default: string;
21
- description: string;
22
- };
23
- srcPath: {
24
- string: boolean;
25
- default: string;
26
- };
27
- }>>;
28
- };
7
+ export declare const packCmd: CommandModule<Record<string, never>, Arguments>;
29
8
  export {};
@@ -1,17 +1,6 @@
1
- import yargs, { Argv } from 'yargs';
1
+ import { CommandModule } from 'yargs';
2
2
  type Arguments = {
3
3
  prod: boolean;
4
4
  };
5
- export declare const startCmd: {
6
- handler: (argv: Arguments) => Promise<void>;
7
- command: string;
8
- desc: string;
9
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "prod"> & yargs.InferredOptionTypes<{
10
- prod: {
11
- boolean: boolean;
12
- alias: string;
13
- default: boolean;
14
- };
15
- }>>;
16
- };
5
+ export declare const startCmd: CommandModule<Record<string, never>, Arguments>;
17
6
  export {};
@@ -1,28 +1,8 @@
1
- import yargs, { Argv } from 'yargs';
1
+ import { CommandModule } from 'yargs';
2
2
  type Arguments = {
3
3
  build: boolean;
4
4
  docs: boolean;
5
5
  output: string;
6
6
  };
7
- export declare const storybookCmd: {
8
- handler: (argv: Arguments) => Promise<void>;
9
- command: string;
10
- desc: string;
11
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "build" | "docs" | "output"> & yargs.InferredOptionTypes<{
12
- build: {
13
- boolean: boolean;
14
- alias: string;
15
- default: boolean;
16
- };
17
- docs: {
18
- boolean: boolean;
19
- default: boolean;
20
- };
21
- output: {
22
- string: boolean;
23
- alias: string;
24
- default: string;
25
- };
26
- }>>;
27
- };
7
+ export declare const storybookCmd: CommandModule<Record<string, never>, Arguments>;
28
8
  export {};
@@ -1,4 +1,4 @@
1
- import yargs, { Argv } from 'yargs';
1
+ import { CommandModule } from 'yargs';
2
2
  type Arguments = {
3
3
  fix: boolean;
4
4
  watch: boolean;
@@ -7,41 +7,5 @@ type Arguments = {
7
7
  findReleatedTests: boolean;
8
8
  silent: boolean;
9
9
  };
10
- export declare const testCmd: {
11
- handler: (argv: Arguments) => Promise<void>;
12
- command: string;
13
- desc: string;
14
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "fix" | "watch" | "debug" | "passWithNoTests" | "findReleatedTests" | "silent"> & yargs.InferredOptionTypes<{
15
- fix: {
16
- boolean: boolean;
17
- alias: string;
18
- default: boolean;
19
- };
20
- watch: {
21
- boolean: boolean;
22
- alias: string;
23
- default: boolean;
24
- };
25
- debug: {
26
- boolean: boolean;
27
- alias: string;
28
- default: boolean;
29
- };
30
- passWithNoTests: {
31
- boolean: boolean;
32
- alias: string;
33
- default: boolean;
34
- };
35
- findReleatedTests: {
36
- boolean: boolean;
37
- alias: string;
38
- default: boolean;
39
- };
40
- silent: {
41
- boolean: boolean;
42
- alias: string;
43
- default: boolean;
44
- };
45
- }>>;
46
- };
10
+ export declare const testCmd: CommandModule<Record<string, never>, Arguments>;
47
11
  export {};
@@ -1,16 +1,5 @@
1
- import yargs, { Argv } from 'yargs';
2
- type Arguments = {
1
+ import { CommandModule } from 'yargs';
2
+ export type Arguments = {
3
3
  files: string[];
4
4
  };
5
- export declare const tscheckCmd: {
6
- handler: ({ files }: Arguments) => Promise<void>;
7
- command: string;
8
- desc: string;
9
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "files"> & yargs.InferredOptionTypes<{
10
- files: {
11
- array: boolean;
12
- default: never[];
13
- };
14
- }>>;
15
- };
16
- export {};
5
+ export declare const tscheckCmd: CommandModule<Record<string, never>, Arguments>;
@@ -1,31 +1,9 @@
1
- import yargs, { Argv } from 'yargs';
1
+ import { CommandModule } from 'yargs';
2
2
  type Arguments = {
3
3
  deleteTags: boolean;
4
4
  useRegistry: boolean;
5
5
  useWorkspace: boolean;
6
6
  lernaOptions?: string;
7
7
  };
8
- export declare const versionCmd: {
9
- handler: (argv: Arguments) => Promise<void>;
10
- command: string;
11
- desc: string;
12
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "deleteTags" | "useRegistry" | "useWorkspace" | "lernaOptions"> & yargs.InferredOptionTypes<{
13
- deleteTags: {
14
- boolean: boolean;
15
- default: boolean;
16
- };
17
- useRegistry: {
18
- boolean: boolean;
19
- default: boolean;
20
- };
21
- useWorkspace: {
22
- boolean: boolean;
23
- default: boolean;
24
- };
25
- lernaOptions: {
26
- string: boolean;
27
- default: string;
28
- };
29
- }>>;
30
- };
8
+ export declare const versionCmd: CommandModule<Record<string, never>, Arguments>;
31
9
  export {};
@@ -1,4 +1,4 @@
1
- import yargs, { Argv } from 'yargs';
1
+ import { CommandModule } from 'yargs';
2
2
  type Arguments = {
3
3
  fix?: boolean;
4
4
  watch?: boolean;
@@ -6,36 +6,5 @@ type Arguments = {
6
6
  findReleatedTests?: boolean;
7
7
  silent?: boolean;
8
8
  };
9
- export declare const vitestCmd: {
10
- handler: (argv: Arguments) => Promise<void>;
11
- command: string;
12
- desc: string;
13
- builder: (yargsRef: Argv) => yargs.Argv<yargs.Omit<{}, "fix" | "watch" | "passWithNoTests" | "findReleatedTests" | "silent"> & yargs.InferredOptionTypes<{
14
- fix: {
15
- boolean: boolean;
16
- alias: string;
17
- default: boolean;
18
- };
19
- watch: {
20
- boolean: boolean;
21
- alias: string;
22
- default: boolean;
23
- };
24
- passWithNoTests: {
25
- boolean: boolean;
26
- alias: string;
27
- default: boolean;
28
- };
29
- findReleatedTests: {
30
- boolean: boolean;
31
- alias: string;
32
- default: boolean;
33
- };
34
- silent: {
35
- boolean: boolean;
36
- alias: string;
37
- default: boolean;
38
- };
39
- }>>;
40
- };
9
+ export declare const vitestCmd: CommandModule<Record<string, never>, Arguments>;
41
10
  export {};