@modern-js/entry-generator 1.4.4 → 1.4.5

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.
@@ -286515,7 +286515,7 @@ const refactorSingleEntry = async (context, generator) => {
286515
286515
  return files.length;
286516
286516
  }
286517
286517
 
286518
- return filePath !== '.eslintrc.json' && filePath !== 'modern-app-env.d.ts';
286518
+ return filePath !== '.eslintrc.json' && filePath !== '.eslintrc.js' && filePath !== 'modern-app-env.d.ts';
286519
286519
  }).map(file => _path.default.join(context.materials.default.basePath, entriesDir, file)); // create new dir in entriesDir and move code to that dir
286520
286520
 
286521
286521
 
@@ -287406,7 +287406,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
287406
287406
  exports.applyOptionsChain = void 0;
287407
287407
  // eslint-disable-next-line import/no-useless-path-segments
287408
287408
  const index_1 = __webpack_require__(10163);
287409
- const applyOptionsChain = (defaults, options, utils, mergeFn = Object.assign) => {
287409
+ function applyOptionsChain(defaults, options, utils, mergeFn = Object.assign) {
287410
287410
  if (!options) {
287411
287411
  return defaults;
287412
287412
  }
@@ -287423,13 +287423,13 @@ const applyOptionsChain = (defaults, options, utils, mergeFn = Object.assign) =>
287423
287423
  }
287424
287424
  }
287425
287425
  else if (Array.isArray(options)) {
287426
- return options.reduce((memo, cur) => (0, exports.applyOptionsChain)(memo, cur, utils, mergeFn), defaults);
287426
+ return options.reduce((memo, cur) => applyOptionsChain(memo, cur, utils, mergeFn), defaults);
287427
287427
  }
287428
287428
  else {
287429
287429
  throw new Error(`applyOptionsChain error:\ndefault options is: ${JSON.stringify(defaults)}`);
287430
287430
  }
287431
287431
  return defaults;
287432
- };
287432
+ }
287433
287433
  exports.applyOptionsChain = applyOptionsChain;
287434
287434
 
287435
287435
 
@@ -288038,6 +288038,24 @@ const ensureAbsolutePath = (base, filePath) => path_1.default.isAbsolute(filePat
288038
288038
  exports.ensureAbsolutePath = ensureAbsolutePath;
288039
288039
 
288040
288040
 
288041
+ /***/ }),
288042
+
288043
+ /***/ 88056:
288044
+ /***/ ((__unused_webpack_module, exports) => {
288045
+
288046
+ "use strict";
288047
+
288048
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
288049
+ exports.ensureArray = void 0;
288050
+ const ensureArray = (params) => {
288051
+ if (Array.isArray(params)) {
288052
+ return params;
288053
+ }
288054
+ return [params];
288055
+ };
288056
+ exports.ensureArray = ensureArray;
288057
+
288058
+
288041
288059
  /***/ }),
288042
288060
 
288043
288061
  /***/ 33281:
@@ -288488,6 +288506,7 @@ __exportStar(__webpack_require__(2304), exports);
288488
288506
  __exportStar(__webpack_require__(93591), exports);
288489
288507
  __exportStar(__webpack_require__(86703), exports);
288490
288508
  __exportStar(__webpack_require__(44908), exports);
288509
+ __exportStar(__webpack_require__(88056), exports);
288491
288510
  __exportStar(__webpack_require__(47872), exports);
288492
288511
  __exportStar(__webpack_require__(77244), exports);
288493
288512
  __exportStar(__webpack_require__(27947), exports);
@@ -289009,7 +289028,7 @@ const isRelativePath = (test) => /^\.\.?($|[\\/])/.test(test);
289009
289028
  exports.isRelativePath = isRelativePath;
289010
289029
  const normalizeOutputPath = (s) => s.replace(/\\/g, '\\\\');
289011
289030
  exports.normalizeOutputPath = normalizeOutputPath;
289012
- const normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p));
289031
+ const normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || ''));
289013
289032
  exports.normalizeToPosixPath = normalizeToPosixPath;
289014
289033
 
289015
289034
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.4.4",
14
+ "version": "1.4.5",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/js/node/main.js",
17
17
  "files": [
@@ -28,7 +28,7 @@
28
28
  "@modern-js/generator-common": "1.4.12",
29
29
  "@modern-js/generator-utils": "1.2.6",
30
30
  "@modern-js/plugin-i18n": "1.2.7",
31
- "@modern-js/utils": "1.7.6",
31
+ "@modern-js/utils": "1.7.8",
32
32
  "@types/jest": "^27",
33
33
  "@types/node": "^14",
34
34
  "typescript": "^4",