cmyr-template-cli 1.31.2 → 1.31.3
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.
- package/dist/plopfile.js +8 -2
- package/package.json +1 -1
package/dist/plopfile.js
CHANGED
|
@@ -715,7 +715,7 @@ async function initDependabot(projectPath, answers) {
|
|
|
715
715
|
if (await fs__default["default"].pathExists(dependabotPath)) {
|
|
716
716
|
const dependabot = yaml__default["default"].parse(await fs__default["default"].readFile(dependabotPath, 'utf-8'));
|
|
717
717
|
if (((_b = dependabot === null || dependabot === void 0 ? void 0 : dependabot.updates) === null || _b === void 0 ? void 0 : _b[0]['package-ecosystem']) === 'npm') {
|
|
718
|
-
dependabot.updates[0].ignore = [
|
|
718
|
+
dependabot.updates[0].ignore = lodash.uniqBy([
|
|
719
719
|
...((_c = dependabot === null || dependabot === void 0 ? void 0 : dependabot.updates) === null || _c === void 0 ? void 0 : _c[0].ignore) || [],
|
|
720
720
|
{
|
|
721
721
|
'dependency-name': 'semantic-release',
|
|
@@ -729,7 +729,7 @@ async function initDependabot(projectPath, answers) {
|
|
|
729
729
|
'dependency-name': '@commitlint/config-conventional',
|
|
730
730
|
versions: ['>= 19.0.0'],
|
|
731
731
|
},
|
|
732
|
-
];
|
|
732
|
+
], (e) => e['dependency-name']);
|
|
733
733
|
fs__default["default"].writeFile(dependabotPath, yaml__default["default"].stringify(dependabot));
|
|
734
734
|
}
|
|
735
735
|
}
|
|
@@ -1393,6 +1393,9 @@ async function jsFileExtRename(projectPath) {
|
|
|
1393
1393
|
const extname = path__default["default"].extname(filepath);
|
|
1394
1394
|
const basename = `${path__default["default"].basename(filepath, extname)}.cjs`;
|
|
1395
1395
|
const newPath = path__default["default"].join(dirpath, basename);
|
|
1396
|
+
if (await fs__default["default"].pathExists(newPath)) {
|
|
1397
|
+
await fs__default["default"].remove(newPath);
|
|
1398
|
+
}
|
|
1396
1399
|
await fs__default["default"].rename(filepath, newPath);
|
|
1397
1400
|
}
|
|
1398
1401
|
}
|
|
@@ -1407,6 +1410,9 @@ async function jsFileExtRename(projectPath) {
|
|
|
1407
1410
|
const extname = path__default["default"].extname(filepath);
|
|
1408
1411
|
const basename = `${path__default["default"].basename(filepath, extname)}.mjs`;
|
|
1409
1412
|
const newPath = path__default["default"].join(dirpath, basename);
|
|
1413
|
+
if (await fs__default["default"].pathExists(newPath)) {
|
|
1414
|
+
await fs__default["default"].remove(newPath);
|
|
1415
|
+
}
|
|
1410
1416
|
await fs__default["default"].rename(filepath, newPath);
|
|
1411
1417
|
}
|
|
1412
1418
|
}
|