@elliemae/pui-cli 5.22.1 → 5.24.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.
@@ -69,6 +69,7 @@ const jestConfig = {
69
69
  'styled-components':
70
70
  '<rootDir>/node_modules/styled-components/dist/styled-components.cjs.js',
71
71
  },
72
+ moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
72
73
  setupFilesAfterEnv: [`${getRootDir()}/lib/testing/setup-tests.js`],
73
74
  setupFiles: ['raf/polyfill', 'whatwg-fetch'],
74
75
  testRegex: '(app|lib).*/tests/.*\\.test\\.(js|ts|tsx|jsx)$',
@@ -13,13 +13,16 @@ const resolutions = [
13
13
  },
14
14
  ];
15
15
 
16
- const importResolver = require('enhanced-resolve').create.sync({
16
+ const resolveConfig = {
17
17
  conditionNames: ['import', 'node', 'default'],
18
- extensions: ['.js', '.jsx', '.json', '.node', '.ts', '.tsx'],
19
- });
18
+ extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.node'],
19
+ modules: ['node_modules', 'app', 'lib'],
20
+ };
21
+
22
+ const importResolver = require('enhanced-resolve').create.sync(resolveConfig);
20
23
  const requireResolver = require('enhanced-resolve').create.sync({
24
+ ...resolveConfig,
21
25
  conditionNames: ['require', 'node', 'default'],
22
- extensions: ['.js', '.jsx', '.json', '.node', '.ts', '.tsx'],
23
26
  });
24
27
 
25
28
  module.exports = (request, options) => {
@@ -187,16 +187,17 @@ const isGoogleTagManagerEnabled = () => {
187
187
  return !!appConfig?.googleTagManager;
188
188
  };
189
189
 
190
- const getCompressionPlugins = () => {
190
+ const getCompressionPlugins = (isLibrary = false) => {
191
+ const excludeList = [
192
+ /\/adrum-ext/,
193
+ /\/emuiUserMonitoring/,
194
+ /\/emuiDiagnostics/,
195
+ /\/emuiAppLoader/,
196
+ /\/encwLoader/,
197
+ ];
191
198
  const commonConfig = {
192
199
  test: /\.(js|css)$/,
193
- exclude: [
194
- /\/adrum-ext/,
195
- /\/emuiUserMonitoring/,
196
- /\/emuiDiagnostics/,
197
- /\/emuiAppLoader/,
198
- /\/encwLoader/,
199
- ],
200
+ exclude: !isLibrary ? excludeList : [],
200
201
  // we are compressing all files since in aws cloudfront edge lambda, we don't want to whitelist files that are not compressed due to below limits
201
202
  minRatio: Number.MAX_SAFE_INTEGER,
202
203
  };
@@ -68,7 +68,7 @@ module.exports = require('./webpack.lib.base.babel')({
68
68
  chunkFilename: `css/${libraryName}.[contenthash].chunk.css`,
69
69
  }),
70
70
 
71
- ...getCompressionPlugins(),
71
+ ...getCompressionPlugins(true),
72
72
 
73
73
  new BundleAnalyzerPlugin({
74
74
  analyzerMode: 'static',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "5.22.1",
3
+ "version": "5.24.1",
4
4
  "private": false,
5
5
  "description": "EllieMae Platform UI CLI",
6
6
  "sideEffects": false,
@@ -48,21 +48,21 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@babel/cli": "~7.16.0",
51
- "@babel/core": "~7.16.0",
52
- "@babel/eslint-parser": "~7.16.3",
53
- "@babel/node": "~7.16.0",
54
- "@babel/plugin-proposal-class-properties": "~7.16.0",
55
- "@babel/plugin-proposal-export-default-from": "~7.16.0",
51
+ "@babel/core": "~7.16.5",
52
+ "@babel/eslint-parser": "~7.16.5",
53
+ "@babel/node": "~7.16.5",
54
+ "@babel/plugin-proposal-class-properties": "~7.16.5",
55
+ "@babel/plugin-proposal-export-default-from": "~7.16.5",
56
56
  "@babel/plugin-syntax-dynamic-import": "~7.8.3",
57
- "@babel/plugin-transform-modules-commonjs": "~7.16.0",
58
- "@babel/plugin-transform-react-constant-elements": "~7.16.0",
59
- "@babel/plugin-transform-react-inline-elements": "~7.16.0",
60
- "@babel/plugin-transform-react-jsx-source": "~7.16.0",
61
- "@babel/plugin-transform-runtime": "~7.16.4",
62
- "@babel/preset-env": "~7.16.4",
63
- "@babel/preset-react": "~7.16.0",
64
- "@babel/preset-typescript": "~7.16.0",
65
- "@babel/runtime": "~7.16.3",
57
+ "@babel/plugin-transform-modules-commonjs": "~7.16.5",
58
+ "@babel/plugin-transform-react-constant-elements": "~7.16.5",
59
+ "@babel/plugin-transform-react-inline-elements": "~7.16.5",
60
+ "@babel/plugin-transform-react-jsx-source": "~7.16.5",
61
+ "@babel/plugin-transform-runtime": "~7.16.5",
62
+ "@babel/preset-env": "~7.16.5",
63
+ "@babel/preset-react": "~7.16.5",
64
+ "@babel/preset-typescript": "~7.16.5",
65
+ "@babel/runtime": "~7.16.5",
66
66
  "@commitlint/cli": "~15.0.0",
67
67
  "@commitlint/config-conventional": "~15.0.0",
68
68
  "@elliemae/browserslist-config-elliemae": "~1.2.1",
@@ -88,16 +88,16 @@
88
88
  "@storybook/react": "~6.3.12",
89
89
  "@storybook/theming": "~6.3.12",
90
90
  "@stylelint/postcss-css-in-js": "~0.37.2",
91
- "@svgr/webpack": "~6.1.1",
91
+ "@svgr/webpack": "~6.1.2",
92
92
  "@testing-library/jest-dom": "~5.16.1",
93
93
  "@testing-library/react": "~12.1.2",
94
94
  "@testing-library/react-hooks": "~7.0.2",
95
95
  "@types/jest": "~27.0.3",
96
- "@types/node": "~16.11.12",
96
+ "@types/node": "~16.11.13",
97
97
  "@types/rimraf": "~3.0.2",
98
98
  "@types/testing-library__jest-dom": "~5.14.2",
99
- "@typescript-eslint/eslint-plugin": "~5.6.0",
100
- "@typescript-eslint/parser": "~5.6.0",
99
+ "@typescript-eslint/eslint-plugin": "~5.7.0",
100
+ "@typescript-eslint/parser": "~5.7.0",
101
101
  "autoprefixer": "~10.4.0",
102
102
  "axe-core": "~4.3.5",
103
103
  "babel-loader": "~8.2.3",
@@ -112,17 +112,17 @@
112
112
  "babel-plugin-transform-react-remove-prop-types": "~0.4.24",
113
113
  "babel-plugin-transform-remove-console": "~6.9.4",
114
114
  "babel-plugin-transform-strip-block": "~0.0.4",
115
- "body-parser": "~1.19.0",
116
- "browserslist": "~4.18.1",
115
+ "body-parser": "~1.19.1",
116
+ "browserslist": "~4.19.1",
117
117
  "bundlesize": "~0.18.1",
118
118
  "case-sensitive-paths-webpack-plugin": "~2.4.0",
119
119
  "chalk": "~4.1.2",
120
120
  "circular-dependency-plugin": "~5.2.2",
121
121
  "classnames": "~2.3.1",
122
- "compare-versions": "~4.1.1",
122
+ "compare-versions": "~4.1.2",
123
123
  "compression": "~1.7.4",
124
- "compression-webpack-plugin": "~9.0.1",
125
- "copy-webpack-plugin": "~10.0.0",
124
+ "compression-webpack-plugin": "~9.1.2",
125
+ "copy-webpack-plugin": "~10.1.0",
126
126
  "cors": "~2.8.5",
127
127
  "cross-env": "~7.0.3",
128
128
  "css-loader": "~6.5.1",
@@ -146,13 +146,13 @@
146
146
  "eslint-plugin-eslint-comments": "~3.2.0",
147
147
  "eslint-plugin-import": "~2.25.3",
148
148
  "eslint-plugin-jest": "~25.3.0",
149
- "eslint-plugin-jsdoc": "~37.1.0",
149
+ "eslint-plugin-jsdoc": "~37.2.2",
150
150
  "eslint-plugin-jsx-a11y": "~6.5.1",
151
151
  "eslint-plugin-mdx": "~1.16.0",
152
152
  "eslint-plugin-prettier": "~4.0.0",
153
153
  "eslint-plugin-react": "~7.27.1",
154
154
  "eslint-plugin-react-hooks": "~4.3.0",
155
- "eslint-plugin-redux-saga": "~1.2.1",
155
+ "eslint-plugin-redux-saga": "~1.3.2",
156
156
  "eslint-plugin-testing-library": "~5.0.1",
157
157
  "eslint-plugin-wdio": "~7.4.2",
158
158
  "execa": "~5.1.1",
@@ -170,7 +170,7 @@
170
170
  "imports-loader": "~3.1.1",
171
171
  "ip": "~1.1.5",
172
172
  "jest-axe": "~5.0.1",
173
- "jest-cli": "~27.4.3",
173
+ "jest-cli": "~27.4.5",
174
174
  "jest-sonar-reporter": "~2.0.0",
175
175
  "jest-styled-components": "~7.0.8",
176
176
  "jscodeshift": "~0.13.0",
@@ -180,17 +180,17 @@
180
180
  "minimist": "~1.2.5",
181
181
  "moment": "~2.29.1",
182
182
  "moment-locales-webpack-plugin": "~1.2.0",
183
- "msw": "~0.36.2",
183
+ "msw": "~0.36.3",
184
184
  "node-gyp": "~8.4.1",
185
185
  "node-plop": "~0.30.0",
186
186
  "nodemon": "~2.0.15",
187
187
  "npm-check-updates": "12.0.3",
188
188
  "null-loader": "~4.0.1",
189
189
  "pino": "~7.5.1",
190
- "pino-pretty": "~7.2.0",
190
+ "pino-pretty": "~7.3.0",
191
191
  "pinst": "~2.1.6",
192
- "plop": "~3.0.3",
193
- "postcss": "~8.4.4",
192
+ "plop": "~3.0.5",
193
+ "postcss": "~8.4.5",
194
194
  "postcss-jsx": "~0.36.4",
195
195
  "postcss-html": "~1.3.0",
196
196
  "postcss-markdown": "~1.2.0",
@@ -224,12 +224,12 @@
224
224
  "svgo": "~2.8.0",
225
225
  "terser-webpack-plugin": "~5.2.5",
226
226
  "ts-node": "~10.4.0",
227
- "tsc-alias": "~1.4.2",
227
+ "tsc-alias": "~1.5.0",
228
228
  "tsc-files": "~1.1.3",
229
229
  "tsconfig-paths": "~3.12.0",
230
230
  "tsconfig-paths-webpack-plugin": "~3.5.2",
231
231
  "type-fest": "~2.8.0",
232
- "typescript": "~4.5.2",
232
+ "typescript": "~4.5.4",
233
233
  "update-notifier": "~5.1.0",
234
234
  "url-loader": "~4.1.1",
235
235
  "uuid": "~8.3.2",