cmyr-template-cli 1.31.1 → 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 +10 -3
- package/package.json +4 -4
package/dist/plopfile.js
CHANGED
|
@@ -148,7 +148,7 @@ const TEMPLATES_META_LIST = [
|
|
|
148
148
|
language: 'typescript',
|
|
149
149
|
runtime: 'nodejs',
|
|
150
150
|
vueVersion: 0,
|
|
151
|
-
docker:
|
|
151
|
+
docker: false,
|
|
152
152
|
priority: 0,
|
|
153
153
|
},
|
|
154
154
|
{
|
|
@@ -284,6 +284,7 @@ const NODE_DEPENDENCIES = {
|
|
|
284
284
|
log4js: '^6.9.1',
|
|
285
285
|
md5: '^2.3.0',
|
|
286
286
|
rimraf: '^5.0.0',
|
|
287
|
+
'rss-parser': '^3.12.0',
|
|
287
288
|
zx: '^8.1.0',
|
|
288
289
|
},
|
|
289
290
|
};
|
|
@@ -714,7 +715,7 @@ async function initDependabot(projectPath, answers) {
|
|
|
714
715
|
if (await fs__default["default"].pathExists(dependabotPath)) {
|
|
715
716
|
const dependabot = yaml__default["default"].parse(await fs__default["default"].readFile(dependabotPath, 'utf-8'));
|
|
716
717
|
if (((_b = dependabot === null || dependabot === void 0 ? void 0 : dependabot.updates) === null || _b === void 0 ? void 0 : _b[0]['package-ecosystem']) === 'npm') {
|
|
717
|
-
dependabot.updates[0].ignore = [
|
|
718
|
+
dependabot.updates[0].ignore = lodash.uniqBy([
|
|
718
719
|
...((_c = dependabot === null || dependabot === void 0 ? void 0 : dependabot.updates) === null || _c === void 0 ? void 0 : _c[0].ignore) || [],
|
|
719
720
|
{
|
|
720
721
|
'dependency-name': 'semantic-release',
|
|
@@ -728,7 +729,7 @@ async function initDependabot(projectPath, answers) {
|
|
|
728
729
|
'dependency-name': '@commitlint/config-conventional',
|
|
729
730
|
versions: ['>= 19.0.0'],
|
|
730
731
|
},
|
|
731
|
-
];
|
|
732
|
+
], (e) => e['dependency-name']);
|
|
732
733
|
fs__default["default"].writeFile(dependabotPath, yaml__default["default"].stringify(dependabot));
|
|
733
734
|
}
|
|
734
735
|
}
|
|
@@ -1392,6 +1393,9 @@ async function jsFileExtRename(projectPath) {
|
|
|
1392
1393
|
const extname = path__default["default"].extname(filepath);
|
|
1393
1394
|
const basename = `${path__default["default"].basename(filepath, extname)}.cjs`;
|
|
1394
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
|
+
}
|
|
1395
1399
|
await fs__default["default"].rename(filepath, newPath);
|
|
1396
1400
|
}
|
|
1397
1401
|
}
|
|
@@ -1406,6 +1410,9 @@ async function jsFileExtRename(projectPath) {
|
|
|
1406
1410
|
const extname = path__default["default"].extname(filepath);
|
|
1407
1411
|
const basename = `${path__default["default"].basename(filepath, extname)}.mjs`;
|
|
1408
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
|
+
}
|
|
1409
1416
|
await fs__default["default"].rename(filepath, newPath);
|
|
1410
1417
|
}
|
|
1411
1418
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cmyr-template-cli",
|
|
3
|
-
"version": "1.31.
|
|
3
|
+
"version": "1.31.3",
|
|
4
4
|
"description": "草梅友仁自制的项目模板创建器",
|
|
5
5
|
"author": "CaoMeiYouRen",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"build:prod": "npm run build && rimraf temp && cross-env NODE_ENV=production ct create"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@rollup/plugin-commonjs": "^
|
|
35
|
+
"@rollup/plugin-commonjs": "^28.0.0",
|
|
36
36
|
"@rollup/plugin-json": "^6.0.0",
|
|
37
37
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
38
|
-
"@rollup/plugin-replace": "^
|
|
39
|
-
"@rollup/plugin-typescript": "^
|
|
38
|
+
"@rollup/plugin-replace": "^6.0.1",
|
|
39
|
+
"@rollup/plugin-typescript": "^12.1.0",
|
|
40
40
|
"@semantic-release/changelog": "^6.0.0",
|
|
41
41
|
"@semantic-release/git": "^10.0.0",
|
|
42
42
|
"@types/debug": "^4.1.5",
|