@elliemae/pui-cli 8.0.1 → 8.0.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.
|
@@ -33,6 +33,7 @@ __export(appRoutes_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(appRoutes_exports);
|
|
34
34
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
35
35
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
36
|
+
var import_node_url = require("node:url");
|
|
36
37
|
const allJS = /\.js$/;
|
|
37
38
|
const serviceEndpoints = /\.endpoint\.js$/;
|
|
38
39
|
const getFilesMatching = (filePattern) => {
|
|
@@ -61,7 +62,8 @@ const loadRoutes = async (app) => {
|
|
|
61
62
|
routeFiles.push(...getServiceEndpoints(import_node_path.default.join(process.cwd(), "lib")));
|
|
62
63
|
await Promise.all(
|
|
63
64
|
routeFiles.map(async (routeFile) => {
|
|
64
|
-
const
|
|
65
|
+
const routeFileURL = (0, import_node_url.pathToFileURL)(routeFile).href;
|
|
66
|
+
const { default: init } = await import(routeFileURL);
|
|
65
67
|
try {
|
|
66
68
|
if (typeof init === "function")
|
|
67
69
|
init(app);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
|
+
import { pathToFileURL } from "node:url";
|
|
3
4
|
const allJS = /\.js$/;
|
|
4
5
|
const serviceEndpoints = /\.endpoint\.js$/;
|
|
5
6
|
const getFilesMatching = (filePattern) => {
|
|
@@ -28,7 +29,8 @@ const loadRoutes = async (app) => {
|
|
|
28
29
|
routeFiles.push(...getServiceEndpoints(path.join(process.cwd(), "lib")));
|
|
29
30
|
await Promise.all(
|
|
30
31
|
routeFiles.map(async (routeFile) => {
|
|
31
|
-
const
|
|
32
|
+
const routeFileURL = pathToFileURL(routeFile).href;
|
|
33
|
+
const { default: init } = await import(routeFileURL);
|
|
32
34
|
try {
|
|
33
35
|
if (typeof init === "function")
|
|
34
36
|
init(app);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "ICE MT UI Platform CLI",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
"@commitlint/config-conventional": "~17.4.4",
|
|
95
95
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.6.0",
|
|
96
96
|
"@faker-js/faker": "7.6.0",
|
|
97
|
-
"@nrwl/cli": "15.8.
|
|
98
|
-
"@nrwl/tao": "15.8.
|
|
99
|
-
"@nrwl/workspace": "15.8.
|
|
97
|
+
"@nrwl/cli": "15.8.5",
|
|
98
|
+
"@nrwl/tao": "15.8.5",
|
|
99
|
+
"@nrwl/workspace": "15.8.5",
|
|
100
100
|
"@pmmmwh/react-refresh-webpack-plugin": "~0.5.10",
|
|
101
101
|
"@semantic-release/changelog": "~6.0.2",
|
|
102
102
|
"@semantic-release/exec": "~6.0.3",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"@stylelint/postcss-css-in-js": "~0.38.0",
|
|
116
116
|
"@svgr/webpack": "~6.5.1",
|
|
117
117
|
"@swc/cli": "~0.1.62",
|
|
118
|
-
"@swc/core": "~1.3.
|
|
118
|
+
"@swc/core": "~1.3.38",
|
|
119
119
|
"@swc/jest": "~0.2.24",
|
|
120
120
|
"@testing-library/jest-dom": "~5.16.5",
|
|
121
121
|
"@testing-library/react": "~14.0.0",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"@types/jest": "~29.4.0",
|
|
130
130
|
"@types/jest-axe": "~3.5.5",
|
|
131
131
|
"@types/moment-locales-webpack-plugin": "~1.2.3",
|
|
132
|
-
"@types/node": "~18.14.
|
|
132
|
+
"@types/node": "~18.14.6",
|
|
133
133
|
"@types/normalize-path": "~3.0.0",
|
|
134
134
|
"@types/postcss-preset-env": "~7.7.0",
|
|
135
135
|
"@types/rimraf": "~3.0.2",
|
|
@@ -172,14 +172,14 @@
|
|
|
172
172
|
"dotenv-webpack": "~8.0.1",
|
|
173
173
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
174
174
|
"enhanced-resolve": "5.12.0",
|
|
175
|
-
"esbuild": "~0.17.
|
|
175
|
+
"esbuild": "~0.17.11",
|
|
176
176
|
"esbuild-loader": "~3.0.1",
|
|
177
177
|
"esbuild-plugin-svgr": "~1.0.1",
|
|
178
178
|
"eslint": "~8.35.0",
|
|
179
179
|
"eslint-config-airbnb": "~19.0.4",
|
|
180
180
|
"eslint-config-airbnb-base": "~15.0.0",
|
|
181
181
|
"eslint-config-airbnb-typescript": "~17.0.0",
|
|
182
|
-
"eslint-config-prettier": "~8.
|
|
182
|
+
"eslint-config-prettier": "~8.7.0",
|
|
183
183
|
"eslint-config-react-app": "~7.0.1",
|
|
184
184
|
"eslint-import-resolver-babel-module": "~5.3.2",
|
|
185
185
|
"eslint-import-resolver-typescript": "~3.5.3",
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
189
189
|
"eslint-plugin-import": "~2.27.5",
|
|
190
190
|
"eslint-plugin-jest": "~27.2.1",
|
|
191
|
-
"eslint-plugin-jsdoc": "~40.0.
|
|
191
|
+
"eslint-plugin-jsdoc": "~40.0.1",
|
|
192
192
|
"eslint-plugin-jsx-a11y": "~6.7.1",
|
|
193
193
|
"eslint-plugin-mdx": "~2.0.5",
|
|
194
194
|
"eslint-plugin-prettier": "~4.2.1",
|
|
@@ -216,8 +216,8 @@
|
|
|
216
216
|
"imports-loader": "~4.0.1",
|
|
217
217
|
"ip": "~1.1.8",
|
|
218
218
|
"jest-axe": "~7.0.0",
|
|
219
|
-
"jest-cli": "~29.
|
|
220
|
-
"jest-environment-jsdom": "~29.
|
|
219
|
+
"jest-cli": "~29.5.0",
|
|
220
|
+
"jest-environment-jsdom": "~29.5.0",
|
|
221
221
|
"jest-sonar-reporter": "~2.0.0",
|
|
222
222
|
"jest-styled-components": "~7.1.1",
|
|
223
223
|
"jest-watch-typeahead": "~2.2.2",
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
"npm-run-all": "~4.1.5",
|
|
234
234
|
"node-gyp": "~9.3.1",
|
|
235
235
|
"node-plop": "~0.31.1",
|
|
236
|
-
"nodemon": "~2.0.
|
|
236
|
+
"nodemon": "~2.0.21",
|
|
237
237
|
"normalize-path": "~3.0.0",
|
|
238
238
|
"npm-check-updates": "16.7.10",
|
|
239
239
|
"pino": "~8.11.0",
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
"react-test-renderer": "~18.2.0",
|
|
258
258
|
"resize-observer-polyfill": "~1.5.1",
|
|
259
259
|
"resolve-typescript-plugin": "~2.0.0",
|
|
260
|
-
"rimraf": "~4.
|
|
260
|
+
"rimraf": "~4.3.0",
|
|
261
261
|
"semantic-release": "~20.1.1",
|
|
262
262
|
"slackify-markdown": "~4.3.1",
|
|
263
263
|
"speed-measure-webpack-plugin": "~1.5.0",
|
|
@@ -295,6 +295,6 @@
|
|
|
295
295
|
"react-dom": "~18.2.0",
|
|
296
296
|
"redux": "~4.2.1",
|
|
297
297
|
"redux-saga": "~1.2.2",
|
|
298
|
-
"styled-components": "~5.3.
|
|
298
|
+
"styled-components": "~5.3.8"
|
|
299
299
|
}
|
|
300
300
|
}
|