@elliemae/pui-cli 7.2.1 → 7.3.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.
@@ -27,18 +27,11 @@ __export(vitest_exports, {
27
27
  vitestCmd: () => vitestCmd
28
28
  });
29
29
  module.exports = __toCommonJS(vitest_exports);
30
- var import_node_path = __toESM(require("node:path"), 1);
31
- var import_node_url = require("node:url");
32
30
  var import_yargs = __toESM(require("yargs"), 1);
33
31
  var import_utils = require("./utils.js");
34
- const import_meta = {};
35
- const __dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
36
32
  const { CI = false } = process.env;
37
- const configPath = import_node_path.default.resolve(__dirname, "../testing/vitest.config.js");
38
33
  const test = async (commandOptions) => {
39
- await (0, import_utils.exec)(
40
- `cross-env FORCE_COLOR=true vitest --config ${configPath} ${commandOptions}`
41
- );
34
+ await (0, import_utils.exec)(`cross-env FORCE_COLOR=true vitest ${commandOptions}`);
42
35
  };
43
36
  const vitestCmd = {
44
37
  handler: async (argv) => {
package/dist/cjs/index.js CHANGED
@@ -27,7 +27,8 @@ __export(lib_exports, {
27
27
  lintStagedConfig: () => import_lint_staged_config.lintStagedConfig,
28
28
  loadRoutes: () => import_app_routes.loadRoutes,
29
29
  prettierConfig: () => import_prettier_config.prettierConfig,
30
- stylelintConfig: () => import_stylelint_config.stylelintConfig
30
+ stylelintConfig: () => import_stylelint_config.stylelintConfig,
31
+ vitestConfig: () => import_vitest_config.vitestConfig
31
32
  });
32
33
  module.exports = __toCommonJS(lib_exports);
33
34
  var import_babel_config = require("./babel.config.cjs");
@@ -37,6 +38,7 @@ var import_stylelint_config = require("./lint-config/stylelint.config.cjs");
37
38
  var import_prettier_config = require("./lint-config/prettier.config.cjs");
38
39
  var import_commitlint_config = require("./lint-config/commitlint.config.cjs");
39
40
  var import_jest_config = require("./testing/jest.config.cjs");
41
+ var import_vitest_config = require("./testing/vitest.config.js");
40
42
  var import_jest_node_config = require("./testing/jest.node.config.cjs");
41
43
  var import_lint_staged_config = require("./lint-config/lint-staged.config.js");
42
44
  var import_app_routes = require("./server/app-routes.cjs");
@@ -42,7 +42,7 @@ const setRegistryVersion = async () => {
42
42
  files.map(async (file) => {
43
43
  let pkgJSONData = await (0, import_promises.readFile)(file, "utf8");
44
44
  const pkgVersion = JSON.parse(pkgJSONData).version;
45
- pkgJSONData = pkgJSONData.replace(/workspace:\*/g, pkgVersion);
45
+ pkgJSONData = pkgJSONData.replace(/workspace:\s?\*/g, pkgVersion);
46
46
  await (0, import_promises.writeFile)(file, pkgJSONData);
47
47
  })
48
48
  );
@@ -44,10 +44,10 @@ const setWorkspaceVersion = async () => {
44
44
  const pkgVersion = JSON.parse(pkgJSONData).version;
45
45
  pkgJSONData = pkgJSONData.replace(
46
46
  new RegExp(pkgVersion, "g"),
47
- "workspace:*"
47
+ "workspace: *"
48
48
  );
49
49
  pkgJSONData = pkgJSONData.replace(
50
- /"version": "workspace:\*"/g,
50
+ /"version": "workspace:\s?\*"/g,
51
51
  `"version": "${pkgVersion}"`
52
52
  );
53
53
  await (0, import_promises.writeFile)(file, pkgJSONData);
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
25
  var vitest_config_exports = {};
26
26
  __export(vitest_config_exports, {
27
- default: () => vitest_config_default
27
+ vitestConfig: () => vitestConfig
28
28
  });
29
29
  module.exports = __toCommonJS(vitest_config_exports);
30
30
  var import_node_path = __toESM(require("node:path"), 1);
@@ -33,7 +33,7 @@ var import_config = require("vitest/config");
33
33
  var import_plugin_react = __toESM(require("@vitejs/plugin-react"), 1);
34
34
  const import_meta = {};
35
35
  const __dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
36
- var vitest_config_default = (0, import_config.defineConfig)({
36
+ const vitestConfig = (0, import_config.defineConfig)({
37
37
  plugins: [(0, import_plugin_react.default)()],
38
38
  test: {
39
39
  globals: true,
@@ -1,14 +1,8 @@
1
- import path from "node:path";
2
- import { fileURLToPath } from "node:url";
3
1
  import yargs from "yargs";
4
2
  import { exec, logError, logSuccess } from "./utils.js";
5
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
6
3
  const { CI = false } = process.env;
7
- const configPath = path.resolve(__dirname, "../testing/vitest.config.js");
8
4
  const test = async (commandOptions) => {
9
- await exec(
10
- `cross-env FORCE_COLOR=true vitest --config ${configPath} ${commandOptions}`
11
- );
5
+ await exec(`cross-env FORCE_COLOR=true vitest ${commandOptions}`);
12
6
  };
13
7
  const vitestCmd = {
14
8
  handler: async (argv) => {
package/dist/esm/index.js CHANGED
@@ -5,6 +5,7 @@ import { stylelintConfig } from "./lint-config/stylelint.config.cjs";
5
5
  import { prettierConfig } from "./lint-config/prettier.config.cjs";
6
6
  import { commitlintConfig } from "./lint-config/commitlint.config.cjs";
7
7
  import { jestConfig } from "./testing/jest.config.cjs";
8
+ import { vitestConfig } from "./testing/vitest.config.js";
8
9
  import { jestNodeConfig } from "./testing/jest.node.config.cjs";
9
10
  import { lintStagedConfig } from "./lint-config/lint-staged.config.js";
10
11
  import { loadRoutes } from "./server/app-routes.cjs";
@@ -18,5 +19,6 @@ export {
18
19
  lintStagedConfig,
19
20
  loadRoutes,
20
21
  prettierConfig,
21
- stylelintConfig
22
+ stylelintConfig,
23
+ vitestConfig
22
24
  };
@@ -13,7 +13,7 @@ const setRegistryVersion = async () => {
13
13
  files.map(async (file) => {
14
14
  let pkgJSONData = await readFile(file, "utf8");
15
15
  const pkgVersion = JSON.parse(pkgJSONData).version;
16
- pkgJSONData = pkgJSONData.replace(/workspace:\*/g, pkgVersion);
16
+ pkgJSONData = pkgJSONData.replace(/workspace:\s?\*/g, pkgVersion);
17
17
  await writeFile(file, pkgJSONData);
18
18
  })
19
19
  );
@@ -15,10 +15,10 @@ const setWorkspaceVersion = async () => {
15
15
  const pkgVersion = JSON.parse(pkgJSONData).version;
16
16
  pkgJSONData = pkgJSONData.replace(
17
17
  new RegExp(pkgVersion, "g"),
18
- "workspace:*"
18
+ "workspace: *"
19
19
  );
20
20
  pkgJSONData = pkgJSONData.replace(
21
- /"version": "workspace:\*"/g,
21
+ /"version": "workspace:\s?\*"/g,
22
22
  `"version": "${pkgVersion}"`
23
23
  );
24
24
  await writeFile(file, pkgJSONData);
@@ -3,7 +3,7 @@ import { fileURLToPath } from "node:url";
3
3
  import { defineConfig, configDefaults } from "vitest/config";
4
4
  import react from "@vitejs/plugin-react";
5
5
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
6
- var vitest_config_default = defineConfig({
6
+ const vitestConfig = defineConfig({
7
7
  plugins: [react()],
8
8
  test: {
9
9
  globals: true,
@@ -21,5 +21,5 @@ var vitest_config_default = defineConfig({
21
21
  }
22
22
  });
23
23
  export {
24
- vitest_config_default as default
24
+ vitestConfig
25
25
  };
@@ -5,6 +5,7 @@ export { stylelintConfig } from "./lint-config/stylelint.config.cjs";
5
5
  export { prettierConfig } from "./lint-config/prettier.config.cjs";
6
6
  export { commitlintConfig } from "./lint-config/commitlint.config.cjs";
7
7
  export { jestConfig } from "./testing/jest.config.cjs";
8
+ export { vitestConfig } from "./testing/vitest.config.js";
8
9
  export { jestNodeConfig } from "./testing/jest.node.config.cjs";
9
10
  export { lintStagedConfig } from "./lint-config/lint-staged.config.js";
10
11
  export { loadRoutes } from "./server/app-routes.cjs";
@@ -1,2 +1 @@
1
- import 'jest-styled-components';
2
- import '@testing-library/jest-dom/extend-expect';
1
+ export {};
@@ -1,2 +1 @@
1
- declare const _default: import("vitest/dist/config").UserConfigExport;
2
- export default _default;
1
+ export const vitestConfig: import("vitest/dist/config").UserConfigExport;
@@ -1,5 +1,5 @@
1
1
  export namespace TARGETS {
2
- const browserslist: any;
2
+ const browserslist: string[];
3
3
  const web: string;
4
4
  const node: string;
5
5
  }
@@ -7,7 +7,7 @@ export function esBuild({ srcdir, outdir, esmOnly, target, injectReactShim, skip
7
7
  srcdir: any;
8
8
  outdir?: string | undefined;
9
9
  esmOnly?: boolean | undefined;
10
- target?: any;
10
+ target?: string[] | undefined;
11
11
  injectReactShim?: boolean | undefined;
12
12
  skipNestedPackageJSON?: boolean | undefined;
13
13
  }): Promise<void>;
@@ -14,7 +14,7 @@ export function baseConfig(options: any): {
14
14
  loader: string;
15
15
  options: {
16
16
  loader: string;
17
- target: any;
17
+ target: string[];
18
18
  };
19
19
  };
20
20
  type?: undefined;
@@ -16,7 +16,7 @@ export function baseConfig(options: any): {
16
16
  loader: string;
17
17
  options: {
18
18
  loader: string;
19
- target: any;
19
+ target: string[];
20
20
  };
21
21
  };
22
22
  type?: undefined;
@@ -16,7 +16,7 @@ declare const _default: {
16
16
  loader: string;
17
17
  options: {
18
18
  loader: string;
19
- target: any;
19
+ target: string[];
20
20
  };
21
21
  };
22
22
  type?: undefined;
@@ -16,7 +16,7 @@ declare const _default: {
16
16
  loader: string;
17
17
  options: {
18
18
  loader: string;
19
- target: any;
19
+ target: string[];
20
20
  };
21
21
  };
22
22
  type?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "7.2.1",
3
+ "version": "7.3.2",
4
4
  "description": "ICE MT UI Platform CLI",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -39,18 +39,18 @@
39
39
  "author": "ICE MT",
40
40
  "license": "MIT",
41
41
  "scripts": {
42
- "build": "ts-node -r tsconfig-paths/register ./lib/cli pack -p -t node",
43
- "build:dev": "ts-node -r tsconfig-paths/register ./lib/cli pack -t node",
44
- "gendoc": "ts-node -r tsconfig-paths/register ./lib/cli gendoc",
42
+ "build": "node ./lib/cli pack -p -t node",
43
+ "build:dev": "node ./lib/cli pack -t node",
44
+ "gendoc": "node ./lib/cli gendoc",
45
45
  "lint": "node ./lib/cli lint",
46
- "lint:fix": "ts-node -r tsconfig-paths/register ./lib/cli lint --fix",
46
+ "lint:fix": "node ./lib/cli lint --fix",
47
47
  "prettify": "prettier --write",
48
48
  "release": "semantic-release",
49
49
  "storybook:build": "exit 0",
50
50
  "storybook:docs:build": "exit 0",
51
- "test": "ts-node -r tsconfig-paths/register ./lib/cli test -p",
51
+ "test": "node ./lib/cli test -p",
52
52
  "test:staged": "jest --coverage --passWithNoTests --bail --findRelatedTests",
53
- "tscheck": "ts-node -r tsconfig-paths/register ./lib/cli tscheck --files",
53
+ "tscheck": "node ./lib/cli tscheck --files",
54
54
  "setup": "rimraf node_modules && rimraf pnpm-lock.yaml && pnpm i",
55
55
  "upgrade": "ncu -u && npm run setup",
56
56
  "prepare": "[ -n \"$CI\" ] || husky install"
@@ -62,9 +62,9 @@
62
62
  "sonar56x": true
63
63
  },
64
64
  "dependencies": {
65
- "@axe-core/react": "~4.4.3",
65
+ "@axe-core/react": "~4.4.4",
66
66
  "@babel/cli": "~7.18.10",
67
- "@babel/core": "~7.18.10",
67
+ "@babel/core": "~7.18.13",
68
68
  "@babel/eslint-parser": "~7.18.9",
69
69
  "@babel/node": "~7.18.10",
70
70
  "@babel/plugin-proposal-class-properties": "~7.18.6",
@@ -79,13 +79,13 @@
79
79
  "@babel/preset-react": "~7.18.6",
80
80
  "@babel/preset-typescript": "~7.18.6",
81
81
  "@babel/runtime": "~7.18.9",
82
- "@commitlint/cli": "~17.0.3",
83
- "@commitlint/config-conventional": "~17.0.3",
82
+ "@commitlint/cli": "~17.1.2",
83
+ "@commitlint/config-conventional": "~17.1.0",
84
84
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.5.0",
85
85
  "@faker-js/faker": "7.4.0",
86
- "@nrwl/cli": "14.5.8",
87
- "@nrwl/tao": "14.5.8",
88
- "@nrwl/workspace": "14.5.8",
86
+ "@nrwl/cli": "14.5.10",
87
+ "@nrwl/tao": "14.5.10",
88
+ "@nrwl/workspace": "14.5.10",
89
89
  "@pmmmwh/react-refresh-webpack-plugin": "~0.5.7",
90
90
  "@semantic-release/changelog": "~6.0.1",
91
91
  "@semantic-release/exec": "~6.0.3",
@@ -104,19 +104,20 @@
104
104
  "@stylelint/postcss-css-in-js": "~0.38.0",
105
105
  "@svgr/webpack": "~6.3.1",
106
106
  "@swc/cli": "~0.1.57",
107
- "@swc/core": "~1.2.241",
107
+ "@swc/core": "~1.2.244",
108
108
  "@swc/jest": "~0.2.22",
109
109
  "@testing-library/jest-dom": "~5.16.5",
110
110
  "@testing-library/react": "~13.3.0",
111
111
  "@testing-library/react-hooks": "~8.0.1",
112
112
  "@testing-library/user-event": "~14.4.3",
113
- "@types/jest": "~28.1.7",
114
- "@types/node": "~18.7.8",
113
+ "@types/jest": "~28.1.8",
114
+ "@types/node": "~18.7.13",
115
115
  "@types/rimraf": "~3.0.2",
116
116
  "@types/testing-library__jest-dom": "~5.14.5",
117
- "@typescript-eslint/eslint-plugin": "~5.33.1",
118
- "@typescript-eslint/parser": "~5.33.1",
117
+ "@typescript-eslint/eslint-plugin": "~5.35.1",
118
+ "@typescript-eslint/parser": "~5.35.1",
119
119
  "@vitejs/plugin-react": "~2.0.1",
120
+ "@vitest/coverage-c8": "~0.22.1",
120
121
  "autoprefixer": "~10.4.8",
121
122
  "axe-core": "~4.4.3",
122
123
  "babel-plugin-date-fns": "~2.0.0",
@@ -131,7 +132,7 @@
131
132
  "babel-plugin-transform-strip-block": "~0.0.5",
132
133
  "body-parser": "~1.20.0",
133
134
  "browserslist": "~4.21.3",
134
- "browserslist-to-esbuild": "~1.1.1",
135
+ "browserslist-to-esbuild": "~1.2.0",
135
136
  "chalk": "~5.0.1",
136
137
  "circular-dependency-plugin": "~5.2.2",
137
138
  "compression": "~1.7.4",
@@ -150,24 +151,24 @@
150
151
  "esbuild": "~0.15.5",
151
152
  "esbuild-loader": "~2.19.0",
152
153
  "esbuild-plugin-svgr": "~1.0.1",
153
- "eslint": "~8.22.0",
154
+ "eslint": "~8.23.0",
154
155
  "eslint-config-airbnb": "~19.0.4",
155
156
  "eslint-config-airbnb-base": "~15.0.0",
156
157
  "eslint-config-airbnb-typescript": "~17.0.0",
157
158
  "eslint-config-prettier": "~8.5.0",
158
159
  "eslint-config-react-app": "~7.0.1",
159
160
  "eslint-import-resolver-babel-module": "~5.3.1",
160
- "eslint-import-resolver-typescript": "~3.4.2",
161
+ "eslint-import-resolver-typescript": "~3.5.0",
161
162
  "eslint-import-resolver-webpack": "~0.13.2",
162
163
  "eslint-plugin-compat": "~4.0.2",
163
164
  "eslint-plugin-eslint-comments": "~3.2.0",
164
165
  "eslint-plugin-import": "~2.26.0",
165
- "eslint-plugin-jest": "~26.8.4",
166
+ "eslint-plugin-jest": "~26.8.7",
166
167
  "eslint-plugin-jsdoc": "~39.3.6",
167
168
  "eslint-plugin-jsx-a11y": "~6.6.1",
168
169
  "eslint-plugin-mdx": "~2.0.2",
169
170
  "eslint-plugin-prettier": "~4.2.1",
170
- "eslint-plugin-react": "~7.30.1",
171
+ "eslint-plugin-react": "~7.31.1",
171
172
  "eslint-plugin-react-hooks": "~4.6.0",
172
173
  "eslint-plugin-redux-saga": "~1.3.2",
173
174
  "eslint-plugin-storybook": "~0.6.4",
@@ -196,7 +197,7 @@
196
197
  "jest-environment-jsdom": "~28.1.3",
197
198
  "jest-sonar-reporter": "~2.0.0",
198
199
  "jest-styled-components": "~7.1.0",
199
- "jest-watch-typeahead": "~2.0.0",
200
+ "jest-watch-typeahead": "~2.1.1",
200
201
  "jscodeshift": "~0.13.1",
201
202
  "jsdoc": "~3.6.11",
202
203
  "lerna": "~5.4.3",
@@ -205,14 +206,14 @@
205
206
  "minimist": "~1.2.6",
206
207
  "moment": "~2.29.4",
207
208
  "moment-locales-webpack-plugin": "~1.2.0",
208
- "msw": "~0.44.2",
209
+ "msw": "~0.45.0",
209
210
  "node-gyp": "~9.1.0",
210
211
  "node-plop": "~0.31.0",
211
212
  "nodemon": "~2.0.19",
212
213
  "normalize-path": "~3.0.0",
213
- "npm-check-updates": "16.0.5",
214
+ "npm-check-updates": "16.0.6",
214
215
  "pino": "~8.4.2",
215
- "pino-pretty": "~9.0.1",
216
+ "pino-pretty": "~9.1.0",
216
217
  "plop": "~3.1.1",
217
218
  "postcss": "~8.4.16",
218
219
  "postcss-html": "~1.5.0",
@@ -231,21 +232,21 @@
231
232
  "resize-observer-polyfill": "~1.5.1",
232
233
  "resolve-typescript-plugin": "~1.2.0",
233
234
  "rimraf": "~3.0.2",
234
- "semantic-release": "~19.0.3",
235
+ "semantic-release": "~19.0.5",
235
236
  "slackify-markdown": "~4.3.1",
236
237
  "speed-measure-webpack-plugin": "~1.5.0",
237
238
  "storybook-addon-turbo-build": "~1.1.0",
238
239
  "storybook-builder-vite": "~0.1.23",
239
240
  "storybook-react-router": "~1.0.8",
240
241
  "style-loader": "~3.3.1",
241
- "stylelint": "~14.10.0",
242
+ "stylelint": "~14.11.0",
242
243
  "stylelint-config-recommended": "~9.0.0",
243
244
  "stylelint-config-styled-components": "~0.1.1",
244
245
  "swc-loader": "~0.2.3",
245
246
  "ts-node": "~10.9.1",
246
247
  "tsc-alias": "~1.7.0",
247
- "typedoc": "~0.23.10",
248
- "typescript": "~4.7.4",
248
+ "typedoc": "~0.23.11",
249
+ "typescript": "~4.8.2",
249
250
  "update-notifier": "~6.0.2",
250
251
  "url-loader": "~4.1.1",
251
252
  "uuid": "~8.3.2",
@@ -253,9 +254,9 @@
253
254
  "vitest": "~0.22.1",
254
255
  "vite-tsconfig-paths": "~3.5.0",
255
256
  "webpack": "~5.74.0",
256
- "webpack-bundle-analyzer": "~4.6.0",
257
+ "webpack-bundle-analyzer": "~4.6.1",
257
258
  "webpack-cli": "~4.10.0",
258
- "webpack-dev-server": "~4.10.0",
259
+ "webpack-dev-server": "~4.10.1",
259
260
  "webpack-manifest-plugin": "~5.0.0",
260
261
  "webpack-merge": "~5.8.0",
261
262
  "whatwg-fetch": "~3.6.2",