@elliemae/pui-cli 9.0.0-next.2 → 9.0.0-next.4

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.
@@ -33,7 +33,7 @@ __export(pui_config_exports, {
33
33
  module.exports = __toCommonJS(pui_config_exports);
34
34
  var import_node_path = __toESM(require("node:path"), 1);
35
35
  var import_node_fs = __toESM(require("node:fs"), 1);
36
- var import_lodash = require("lodash");
36
+ var import_merge = __toESM(require("lodash/merge"), 1);
37
37
  const baseConfig = {
38
38
  esBuild: {
39
39
  target: "es2020"
@@ -44,5 +44,5 @@ const getPUIConfig = () => {
44
44
  if (!import_node_fs.default.existsSync(configPath))
45
45
  return baseConfig;
46
46
  const config = JSON.parse(import_node_fs.default.readFileSync(configPath, "utf8"));
47
- return (0, import_lodash.merge)(baseConfig, config);
47
+ return (0, import_merge.default)(baseConfig, config);
48
48
  };
@@ -38,6 +38,7 @@ var import_fast_glob = __toESM(require("fast-glob"), 1);
38
38
  var import_esbuild = require("esbuild");
39
39
  var import_promises = require("node:fs/promises");
40
40
  var import_browserslist_to_esbuild = __toESM(require("browserslist-to-esbuild"), 1);
41
+ var import_esbuild_plugin_lodash = __toESM(require("esbuild-plugin-lodash"), 1);
41
42
  const import_meta = {};
42
43
  const __dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
43
44
  const TARGETS = {
@@ -116,7 +117,8 @@ const esBuild = async ({
116
117
  ...getCommonConfig({ injectReactShim }),
117
118
  outdir: cjsOutdir,
118
119
  format: ESBUILD_FORMAT.CJS,
119
- target
120
+ target,
121
+ plugins: [(0, import_esbuild_plugin_lodash.default)()]
120
122
  });
121
123
  await copyFiles({ srcdir, outdir: cjsOutdir });
122
124
  await createPackageJson({ outdir: cjsOutdir, type: NODE_MODULE_TYPES.CJS });
@@ -290,7 +290,26 @@ const baseConfig = (options) => ({
290
290
  externals: {
291
291
  "@elliemae/pui-user-monitoring": "emuiUserMonitoring",
292
292
  "@elliemae/pui-app-loader": "emuiAppLoader",
293
- "@elliemae/pui-diagnostics": "emuiDiagnostics"
293
+ "@elliemae/pui-diagnostics": "emuiDiagnostics",
294
+ react: "emuiAppReactDependencies.react",
295
+ "react-dom": "emuiAppReactDependencies.reactDOM",
296
+ "@reduxjs/toolkit": "emuiAppReactDependencies.rtk",
297
+ axios: "emuiAppReactDependencies.axios.default",
298
+ dompurify: "emuiAppReactDependencies.dompurify",
299
+ history: "emuiAppReactDependencies.history",
300
+ immer: "emuiAppReactDependencies.immer",
301
+ invariant: "emuiAppReactDependencies.invariant",
302
+ "pubsub-js": "emuiAppReactDependencies.pubsubjs",
303
+ "react-aria-live": "emuiAppReactDependencies.reactAriaLive",
304
+ "react-helmet": "emuiAppReactDependencies.reactHelmet",
305
+ "react-hook-form": "emuiAppReactDependencies.reactHookForm",
306
+ "react-redux": "emuiAppReactDependencies.reactRedux",
307
+ "react-router-dom": "emuiAppReactDependencies.reactRouterDOM",
308
+ reduxInjectors: "emuiAppReactDependencies.reduxInjectors",
309
+ reselect: "emuiAppReactDependencies.reselect",
310
+ // "styled-components": "emuiAppReactDependencies.styledComponents",
311
+ "styled-system": "emuiAppReactDependencies.styledSystem"
312
+ // "@xstyled/styled-components": "emuiAppReactDependencies.xstyled",
294
313
  },
295
314
  devtool: options.devtool || "eval-source-map",
296
315
  performance: options.performance || {},
@@ -4,6 +4,7 @@ import fg from "fast-glob";
4
4
  import { build } from "esbuild";
5
5
  import { writeFile, copyFile, readFile, mkdir } from "node:fs/promises";
6
6
  import browserslistToEsbuild from "browserslist-to-esbuild";
7
+ import lodashTransformer from "esbuild-plugin-lodash";
7
8
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
8
9
  const TARGETS = {
9
10
  browserslist: browserslistToEsbuild(),
@@ -81,7 +82,8 @@ const esBuild = async ({
81
82
  ...getCommonConfig({ injectReactShim }),
82
83
  outdir: cjsOutdir,
83
84
  format: ESBUILD_FORMAT.CJS,
84
- target
85
+ target,
86
+ plugins: [lodashTransformer()]
85
87
  });
86
88
  await copyFiles({ srcdir, outdir: cjsOutdir });
87
89
  await createPackageJson({ outdir: cjsOutdir, type: NODE_MODULE_TYPES.CJS });
@@ -263,7 +263,26 @@ const baseConfig = (options) => ({
263
263
  externals: {
264
264
  "@elliemae/pui-user-monitoring": "emuiUserMonitoring",
265
265
  "@elliemae/pui-app-loader": "emuiAppLoader",
266
- "@elliemae/pui-diagnostics": "emuiDiagnostics"
266
+ "@elliemae/pui-diagnostics": "emuiDiagnostics",
267
+ react: "emuiAppReactDependencies.react",
268
+ "react-dom": "emuiAppReactDependencies.reactDOM",
269
+ "@reduxjs/toolkit": "emuiAppReactDependencies.rtk",
270
+ axios: "emuiAppReactDependencies.axios.default",
271
+ dompurify: "emuiAppReactDependencies.dompurify",
272
+ history: "emuiAppReactDependencies.history",
273
+ immer: "emuiAppReactDependencies.immer",
274
+ invariant: "emuiAppReactDependencies.invariant",
275
+ "pubsub-js": "emuiAppReactDependencies.pubsubjs",
276
+ "react-aria-live": "emuiAppReactDependencies.reactAriaLive",
277
+ "react-helmet": "emuiAppReactDependencies.reactHelmet",
278
+ "react-hook-form": "emuiAppReactDependencies.reactHookForm",
279
+ "react-redux": "emuiAppReactDependencies.reactRedux",
280
+ "react-router-dom": "emuiAppReactDependencies.reactRouterDOM",
281
+ reduxInjectors: "emuiAppReactDependencies.reduxInjectors",
282
+ reselect: "emuiAppReactDependencies.reselect",
283
+ // "styled-components": "emuiAppReactDependencies.styledComponents",
284
+ "styled-system": "emuiAppReactDependencies.styledSystem"
285
+ // "@xstyled/styled-components": "emuiAppReactDependencies.xstyled",
267
286
  },
268
287
  devtool: options.devtool || "eval-source-map",
269
288
  performance: options.performance || {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "9.0.0-next.2",
3
+ "version": "9.0.0-next.4",
4
4
  "description": "ICE MT UI Platform CLI",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -93,28 +93,30 @@
93
93
  "@babel/preset-react": "~7.18.6",
94
94
  "@babel/preset-typescript": "~7.21.5",
95
95
  "@babel/runtime": "~7.21.5",
96
- "@commitlint/cli": "~17.6.1",
97
- "@commitlint/config-conventional": "~17.6.1",
96
+ "@commitlint/cli": "~17.6.3",
97
+ "@commitlint/config-conventional": "~17.6.3",
98
98
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.7.0",
99
99
  "@faker-js/faker": "7.6.0",
100
100
  "@nrwl/cli": "15.9.3",
101
- "@nrwl/tao": "16.0.2",
102
- "@nrwl/workspace": "16.0.2",
101
+ "@nrwl/tao": "16.1.0",
102
+ "@nrwl/workspace": "16.1.0",
103
103
  "@pmmmwh/react-refresh-webpack-plugin": "~0.5.10",
104
104
  "@semantic-release/changelog": "~6.0.3",
105
105
  "@semantic-release/exec": "~6.0.3",
106
106
  "@semantic-release/git": "~10.0.1",
107
- "@storybook/addon-a11y": "~6.5.16",
108
- "@storybook/addon-essentials": "~6.5.16",
107
+ "@storybook/addon-a11y": "~7.0.9",
108
+ "@storybook/addon-essentials": "~7.0.9",
109
109
  "@storybook/addon-events": "~6.2.9",
110
- "@storybook/addon-interactions": "~6.5.16",
111
- "@storybook/addon-links": "~6.5.16",
112
- "@storybook/addon-storysource": "~6.5.16",
113
- "@storybook/builder-vite": "~0.4.2",
114
- "@storybook/builder-webpack5": "~6.5.16",
110
+ "@storybook/addon-interactions": "~7.0.9",
111
+ "@storybook/addon-links": "~7.0.9",
112
+ "@storybook/addon-storysource": "~7.0.9",
113
+ "@storybook/blocks": "~7.0.9",
114
+ "@storybook/builder-vite": "~7.0.9",
115
+ "@storybook/builder-webpack5": "~7.0.9",
115
116
  "@storybook/manager-webpack5": "~6.5.16",
116
- "@storybook/react": "~6.5.16",
117
- "@storybook/theming": "~6.5.16",
117
+ "@storybook/react": "~7.0.9",
118
+ "@storybook/react-webpack5": "~7.0.9",
119
+ "@storybook/theming": "~7.0.9",
118
120
  "@stylelint/postcss-css-in-js": "~0.38.0",
119
121
  "@svgr/webpack": "~7.0.0",
120
122
  "@swc/cli": "~0.1.62",
@@ -132,10 +134,10 @@
132
134
  "@types/jest": "~29.5.1",
133
135
  "@types/jest-axe": "~3.5.5",
134
136
  "@types/moment-locales-webpack-plugin": "~1.2.3",
135
- "@types/node": "~18.16.3",
137
+ "@types/node": "~20.0.0",
136
138
  "@types/normalize-path": "~3.0.0",
137
- "@types/postcss-preset-env": "~7.7.0",
138
- "@types/rimraf": "~3.0.2",
139
+ "@types/postcss-preset-env": "~8.0.0",
140
+ "@types/rimraf": "~4.0.5",
139
141
  "@types/speed-measure-webpack-plugin": "~1.3.4",
140
142
  "@types/supertest": "~2.0.12",
141
143
  "@types/uuid": "~9.0.1",
@@ -144,7 +146,7 @@
144
146
  "@typescript-eslint/eslint-plugin": "~5.59.2",
145
147
  "@typescript-eslint/parser": "~5.59.2",
146
148
  "@vitejs/plugin-react": "~4.0.0",
147
- "@vitest/coverage-c8": "~0.30.1",
149
+ "@vitest/coverage-c8": "~0.31.0",
148
150
  "autoprefixer": "~10.4.14",
149
151
  "axe-core": "~4.7.0",
150
152
  "babel-plugin-date-fns": "~2.0.0",
@@ -177,6 +179,7 @@
177
179
  "enhanced-resolve": "5.13.0",
178
180
  "esbuild": "~0.17.18",
179
181
  "esbuild-loader": "~3.0.1",
182
+ "esbuild-plugin-lodash": "~1.2.0",
180
183
  "esbuild-plugin-svgr": "~1.1.0",
181
184
  "eslint": "~8.39.0",
182
185
  "eslint-config-airbnb": "~19.0.4",
@@ -191,14 +194,14 @@
191
194
  "eslint-plugin-eslint-comments": "~3.2.0",
192
195
  "eslint-plugin-import": "~2.27.5",
193
196
  "eslint-plugin-jest": "~27.2.1",
194
- "eslint-plugin-jsdoc": "~43.1.1",
197
+ "eslint-plugin-jsdoc": "~43.2.0",
195
198
  "eslint-plugin-jsx-a11y": "~6.7.1",
196
- "eslint-plugin-mdx": "~2.0.5",
199
+ "eslint-plugin-mdx": "~2.1.0",
197
200
  "eslint-plugin-prettier": "~4.2.1",
198
201
  "eslint-plugin-react": "~7.32.2",
199
202
  "eslint-plugin-react-hooks": "~4.6.0",
200
203
  "eslint-plugin-redux-saga": "~1.3.2",
201
- "eslint-plugin-storybook": "~0.6.11",
204
+ "eslint-plugin-storybook": "~0.6.12",
202
205
  "eslint-plugin-testing-library": "~5.10.3",
203
206
  "eslint-plugin-wdio": "~8.8.7",
204
207
  "execa": "~7.1.1",
@@ -209,7 +212,7 @@
209
212
  "fast-glob": "~3.2.12",
210
213
  "find-up": "~6.3.0",
211
214
  "find-up-cli": "~5.0.0",
212
- "happy-dom": "~9.10.5",
215
+ "happy-dom": "~9.10.9",
213
216
  "helmet-csp": "~3.4.0",
214
217
  "html-loader": "~4.2.0",
215
218
  "html-webpack-plugin": "~5.5.1",
@@ -226,7 +229,7 @@
226
229
  "jest-watch-typeahead": "~2.2.2",
227
230
  "jscodeshift": "~0.14.0",
228
231
  "jsdoc": "~4.0.2",
229
- "lerna": "~6.6.1",
232
+ "lerna": "~6.6.2",
230
233
  "lint-staged": "~13.2.2",
231
234
  "mini-css-extract-plugin": "~2.7.5",
232
235
  "minimist": "~1.2.8",
@@ -239,7 +242,7 @@
239
242
  "nodemon": "~2.0.22",
240
243
  "normalize-path": "~3.0.0",
241
244
  "npm-check-updates": "16.10.9",
242
- "pino": "~8.12.0",
245
+ "pino": "~8.12.1",
243
246
  "pino-http": "~8.3.3",
244
247
  "pino-pretty": "~10.0.0",
245
248
  "plop": "~3.1.2",
@@ -264,10 +267,11 @@
264
267
  "semantic-release": "~21.0.2",
265
268
  "slackify-markdown": "~4.3.1",
266
269
  "speed-measure-webpack-plugin": "~1.5.0",
267
- "storybook-addon-turbo-build": "~1.1.0",
270
+ "storybook": "~7.0.9",
271
+ "storybook-addon-turbo-build": "~2.0.1",
268
272
  "storybook-react-router": "~1.0.8",
269
273
  "style-loader": "~3.3.2",
270
- "stylelint": "~15.6.0",
274
+ "stylelint": "~15.6.1",
271
275
  "stylelint-config-recommended": "~12.0.0",
272
276
  "stylelint-config-styled-components": "~0.1.1",
273
277
  "supertest": "~6.3.3",
@@ -279,10 +283,10 @@
279
283
  "update-notifier": "~6.0.2",
280
284
  "url-loader": "~4.1.1",
281
285
  "uuid": "~9.0.0",
282
- "vite": "~4.3.4",
283
- "vitest": "~0.30.1",
286
+ "vite": "~4.3.5",
287
+ "vitest": "~0.31.0",
284
288
  "vite-tsconfig-paths": "~4.2.0",
285
- "webpack": "~5.81.0",
289
+ "webpack": "~5.82.0",
286
290
  "webpack-bundle-analyzer": "~4.8.0",
287
291
  "webpack-cli": "~5.0.2",
288
292
  "webpack-dev-server": "~4.13.3",