create-slidev-theme 52.20.1 → 53.1.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.
- package/index.mjs +9 -3
- package/package.json +3 -3
- package/template/package.json +3 -3
package/index.mjs
CHANGED
|
@@ -78,7 +78,9 @@ async function init() {
|
|
|
78
78
|
|
|
79
79
|
const pkgManager = (RE_PNPM.test(process.env.npm_execpath) || RE_PNPM.test(process.env.npm_config_user_agent))
|
|
80
80
|
? 'pnpm'
|
|
81
|
-
: RE_YARN.test(process.env.npm_execpath)
|
|
81
|
+
: RE_YARN.test(process.env.npm_execpath)
|
|
82
|
+
? 'yarn'
|
|
83
|
+
: 'npm'
|
|
82
84
|
|
|
83
85
|
const related = path.relative(cwd, root)
|
|
84
86
|
|
|
@@ -88,8 +90,12 @@ async function init() {
|
|
|
88
90
|
if (root !== cwd)
|
|
89
91
|
console.log(blue(` cd ${bold(related)}`))
|
|
90
92
|
|
|
91
|
-
console.log(blue(` ${pkgManager === 'yarn'
|
|
92
|
-
|
|
93
|
+
console.log(blue(` ${pkgManager === 'yarn'
|
|
94
|
+
? 'yarn'
|
|
95
|
+
: `${pkgManager} install`}`))
|
|
96
|
+
console.log(blue(` ${pkgManager === 'yarn'
|
|
97
|
+
? 'yarn dev'
|
|
98
|
+
: `${pkgManager} run dev`}`))
|
|
93
99
|
console.log()
|
|
94
100
|
console.log(` ${cyan('●')} ${blue('■')} ${yellow('▲')}`)
|
|
95
101
|
console.log()
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-slidev-theme",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "53.1.0",
|
|
5
5
|
"description": "Create starter theme template for Slidev",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"create-slidev-theme": "index.mjs"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
20
|
+
"node": ">=22.12.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"ansis": "^4.
|
|
23
|
+
"ansis": "^4.5.0",
|
|
24
24
|
"minimist": "^1.2.8",
|
|
25
25
|
"pathe": "^2.0.3",
|
|
26
26
|
"prompts": "^2.4.2"
|
package/template/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"slidev"
|
|
6
6
|
],
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=22.12.0"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "slidev build example.md",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"screenshot": "slidev export example.md --format png"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@slidev/types": "^
|
|
17
|
+
"@slidev/types": "^53.1.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@slidev/cli": "^
|
|
20
|
+
"@slidev/cli": "^53.1.0"
|
|
21
21
|
},
|
|
22
22
|
"//": "Learn more: https://sli.dev/guide/write-theme.html",
|
|
23
23
|
"slidev": {
|