@elliemae/pui-cli 6.0.0 → 6.1.1

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/lib/index.js CHANGED
@@ -4,7 +4,7 @@ const { esReactConfig } = require('./lint/eslint/react');
4
4
  const stylelintConfig = require('./lint/stylelint.config');
5
5
  const prettierConfig = require('./lint/prettier.config');
6
6
  const commitlintConfig = require('./lint/commitlint.config');
7
- const jestConfig = require('./testing/jest.config');
7
+ const { jestConfig } = require('./testing/jest.config');
8
8
  const { jestNodeConfig } = require('./testing/jest.node.config');
9
9
  const jsdocConfig = require('./docgen/jsdoc.config');
10
10
  const lintStagedConfig = require('./lint/lint-staged.config');
@@ -99,4 +99,5 @@ if (isReactModule && jestConfig.setupFilesAfterEnv)
99
99
  jestConfig.setupFilesAfterEnv.push(
100
100
  `${getRootDir()}/lib/testing/setup-react-env.js`,
101
101
  );
102
- module.exports = jestConfig;
102
+
103
+ exports.jestConfig = jestConfig;
@@ -1,6 +1,8 @@
1
- const jestConfig = require('./jest.config');
2
- jestConfig.testEnvironment = 'node';
3
- jestConfig.transformIgnorePatterns = [];
4
- jestConfig.setupFiles = [];
5
- jestConfig.setupFilesAfterEnv = [];
6
- exports.jestNodeConfig = jestConfig;
1
+ const { jestConfig } = require('./jest.config');
2
+ exports.jestNodeConfig = {
3
+ ...jestConfig,
4
+ testEnvironment: 'node',
5
+ transformIgnorePatterns: [],
6
+ setupFiles: [],
7
+ setupFilesAfterEnv: [],
8
+ };
@@ -1,6 +1,6 @@
1
1
  const { build } = require('esbuild');
2
2
  const fg = require('fast-glob');
3
- const { writeFile, copyFile, readFile } = require('fs/promises');
3
+ const { writeFile, copyFile, readFile, mkdir } = require('fs/promises');
4
4
  const path = require('path');
5
5
  const browserslistToEsbuild = require('browserslist-to-esbuild');
6
6
 
@@ -34,10 +34,14 @@ const copyFiles = async ({ srcdir, outdir }) => {
34
34
  `${srcdir}/**/*.*`,
35
35
  `!${srcdir}/**/*.{js,jsx,ts,tsx,cjs,mjs}`,
36
36
  ]);
37
- files.forEach(async (srcFilePath) => {
38
- const destFilePath = srcFilePath.replace(srcdir, outdir);
39
- await copyFile(srcFilePath, destFilePath);
40
- });
37
+ await Promise.all(
38
+ files.map(async (srcFilePath) => {
39
+ const destFilePath = srcFilePath.replace(srcdir, outdir);
40
+ const fileDir = path.dirname(destFilePath);
41
+ await mkdir(fileDir, { recursive: true });
42
+ await copyFile(srcFilePath, destFilePath);
43
+ }),
44
+ );
41
45
  };
42
46
 
43
47
  const getSideEffects = async () => {
@@ -69,6 +73,7 @@ exports.esBuild = async ({
69
73
  }) => {
70
74
  const inputFiles = [
71
75
  `${srcdir}/**/*.{js,jsx,ts,tsx}`,
76
+ `!${srcdir}/**/*.d.ts`,
72
77
  `!${srcdir}/**/*.test.{js,jsx,ts,tsx}`,
73
78
  `!${srcdir}/**/*.stories.{js,jsx,ts,tsx}`,
74
79
  `!${srcdir}/**/*.endpoint.{js,jsx,ts,tsx}`,
@@ -107,4 +112,5 @@ exports.esBuild = async ({
107
112
  if (!skipNestedPackageJSON)
108
113
  await createPackageJson({ outdir: esmOutdir, type: NODE_MODULE_TYPES.ESM });
109
114
  };
115
+
110
116
  exports.TARGETS = TARGETS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "6.0.0",
3
+ "version": "6.1.1",
4
4
  "private": false,
5
5
  "description": "ICE MT UI Platform CLI",
6
6
  "sideEffects": false,
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@babel/cli": "~7.16.8",
51
- "@babel/core": "~7.16.10",
51
+ "@babel/core": "~7.16.12",
52
52
  "@babel/eslint-parser": "~7.16.5",
53
53
  "@babel/node": "~7.16.8",
54
54
  "@babel/plugin-proposal-class-properties": "~7.16.7",
@@ -92,8 +92,8 @@
92
92
  "@types/node": "~17.0.10",
93
93
  "@types/rimraf": "~3.0.2",
94
94
  "@types/testing-library__jest-dom": "~5.14.2",
95
- "@typescript-eslint/eslint-plugin": "~5.10.0",
96
- "@typescript-eslint/parser": "~5.10.0",
95
+ "@typescript-eslint/eslint-plugin": "~5.10.1",
96
+ "@typescript-eslint/parser": "~5.10.1",
97
97
  "autoprefixer": "~10.4.2",
98
98
  "axe-core": "~4.3.5",
99
99
  "babel-loader": "~8.2.3",
@@ -128,7 +128,7 @@
128
128
  "dotenv-webpack": "~7.0.3",
129
129
  "duplicate-package-checker-webpack-plugin": "~3.0.0",
130
130
  "enhanced-resolve": "~5.8.3",
131
- "esbuild": "~0.14.12",
131
+ "esbuild": "~0.14.13",
132
132
  "esbuild-loader": "~2.18.0",
133
133
  "esbuild-plugin-svgr": "~1.0.0",
134
134
  "eslint": "~8.7.0",
@@ -143,8 +143,8 @@
143
143
  "eslint-plugin-compat": "~4.0.1",
144
144
  "eslint-plugin-eslint-comments": "~3.2.0",
145
145
  "eslint-plugin-import": "~2.25.4",
146
- "eslint-plugin-jest": "~25.7.0",
147
- "eslint-plugin-jsdoc": "~37.6.2",
146
+ "eslint-plugin-jest": "~26.0.0",
147
+ "eslint-plugin-jsdoc": "~37.6.3",
148
148
  "eslint-plugin-jsx-a11y": "~6.5.1",
149
149
  "eslint-plugin-mdx": "~1.16.0",
150
150
  "eslint-plugin-prettier": "~4.0.0",
@@ -152,7 +152,7 @@
152
152
  "eslint-plugin-react-hooks": "~4.3.0",
153
153
  "eslint-plugin-redux-saga": "~1.3.2",
154
154
  "eslint-plugin-storybook": "~0.5.6",
155
- "eslint-plugin-testing-library": "~5.0.3",
155
+ "eslint-plugin-testing-library": "~5.0.4",
156
156
  "eslint-plugin-wdio": "~7.4.2",
157
157
  "execa": "~5.1.1",
158
158
  "express": "~4.17.2",
@@ -173,17 +173,17 @@
173
173
  "jest-sonar-reporter": "~2.0.0",
174
174
  "jest-styled-components": "~7.0.8",
175
175
  "jscodeshift": "~0.13.1",
176
- "jsdoc": "~3.6.7",
177
- "lint-staged": "~12.2.2",
176
+ "jsdoc": "~3.6.9",
177
+ "lint-staged": "~12.3.1",
178
178
  "mini-css-extract-plugin": "~2.5.2",
179
179
  "minimist": "~1.2.5",
180
180
  "moment": "~2.29.1",
181
181
  "moment-locales-webpack-plugin": "~1.2.0",
182
- "msw": "~0.36.5",
182
+ "msw": "~0.36.7",
183
183
  "node-gyp": "~8.4.1",
184
184
  "node-plop": "~0.30.0",
185
185
  "nodemon": "~2.0.15",
186
- "npm-check-updates": "12.2.0",
186
+ "npm-check-updates": "12.2.1",
187
187
  "null-loader": "~4.0.1",
188
188
  "pino": "~7.6.4",
189
189
  "pino-pretty": "~7.5.0",
@@ -214,7 +214,7 @@
214
214
  "storybook-builder-vite": "~0.1.13",
215
215
  "storybook-react-router": "~1.0.8",
216
216
  "style-loader": "~3.3.1",
217
- "stylelint": "~14.2.0",
217
+ "stylelint": "~14.3.0",
218
218
  "stylelint-config-recommended": "~6.0.0",
219
219
  "stylelint-config-styled-components": "~0.1.1",
220
220
  "swc-loader": "~0.1.15",
@@ -226,10 +226,10 @@
226
226
  "url-loader": "~4.1.1",
227
227
  "uuid": "~8.3.2",
228
228
  "vite": "~2.7.13",
229
- "vitest": "~0.1.26",
229
+ "vitest": "~0.2.1",
230
230
  "webpack": "~5.65.0",
231
231
  "webpack-bundle-analyzer": "~4.5.0",
232
- "webpack-cli": "~4.9.1",
232
+ "webpack-cli": "~4.9.2",
233
233
  "webpack-dev-middleware": "~5.3.0",
234
234
  "webpack-hot-middleware": "~2.25.1",
235
235
  "webpack-manifest-plugin": "~4.1.1",