@elliemae/pui-cli 5.21.0 → 5.22.0

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.
@@ -42,7 +42,7 @@ async function nodeBuild({ srcPath, commonJS, emitModuleType, target }) {
42
42
  const targetEnv = target === 'node' ? 'TARGET_ENV=node' : '';
43
43
  const babelEnv = commonJS ? ' ES_MODULES=false' : '';
44
44
  await exec(
45
- `cross-env NODE_ENV=production MODULE_EXTENSIONS=true ${targetEnv}${babelEnv} babel --extensions ".ts,.tsx,.js,.jsx" ${srcPath} --out-dir ${outDir} --copy-files --no-copy-ignored --ignore **/*.test.js --ignore **/*.test.ts --ignore **/*.spec.js --ignore **/*.spec.ts --ignore **/*.test.jsx --ignore **/*.test.tsx --ignore **/*.spec.jsx --ignore **/*.spec.tsx`,
45
+ `cross-env NODE_ENV=production MODULE_EXTENSIONS=true ${targetEnv}${babelEnv} babel --extensions ".ts,.tsx,.js,.jsx" ${srcPath} --out-dir ${outDir} --copy-files --no-copy-ignored --ignore **/*.d.ts --ignore **/*.test.js --ignore **/*.test.ts --ignore **/*.spec.js --ignore **/*.spec.ts --ignore **/*.test.jsx --ignore **/*.test.tsx --ignore **/*.spec.jsx --ignore **/*.spec.tsx`,
46
46
  { shell: true, stdio: 'inherit' },
47
47
  );
48
48
  if (emitModuleType) {
@@ -0,0 +1,16 @@
1
+ const importResolver = require('enhanced-resolve').create.sync({
2
+ conditionNames: ['import', 'node', 'default'],
3
+ extensions: ['.js', '.json', '.node', '.ts'],
4
+ });
5
+ const requireResolver = require('enhanced-resolve').create.sync({
6
+ conditionNames: ['require', 'node', 'default'],
7
+ extensions: ['.js', '.json', '.node', '.ts'],
8
+ });
9
+
10
+ module.exports = (request, options) => {
11
+ let resolver = requireResolver;
12
+ if (options.conditions?.includes('import')) {
13
+ resolver = importResolver;
14
+ }
15
+ return resolver(options.basedir, request);
16
+ };
@@ -71,7 +71,7 @@ const jestConfig = {
71
71
  },
72
72
  setupFilesAfterEnv: [`${getRootDir()}/lib/testing/setup-tests.js`],
73
73
  setupFiles: ['raf/polyfill', 'whatwg-fetch'],
74
- testRegex: '(app|lib).*/tests/.*\\.test\\.(js|ts)$',
74
+ testRegex: '(app|lib).*/tests/.*\\.test\\.(js|ts|tsx|jsx)$',
75
75
  snapshotSerializers: [],
76
76
  testResultsProcessor: 'jest-sonar-reporter',
77
77
  resolver: 'ts-jest-resolver',
@@ -1,3 +1,5 @@
1
- module.exports = {
2
- ReactComponent: 'IMAGE_MOCK',
3
- };
1
+ // eslint-disable-next-line no-unused-vars
2
+ import * as React from 'react';
3
+
4
+ export default 'SvgrURL';
5
+ export const ReactComponent = 'div';
@@ -189,6 +189,7 @@ module.exports = (options) => ({
189
189
  {
190
190
  test: /\.svg$/i,
191
191
  issuer: /\.[jt]sx?$/,
192
+ resourceQuery: /^((?!url).)*$/,
192
193
  use: ['@svgr/webpack'],
193
194
  },
194
195
  {
@@ -173,6 +173,7 @@ module.exports = (options) => ({
173
173
  {
174
174
  test: /\.svg$/i,
175
175
  issuer: /\.[jt]sx?$/,
176
+ resourceQuery: /^((?!url).)*$/,
176
177
  use: ['@svgr/webpack'],
177
178
  },
178
179
  {
@@ -95,6 +95,7 @@ const getModuleRules = () => [
95
95
  {
96
96
  test: /\.svg$/i,
97
97
  issuer: /\.[jt]sx?$/,
98
+ resourceQuery: /^((?!url).)*$/,
98
99
  use: ['@svgr/webpack'],
99
100
  },
100
101
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "5.21.0",
3
+ "version": "5.22.0",
4
4
  "private": false,
5
5
  "description": "EllieMae Platform UI CLI",
6
6
  "sideEffects": false,
@@ -93,7 +93,7 @@
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.11",
96
+ "@types/node": "~16.11.12",
97
97
  "@types/rimraf": "~3.0.2",
98
98
  "@types/testing-library__jest-dom": "~5.14.2",
99
99
  "@typescript-eslint/eslint-plugin": "~5.6.0",
@@ -132,7 +132,8 @@
132
132
  "dotenv": "~10.0.0",
133
133
  "dotenv-webpack": "~7.0.3",
134
134
  "duplicate-package-checker-webpack-plugin": "~3.0.0",
135
- "eslint": "~8.4.0",
135
+ "enhanced-resolve": "~5.8.3",
136
+ "eslint": "~8.4.1",
136
137
  "eslint-config-airbnb": "~18.2.1",
137
138
  "eslint-config-airbnb-base": "~15.0.0",
138
139
  "eslint-config-airbnb-typescript": "~15.0.0",
@@ -179,7 +180,7 @@
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.0",
183
+ "msw": "~0.36.1",
183
184
  "node-gyp": "~8.4.1",
184
185
  "node-plop": "~0.30.0",
185
186
  "nodemon": "~2.0.15",
@@ -211,7 +212,7 @@
211
212
  "script-loader": "~0.7.2",
212
213
  "semantic-release": "~18.0.1",
213
214
  "shelljs": "~0.8.4",
214
- "slackify-markdown": "~4.3.0",
215
+ "slackify-markdown": "~4.3.1",
215
216
  "storybook-react-router": "~1.0.8",
216
217
  "style-loader": "~3.3.1",
217
218
  "stylelint": "~14.1.0",