create-slidev 0.49.29 → 0.50.0-beta.2
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/build.mjs +1 -1
- package/index.mjs +7 -7
- package/package.json +3 -3
- package/template/package.json +2 -2
- package/template/slides.md +2 -0
package/build.mjs
CHANGED
package/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
|
|
4
|
-
// @ts-check
|
|
5
|
-
import process from 'node:process'
|
|
6
4
|
import fs from 'node:fs'
|
|
7
|
-
import path from 'node:path'
|
|
8
5
|
import { createRequire } from 'node:module'
|
|
6
|
+
import path from 'node:path'
|
|
7
|
+
// @ts-check
|
|
8
|
+
import process from 'node:process'
|
|
9
9
|
import { fileURLToPath } from 'node:url'
|
|
10
|
+
import { blue, bold, cyan, dim, green, yellow } from 'kolorist'
|
|
10
11
|
import minimist from 'minimist'
|
|
11
12
|
import prompts from 'prompts'
|
|
12
|
-
import {
|
|
13
|
-
import { blue, bold, cyan, dim, green, yellow } from 'kolorist'
|
|
13
|
+
import { x } from 'tinyexec'
|
|
14
14
|
|
|
15
15
|
const argv = minimist(process.argv.slice(2))
|
|
16
16
|
const cwd = process.cwd()
|
|
@@ -123,8 +123,8 @@ async function init() {
|
|
|
123
123
|
if (!agent)
|
|
124
124
|
return
|
|
125
125
|
|
|
126
|
-
await
|
|
127
|
-
await
|
|
126
|
+
await x(agent, ['install'], { nodeOptions: { stdio: 'inherit', cwd: root } })
|
|
127
|
+
await x(agent, ['run', 'dev'], { nodeOptions: { stdio: 'inherit', cwd: root } })
|
|
128
128
|
}
|
|
129
129
|
else {
|
|
130
130
|
console.log(dim('\n start it later by:\n'))
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-slidev",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.50.0-beta.2",
|
|
5
5
|
"description": "Create starter template for Slidev",
|
|
6
6
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"node": ">=18.0.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"execa": "^9.3.1",
|
|
24
23
|
"kolorist": "^1.8.0",
|
|
25
24
|
"minimist": "^1.2.8",
|
|
26
|
-
"prompts": "^2.4.2"
|
|
25
|
+
"prompts": "^2.4.2",
|
|
26
|
+
"tinyexec": "^0.3.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "node build.mjs"
|
package/template/package.json
CHANGED