@elliemae/pui-cli 6.0.1 → 6.1.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.
@@ -34,7 +34,7 @@ async function handler(argv) {
34
34
  if (argv.css) {
35
35
  try {
36
36
  await exec('rimraf ./reports/stylelint.json');
37
- await lintCSS();
37
+ await lintCSS(argv.fix);
38
38
  logSuccess('CSS linting completed');
39
39
  } catch (err) {
40
40
  logError('CSS linting failed');
@@ -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.1",
3
+ "version": "6.1.2",
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",
@@ -66,6 +66,7 @@
66
66
  "@commitlint/cli": "~16.1.0",
67
67
  "@commitlint/config-conventional": "~16.0.0",
68
68
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.3.0",
69
+ "@faker-js/faker": "6.0.0-alpha.4",
69
70
  "@pmmmwh/react-refresh-webpack-plugin": "~0.5.4",
70
71
  "@semantic-release/changelog": "~6.0.1",
71
72
  "@semantic-release/exec": "~6.0.3",
@@ -89,11 +90,11 @@
89
90
  "@testing-library/react": "~12.1.2",
90
91
  "@testing-library/react-hooks": "~7.0.2",
91
92
  "@types/jest": "~27.4.0",
92
- "@types/node": "~17.0.10",
93
+ "@types/node": "~17.0.11",
93
94
  "@types/rimraf": "~3.0.2",
94
95
  "@types/testing-library__jest-dom": "~5.14.2",
95
- "@typescript-eslint/eslint-plugin": "~5.10.0",
96
- "@typescript-eslint/parser": "~5.10.0",
96
+ "@typescript-eslint/eslint-plugin": "~5.10.1",
97
+ "@typescript-eslint/parser": "~5.10.1",
97
98
  "autoprefixer": "~10.4.2",
98
99
  "axe-core": "~4.3.5",
99
100
  "babel-loader": "~8.2.3",
@@ -124,11 +125,11 @@
124
125
  "css-minimizer-webpack-plugin": "~3.4.1",
125
126
  "depcheck": "~1.4.3",
126
127
  "docdash": "~1.2.0",
127
- "dotenv": "~12.0.4",
128
+ "dotenv": "~14.3.0",
128
129
  "dotenv-webpack": "~7.0.3",
129
130
  "duplicate-package-checker-webpack-plugin": "~3.0.0",
130
131
  "enhanced-resolve": "~5.8.3",
131
- "esbuild": "~0.14.12",
132
+ "esbuild": "~0.14.13",
132
133
  "esbuild-loader": "~2.18.0",
133
134
  "esbuild-plugin-svgr": "~1.0.0",
134
135
  "eslint": "~8.7.0",
@@ -143,7 +144,7 @@
143
144
  "eslint-plugin-compat": "~4.0.1",
144
145
  "eslint-plugin-eslint-comments": "~3.2.0",
145
146
  "eslint-plugin-import": "~2.25.4",
146
- "eslint-plugin-jest": "~25.7.0",
147
+ "eslint-plugin-jest": "~26.0.0",
147
148
  "eslint-plugin-jsdoc": "~37.6.3",
148
149
  "eslint-plugin-jsx-a11y": "~6.5.1",
149
150
  "eslint-plugin-mdx": "~1.16.0",
@@ -160,7 +161,7 @@
160
161
  "express-static-gzip": "~2.1.1",
161
162
  "favicons": "~6.2.2",
162
163
  "favicons-webpack-plugin": "~5.0.2",
163
- "happy-dom": "~2.28.0",
164
+ "happy-dom": "~2.30.0",
164
165
  "helmet-csp": "~3.4.0",
165
166
  "html-webpack-plugin": "~5.5.0",
166
167
  "http-server": "~14.1.0",
@@ -173,17 +174,17 @@
173
174
  "jest-sonar-reporter": "~2.0.0",
174
175
  "jest-styled-components": "~7.0.8",
175
176
  "jscodeshift": "~0.13.1",
176
- "jsdoc": "~3.6.7",
177
- "lint-staged": "~12.2.2",
177
+ "jsdoc": "~3.6.10",
178
+ "lint-staged": "~12.3.1",
178
179
  "mini-css-extract-plugin": "~2.5.2",
179
180
  "minimist": "~1.2.5",
180
181
  "moment": "~2.29.1",
181
182
  "moment-locales-webpack-plugin": "~1.2.0",
182
- "msw": "~0.36.5",
183
+ "msw": "~0.36.7",
183
184
  "node-gyp": "~8.4.1",
184
185
  "node-plop": "~0.30.0",
185
186
  "nodemon": "~2.0.15",
186
- "npm-check-updates": "12.2.0",
187
+ "npm-check-updates": "12.2.1",
187
188
  "null-loader": "~4.0.1",
188
189
  "pino": "~7.6.4",
189
190
  "pino-pretty": "~7.5.0",
@@ -214,7 +215,7 @@
214
215
  "storybook-builder-vite": "~0.1.13",
215
216
  "storybook-react-router": "~1.0.8",
216
217
  "style-loader": "~3.3.1",
217
- "stylelint": "~14.2.0",
218
+ "stylelint": "~14.3.0",
218
219
  "stylelint-config-recommended": "~6.0.0",
219
220
  "stylelint-config-styled-components": "~0.1.1",
220
221
  "swc-loader": "~0.1.15",
@@ -226,10 +227,10 @@
226
227
  "url-loader": "~4.1.1",
227
228
  "uuid": "~8.3.2",
228
229
  "vite": "~2.7.13",
229
- "vitest": "~0.1.26",
230
+ "vitest": "~0.2.1",
230
231
  "webpack": "~5.65.0",
231
232
  "webpack-bundle-analyzer": "~4.5.0",
232
- "webpack-cli": "~4.9.1",
233
+ "webpack-cli": "~4.9.2",
233
234
  "webpack-dev-middleware": "~5.3.0",
234
235
  "webpack-hot-middleware": "~2.25.1",
235
236
  "webpack-manifest-plugin": "~4.1.1",