@elliemae/pui-cli 7.3.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.
- package/dist/cjs/commands/vitest.js +1 -8
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/testing/vitest.config.js +2 -2
- package/dist/esm/commands/vitest.js +1 -7
- package/dist/esm/index.js +3 -1
- package/dist/esm/testing/vitest.config.js +2 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/testing/setup-test-env.d.ts +1 -2
- package/dist/types/testing/vitest.config.d.ts +1 -2
- package/dist/types/transpile/esbuild.d.ts +2 -2
- package/dist/types/webpack/webpack.base.babel.d.ts +1 -1
- package/dist/types/webpack/webpack.lib.base.babel.d.ts +1 -1
- package/dist/types/webpack/webpack.lib.dev.babel.d.ts +1 -1
- package/dist/types/webpack/webpack.lib.prod.babel.d.ts +1 -1
- package/package.json +19 -18
|
@@ -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");
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
};
|
|
@@ -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
|
-
|
|
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
|
-
|
|
24
|
+
vitestConfig
|
|
25
25
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
2
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
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:
|
|
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?:
|
|
10
|
+
target?: string[] | undefined;
|
|
11
11
|
injectReactShim?: boolean | undefined;
|
|
12
12
|
skipNestedPackageJSON?: boolean | undefined;
|
|
13
13
|
}): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "7.3.
|
|
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": "
|
|
43
|
-
"build:dev": "
|
|
44
|
-
"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": "
|
|
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": "
|
|
51
|
+
"test": "node ./lib/cli test -p",
|
|
52
52
|
"test:staged": "jest --coverage --passWithNoTests --bail --findRelatedTests",
|
|
53
|
-
"tscheck": "
|
|
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,7 +62,7 @@
|
|
|
62
62
|
"sonar56x": true
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@axe-core/react": "~4.4.
|
|
65
|
+
"@axe-core/react": "~4.4.4",
|
|
66
66
|
"@babel/cli": "~7.18.10",
|
|
67
67
|
"@babel/core": "~7.18.13",
|
|
68
68
|
"@babel/eslint-parser": "~7.18.9",
|
|
@@ -79,8 +79,8 @@
|
|
|
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.
|
|
83
|
-
"@commitlint/config-conventional": "~17.0
|
|
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
86
|
"@nrwl/cli": "14.5.10",
|
|
@@ -104,7 +104,7 @@
|
|
|
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.
|
|
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",
|
|
@@ -117,6 +117,7 @@
|
|
|
117
117
|
"@typescript-eslint/eslint-plugin": "~5.35.1",
|
|
118
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.
|
|
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,7 +151,7 @@
|
|
|
150
151
|
"esbuild": "~0.15.5",
|
|
151
152
|
"esbuild-loader": "~2.19.0",
|
|
152
153
|
"esbuild-plugin-svgr": "~1.0.1",
|
|
153
|
-
"eslint": "~8.
|
|
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",
|
|
@@ -167,7 +168,7 @@
|
|
|
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.31.
|
|
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",
|
|
@@ -210,7 +211,7 @@
|
|
|
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.
|
|
214
|
+
"npm-check-updates": "16.0.6",
|
|
214
215
|
"pino": "~8.4.2",
|
|
215
216
|
"pino-pretty": "~9.1.0",
|
|
216
217
|
"plop": "~3.1.1",
|
|
@@ -244,8 +245,8 @@
|
|
|
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.
|
|
248
|
-
"typescript": "~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",
|
|
@@ -255,7 +256,7 @@
|
|
|
255
256
|
"webpack": "~5.74.0",
|
|
256
257
|
"webpack-bundle-analyzer": "~4.6.1",
|
|
257
258
|
"webpack-cli": "~4.10.0",
|
|
258
|
-
"webpack-dev-server": "~4.10.
|
|
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",
|