md-hopper 1.0.0-alpha.7 → 1.0.0-alpha.9
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.
|
@@ -34,9 +34,7 @@ const getAnswers = (details) => {
|
|
|
34
34
|
return [bold(path), id, title, output, lock];
|
|
35
35
|
}),
|
|
36
36
|
};
|
|
37
|
-
return inquirer.prompt([
|
|
38
|
-
question,
|
|
39
|
-
]);
|
|
37
|
+
return inquirer.prompt([question]);
|
|
40
38
|
};
|
|
41
39
|
const getQuestionParam = (settings, path, md, prefixExp) => {
|
|
42
40
|
const detail = getLinkedMdDetail(md);
|
|
@@ -93,14 +91,6 @@ const getGenerateId = (id, settings, path, prefixExp) => {
|
|
|
93
91
|
return id;
|
|
94
92
|
}
|
|
95
93
|
};
|
|
96
|
-
const getValue = (key, value) => {
|
|
97
|
-
switch (key) {
|
|
98
|
-
case 'lock':
|
|
99
|
-
return value === 'true';
|
|
100
|
-
default:
|
|
101
|
-
return value;
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
94
|
const generateLinks = async (settings, fullPath) => {
|
|
105
95
|
const { depth } = settings;
|
|
106
96
|
const execDir = getExecDir();
|
package/dist/cli/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "md-hopper",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -68,17 +68,17 @@
|
|
|
68
68
|
"chalk": "^5.3.0",
|
|
69
69
|
"commander": "^12.1.0",
|
|
70
70
|
"inquirer": "^9.2.23",
|
|
71
|
-
"inquirer-plugins": "^1.0.0-alpha.
|
|
71
|
+
"inquirer-plugins": "^1.0.0-alpha.5",
|
|
72
72
|
"marked": "^12.0.2",
|
|
73
73
|
"minimatch": "^9.0.4",
|
|
74
|
-
"my-gadgetry": "^1.2.
|
|
75
|
-
"uuid": "^
|
|
74
|
+
"my-gadgetry": "^1.2.17",
|
|
75
|
+
"uuid": "^10.0.0",
|
|
76
76
|
"zx": "^8.1.2"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@babel/core": "^7.24.
|
|
80
|
-
"@babel/preset-env": "^7.24.
|
|
81
|
-
"@babel/preset-typescript": "^7.24.
|
|
79
|
+
"@babel/core": "^7.24.7",
|
|
80
|
+
"@babel/preset-env": "^7.24.7",
|
|
81
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
82
82
|
"@eslint/js": "^8.57.0",
|
|
83
83
|
"@types/inquirer": "^9.0.7",
|
|
84
84
|
"@types/jest": "^29.5.12",
|
|
@@ -90,20 +90,20 @@
|
|
|
90
90
|
"eslint-config-prettier": "^9.1.0",
|
|
91
91
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
92
92
|
"eslint-plugin-import": "^2.29.1",
|
|
93
|
-
"eslint-plugin-jest": "^28.
|
|
93
|
+
"eslint-plugin-jest": "^28.6.0",
|
|
94
94
|
"eslint-plugin-unused-imports": "^3.2.0",
|
|
95
95
|
"fs-extra": "^11.2.0",
|
|
96
96
|
"husky": "^9.0.11",
|
|
97
97
|
"jest": "^29.7.0",
|
|
98
|
-
"lint-staged": "^15.2.
|
|
98
|
+
"lint-staged": "^15.2.6",
|
|
99
99
|
"npm-run-all2": "^6.2.0",
|
|
100
|
-
"prettier": "^3.3.
|
|
100
|
+
"prettier": "^3.3.2",
|
|
101
101
|
"ts-jest": "^29.1.4",
|
|
102
102
|
"ts-node": "^10.9.2",
|
|
103
103
|
"tsc-alias": "^1.8.10",
|
|
104
|
-
"tsx": "^4.
|
|
104
|
+
"tsx": "^4.15.2",
|
|
105
105
|
"typescript": "^5.4.5",
|
|
106
|
-
"typescript-eslint": "^7.
|
|
106
|
+
"typescript-eslint": "^7.13.0"
|
|
107
107
|
},
|
|
108
108
|
"files": [
|
|
109
109
|
"cli",
|