@elliemae/pui-cli 9.0.0-next.17 → 9.0.0-next.18

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,6 +34,7 @@ __export(helpers_exports, {
34
34
  getAlias: () => getAlias,
35
35
  getAppVersion: () => getAppVersion,
36
36
  getCompressionPlugins: () => getCompressionPlugins,
37
+ getLibraryAlias: () => getLibraryAlias,
37
38
  getLibraryName: () => getLibraryName,
38
39
  getLibraryVariableName: () => getLibraryVariableName,
39
40
  getMediaPath: () => getMediaPath,
@@ -113,6 +114,15 @@ const getAlias = () => {
113
114
  import_node_path.default.join(monorepoRoot, "./node_modules")
114
115
  );
115
116
  };
117
+ const getLibraryAlias = (name, alias) => {
118
+ const monorepoRoot = (0, import_utils.findMonoRepoRoot)(process.cwd()) ?? "";
119
+ const aliasPath = import_node_path.default.resolve(
120
+ `${import_node_path.default.join(monorepoRoot, "./node_modules")}/${alias}`
121
+ );
122
+ return {
123
+ [name]: aliasPath
124
+ };
125
+ };
116
126
  const modulesToTranspile = [
117
127
  "@elliemae/pui-*",
118
128
  "@elliemae/ds-*",
@@ -96,7 +96,14 @@ const webpackFinal = (config, { configType }) => {
96
96
  config.plugins = config?.plugins?.concat((0, import_helpers.getCompressionPlugins)());
97
97
  }
98
98
  if (config.resolve) {
99
- config.resolve.alias = { ...config?.resolve?.alias, ...(0, import_helpers.getAlias)() };
99
+ config.resolve.alias = {
100
+ ...config?.resolve?.alias,
101
+ ...(0, import_helpers.getAlias)(),
102
+ ...(0, import_helpers.getLibraryAlias)(
103
+ "@reduxjs/toolkit/query/react",
104
+ "@reduxjs/toolkit/dist/query/react/rtk-query-react.esm.js"
105
+ )
106
+ };
100
107
  config.resolve.fallback = { ...config.resolve.fallback, crypto: false };
101
108
  config.resolve.extensions?.push(".svg");
102
109
  config.resolve.plugins = [
@@ -65,6 +65,15 @@ const getAlias = () => {
65
65
  path.join(monorepoRoot, "./node_modules")
66
66
  );
67
67
  };
68
+ const getLibraryAlias = (name, alias) => {
69
+ const monorepoRoot = findMonoRepoRoot(process.cwd()) ?? "";
70
+ const aliasPath = path.resolve(
71
+ `${path.join(monorepoRoot, "./node_modules")}/${alias}`
72
+ );
73
+ return {
74
+ [name]: aliasPath
75
+ };
76
+ };
68
77
  const modulesToTranspile = [
69
78
  "@elliemae/pui-*",
70
79
  "@elliemae/ds-*",
@@ -204,6 +213,7 @@ export {
204
213
  getAlias,
205
214
  getAppVersion,
206
215
  getCompressionPlugins,
216
+ getLibraryAlias,
207
217
  getLibraryName,
208
218
  getLibraryVariableName,
209
219
  getMediaPath,
@@ -2,7 +2,7 @@ import webpack from "webpack";
2
2
  import MiniCssExtractPlugin from "mini-css-extract-plugin";
3
3
  import CopyWebpackPlugin from "copy-webpack-plugin";
4
4
  import ResolveTypeScriptPlugin from "resolve-typescript-plugin";
5
- import { getAlias, getCompressionPlugins } from "./helpers.js";
5
+ import { getAlias, getLibraryAlias, getCompressionPlugins } from "./helpers.js";
6
6
  import { isApp } from "../utils.js";
7
7
  const IS_APP = isApp();
8
8
  const CWD = process.cwd();
@@ -63,7 +63,14 @@ const webpackFinal = (config, { configType }) => {
63
63
  config.plugins = config?.plugins?.concat(getCompressionPlugins());
64
64
  }
65
65
  if (config.resolve) {
66
- config.resolve.alias = { ...config?.resolve?.alias, ...getAlias() };
66
+ config.resolve.alias = {
67
+ ...config?.resolve?.alias,
68
+ ...getAlias(),
69
+ ...getLibraryAlias(
70
+ "@reduxjs/toolkit/query/react",
71
+ "@reduxjs/toolkit/dist/query/react/rtk-query-react.esm.js"
72
+ )
73
+ };
67
74
  config.resolve.fallback = { ...config.resolve.fallback, crypto: false };
68
75
  config.resolve.extensions?.push(".svg");
69
76
  config.resolve.plugins = [
@@ -8,6 +8,9 @@ export declare const getLibraryName: () => string;
8
8
  export declare const getLibraryVariableName: () => string[];
9
9
  export declare const mapToFolder: (dependencies: string[], folder: string) => {};
10
10
  export declare const getAlias: () => {};
11
+ export declare const getLibraryAlias: (name: string, alias: string) => {
12
+ [x: string]: string;
13
+ };
11
14
  export declare const modulesToTranspile: string[];
12
15
  export declare const getAppVersion: () => string;
13
16
  export declare const getPaths: (latestVersion?: boolean) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "9.0.0-next.17",
3
+ "version": "9.0.0-next.18",
4
4
  "description": "ICE MT UI Platform CLI",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -79,9 +79,9 @@
79
79
  "dependencies": {
80
80
  "@axe-core/react": "~4.7.3",
81
81
  "@babel/cli": "~7.22.15",
82
- "@babel/core": "~7.22.17",
82
+ "@babel/core": "~7.22.20",
83
83
  "@babel/eslint-parser": "~7.22.15",
84
- "@babel/node": "~7.22.15",
84
+ "@babel/node": "~7.22.19",
85
85
  "@babel/plugin-proposal-class-properties": "~7.18.6",
86
86
  "@babel/plugin-proposal-export-default-from": "~7.22.17",
87
87
  "@babel/plugin-syntax-dynamic-import": "~7.8.3",
@@ -91,14 +91,14 @@
91
91
  "@babel/plugin-transform-react-inline-elements": "~7.22.5",
92
92
  "@babel/plugin-transform-react-jsx-source": "~7.22.5",
93
93
  "@babel/plugin-transform-runtime": "~7.22.15",
94
- "@babel/preset-env": "~7.22.15",
94
+ "@babel/preset-env": "~7.22.20",
95
95
  "@babel/preset-react": "~7.22.15",
96
96
  "@babel/preset-typescript": "~7.22.15",
97
97
  "@babel/runtime": "~7.22.15",
98
98
  "@commitlint/cli": "~17.7.1",
99
99
  "@commitlint/config-conventional": "~17.7.0",
100
100
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.8.0",
101
- "@faker-js/faker": "8.0.2",
101
+ "@faker-js/faker": "8.1.0",
102
102
  "@nrwl/cli": "15.9.3",
103
103
  "@nrwl/tao": "16.8.1",
104
104
  "@nrwl/workspace": "16.8.1",
@@ -106,54 +106,54 @@
106
106
  "@semantic-release/changelog": "~6.0.3",
107
107
  "@semantic-release/exec": "~6.0.3",
108
108
  "@semantic-release/git": "~10.0.1",
109
- "@storybook/addon-a11y": "~7.4.0",
110
- "@storybook/addon-essentials": "~7.4.0",
109
+ "@storybook/addon-a11y": "~7.4.4",
110
+ "@storybook/addon-essentials": "~7.4.4",
111
111
  "@storybook/addon-events": "~6.2.9",
112
- "@storybook/addon-interactions": "~7.4.0",
113
- "@storybook/addon-links": "~7.4.0",
114
- "@storybook/addon-storysource": "~7.4.0",
115
- "@storybook/blocks": "~7.4.0",
116
- "@storybook/builder-vite": "~7.4.0",
117
- "@storybook/builder-webpack5": "~7.4.0",
112
+ "@storybook/addon-interactions": "~7.4.4",
113
+ "@storybook/addon-links": "~7.4.4",
114
+ "@storybook/addon-storysource": "~7.4.4",
115
+ "@storybook/blocks": "~7.4.4",
116
+ "@storybook/builder-vite": "~7.4.4",
117
+ "@storybook/builder-webpack5": "~7.4.4",
118
118
  "@storybook/jest": "~0.2.2",
119
119
  "@storybook/manager-webpack5": "~6.5.16",
120
- "@storybook/react": "~7.4.0",
121
- "@storybook/react-vite": "~7.4.0",
122
- "@storybook/react-webpack5": "~7.4.0",
123
- "@storybook/testing-library": "~0.2.0",
124
- "@storybook/theming": "~7.4.0",
120
+ "@storybook/react": "~7.4.4",
121
+ "@storybook/react-vite": "~7.4.4",
122
+ "@storybook/react-webpack5": "~7.4.4",
123
+ "@storybook/testing-library": "~0.2.1",
124
+ "@storybook/theming": "~7.4.4",
125
125
  "@stylelint/postcss-css-in-js": "~0.38.0",
126
126
  "@svgr/webpack": "~8.1.0",
127
127
  "@swc/cli": "~0.1.62",
128
- "@swc/core": "~1.3.83",
128
+ "@swc/core": "~1.3.87",
129
129
  "@swc/jest": "~0.2.29",
130
130
  "@testing-library/jest-dom": "~6.1.3",
131
131
  "@testing-library/react": "~14.0.0",
132
132
  "@testing-library/react-hooks": "~8.0.1",
133
- "@testing-library/user-event": "~14.4.3",
133
+ "@testing-library/user-event": "~14.5.1",
134
134
  "@types/circular-dependency-plugin": "~5.0.6",
135
135
  "@types/compression": "~1.7.3",
136
136
  "@types/cors": "~2.8.14",
137
137
  "@types/duplicate-package-checker-webpack-plugin": "~2.1.2",
138
138
  "@types/ip": "~1.1.0",
139
- "@types/jest": "~29.5.4",
140
- "@types/jest-axe": "~3.5.5",
139
+ "@types/jest": "~29.5.5",
140
+ "@types/jest-axe": "~3.5.6",
141
141
  "@types/moment-locales-webpack-plugin": "~1.2.3",
142
- "@types/node": "~20.5.9",
142
+ "@types/node": "~20.6.3",
143
143
  "@types/normalize-path": "~3.0.0",
144
144
  "@types/postcss-preset-env": "~8.0.0",
145
145
  "@types/rimraf": "~4.0.5",
146
146
  "@types/speed-measure-webpack-plugin": "~1.3.4",
147
147
  "@types/supertest": "~2.0.12",
148
- "@types/uuid": "~9.0.3",
148
+ "@types/uuid": "~9.0.4",
149
149
  "@types/testing-library__jest-dom": "~5.14.9",
150
150
  "@types/webpack-bundle-analyzer": "~4.6.0",
151
- "@typescript-eslint/eslint-plugin": "~6.6.0",
152
- "@typescript-eslint/parser": "~6.6.0",
151
+ "@typescript-eslint/eslint-plugin": "~6.7.2",
152
+ "@typescript-eslint/parser": "~6.7.2",
153
153
  "@vitejs/plugin-react": "~4.0.4",
154
154
  "@vitest/coverage-c8": "~0.33.0",
155
- "autoprefixer": "~10.4.15",
156
- "axe-core": "~4.8.1",
155
+ "autoprefixer": "~10.4.16",
156
+ "axe-core": "~4.8.2",
157
157
  "babel-plugin-date-fns": "~2.0.0",
158
158
  "babel-plugin-dynamic-import-node": "~2.3.3",
159
159
  "babel-plugin-import-remove-resource-query": "~1.0.0",
@@ -165,7 +165,7 @@
165
165
  "babel-plugin-transform-remove-console": "~6.9.4",
166
166
  "babel-plugin-transform-strip-block": "~0.0.5",
167
167
  "body-parser": "~1.20.2",
168
- "browserslist": "~4.21.10",
168
+ "browserslist": "~4.21.11",
169
169
  "browserslist-to-esbuild": "~1.2.0",
170
170
  "chalk": "~5.3.0",
171
171
  "circular-dependency-plugin": "~5.2.2",
@@ -176,37 +176,37 @@
176
176
  "cross-env": "~7.0.3",
177
177
  "css-loader": "~6.8.1",
178
178
  "css-minimizer-webpack-plugin": "~5.0.1",
179
- "depcheck": "~1.4.5",
179
+ "depcheck": "~1.4.6",
180
180
  "docdash": "~2.0.2",
181
181
  "dotenv": "~16.3.1",
182
182
  "dotenv-webpack": "~8.0.1",
183
183
  "duplicate-package-checker-webpack-plugin": "~3.0.0",
184
184
  "enhanced-resolve": "5.15.0",
185
- "esbuild": "~0.19.2",
185
+ "esbuild": "~0.19.3",
186
186
  "esbuild-loader": "~4.0.2",
187
187
  "esbuild-plugin-lodash": "~1.2.0",
188
188
  "esbuild-plugin-svgr": "~2.1.0",
189
- "eslint": "~8.48.0",
189
+ "eslint": "~8.49.0",
190
190
  "eslint-config-airbnb": "~19.0.4",
191
191
  "eslint-config-airbnb-base": "~15.0.0",
192
192
  "eslint-config-airbnb-typescript": "~17.1.0",
193
193
  "eslint-config-prettier": "~9.0.0",
194
194
  "eslint-config-react-app": "~7.0.1",
195
195
  "eslint-import-resolver-babel-module": "~5.3.2",
196
- "eslint-import-resolver-typescript": "~3.6.0",
196
+ "eslint-import-resolver-typescript": "~3.6.1",
197
197
  "eslint-import-resolver-webpack": "~0.13.7",
198
198
  "eslint-plugin-compat": "~4.2.0",
199
199
  "eslint-plugin-eslint-comments": "~3.2.0",
200
200
  "eslint-plugin-import": "~2.28.1",
201
- "eslint-plugin-jest": "~27.2.3",
202
- "eslint-plugin-jsdoc": "~46.5.1",
201
+ "eslint-plugin-jest": "~27.4.0",
202
+ "eslint-plugin-jsdoc": "~46.8.2",
203
203
  "eslint-plugin-jsx-a11y": "~6.7.1",
204
204
  "eslint-plugin-mdx": "~2.2.0",
205
205
  "eslint-plugin-prettier": "~5.0.0",
206
206
  "eslint-plugin-react": "~7.33.2",
207
207
  "eslint-plugin-react-hooks": "~4.6.0",
208
208
  "eslint-plugin-redux-saga": "~1.3.2",
209
- "eslint-plugin-storybook": "~0.6.13",
209
+ "eslint-plugin-storybook": "~0.6.14",
210
210
  "eslint-plugin-testing-library": "~6.0.1",
211
211
  "eslint-plugin-wdio": "~8.8.7",
212
212
  "execa": "~8.0.1",
@@ -217,7 +217,7 @@
217
217
  "fast-glob": "~3.3.1",
218
218
  "find-up": "~6.3.0",
219
219
  "find-up-cli": "~5.0.0",
220
- "happy-dom": "~11.0.2",
220
+ "happy-dom": "~12.1.6",
221
221
  "helmet-csp": "~3.4.0",
222
222
  "html-loader": "~4.2.0",
223
223
  "html-webpack-plugin": "~5.5.3",
@@ -227,39 +227,39 @@
227
227
  "imports-loader": "~4.0.1",
228
228
  "ip": "~1.1.8",
229
229
  "jest-axe": "~8.0.0",
230
- "jest-cli": "~29.6.4",
231
- "jest-environment-jsdom": "~29.6.4",
230
+ "jest-cli": "~29.7.0",
231
+ "jest-environment-jsdom": "~29.7.0",
232
232
  "jest-sonar-reporter": "~2.0.0",
233
233
  "jest-styled-components": "~7.1.1",
234
234
  "jest-watch-typeahead": "~2.2.2",
235
235
  "jscodeshift": "~0.15.0",
236
236
  "jsdoc": "~4.0.2",
237
- "lerna": "~7.2.0",
237
+ "lerna": "~7.3.0",
238
238
  "lint-staged": "~14.0.1",
239
239
  "mini-css-extract-plugin": "~2.7.6",
240
240
  "minimist": "~1.2.8",
241
241
  "moment": "~2.29.4",
242
242
  "moment-locales-webpack-plugin": "~1.2.0",
243
- "msw": "~1.3.0",
243
+ "msw": "~1.3.1",
244
244
  "npm-run-all": "~4.1.5",
245
245
  "node-gyp": "~9.4.0",
246
246
  "node-plop": "~0.32.0",
247
247
  "nodemon": "~3.0.1",
248
248
  "normalize-path": "~3.0.0",
249
- "npm-check-updates": "16.13.3",
249
+ "npm-check-updates": "16.14.4",
250
250
  "pino": "~8.15.1",
251
251
  "pino-http": "~8.5.0",
252
252
  "pino-pretty": "~10.2.0",
253
253
  "plop": "~4.0.0",
254
- "postcss": "~8.4.29",
254
+ "postcss": "~8.4.30",
255
255
  "postcss-html": "~1.5.0",
256
256
  "postcss-jsx": "~0.36.4",
257
257
  "postcss-loader": "~7.3.3",
258
258
  "postcss-markdown": "~1.2.0",
259
- "postcss-preset-env": "~9.1.3",
259
+ "postcss-preset-env": "~9.1.4",
260
260
  "postcss-syntax": "~0.36.2",
261
261
  "prettier": "~3.0.3",
262
- "prisma": "~5.2.0",
262
+ "prisma": "~5.3.1",
263
263
  "pug": "~3.0.2",
264
264
  "pug-loader": "~2.4.0",
265
265
  "raf": "~3.4.1",
@@ -269,10 +269,10 @@
269
269
  "resize-observer-polyfill": "~1.5.1",
270
270
  "resolve-typescript-plugin": "~2.0.1",
271
271
  "rimraf": "~5.0.1",
272
- "semantic-release": "~21.1.1",
272
+ "semantic-release": "~22.0.1",
273
273
  "slackify-markdown": "~4.4.0",
274
274
  "speed-measure-webpack-plugin": "~1.5.0",
275
- "storybook": "~7.4.0",
275
+ "storybook": "~7.4.4",
276
276
  "storybook-addon-turbo-build": "~2.0.1",
277
277
  "storybook-react-router": "~1.0.8",
278
278
  "style-loader": "~3.3.3",
@@ -281,33 +281,34 @@
281
281
  "stylelint-config-styled-components": "~0.1.1",
282
282
  "supertest": "~6.3.3",
283
283
  "swc-loader": "~0.2.3",
284
+ "tsconfig-paths-webpack-plugin": "~4.1.0",
284
285
  "ts-node": "~10.9.1",
285
- "tsc-alias": "~1.8.7",
286
- "tsx": "~3.12.8",
286
+ "tsc-alias": "~1.8.8",
287
+ "tsx": "~3.12.10",
287
288
  "typedoc": "~0.25.1",
288
289
  "typescript": "~5.2.2",
289
290
  "update-notifier": "~6.0.2",
290
291
  "url-loader": "~4.1.1",
291
- "uuid": "~9.0.0",
292
+ "uuid": "~9.0.1",
292
293
  "vite": "~4.4.9",
293
- "vitest": "~0.34.4",
294
- "vite-tsconfig-paths": "~4.2.0",
294
+ "vitest": "~0.34.5",
295
+ "vite-tsconfig-paths": "~4.2.1",
295
296
  "webpack": "~5.88.2",
296
297
  "webpack-bundle-analyzer": "~4.9.1",
297
298
  "webpack-cli": "~5.1.4",
298
299
  "webpack-dev-server": "~4.15.1",
299
300
  "webpack-manifest-plugin": "~5.0.0",
300
301
  "webpack-merge": "~5.9.0",
301
- "whatwg-fetch": "~3.6.18",
302
+ "whatwg-fetch": "~3.6.19",
302
303
  "workbox-webpack-plugin": "~7.0.0",
303
304
  "yargs": "~17.7.2"
304
305
  },
305
306
  "devDependencies": {
306
- "@elliemae/pui-doc-gen": "~1.7.1",
307
+ "@elliemae/pui-doc-gen": "~1.8.0",
307
308
  "react": "~18.2.0",
308
309
  "react-dom": "~18.2.0",
309
310
  "redux": "~4.2.1",
310
311
  "redux-saga": "~1.2.3",
311
- "styled-components": "~6.0.7"
312
+ "styled-components": "~6.0.8"
312
313
  }
313
314
  }