create-slidev 0.49.29 → 0.50.0-beta.1

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { fileURLToPath } from 'node:url'
2
1
  import { dirname, resolve } from 'node:path'
2
+ import { fileURLToPath } from 'node:url'
3
3
  import fs from 'fs-extra'
4
4
 
5
5
  const __dirname = fileURLToPath(new URL('.', import.meta.url))
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 { execa } from 'execa'
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 execa(agent, ['install'], { stdio: 'inherit', cwd: root })
127
- await execa(agent, ['run', 'dev'], { stdio: 'inherit', cwd: root })
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.49.29",
4
+ "version": "0.50.0-beta.1",
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"
@@ -8,9 +8,9 @@
8
8
  "export": "slidev export"
9
9
  },
10
10
  "dependencies": {
11
- "@slidev/cli": "^0.49.29",
11
+ "@slidev/cli": "^0.50.0-beta.1",
12
12
  "@slidev/theme-default": "latest",
13
13
  "@slidev/theme-seriph": "latest",
14
- "vue": "^3.4.38"
14
+ "vue": "^3.5.9"
15
15
  }
16
16
  }
@@ -20,6 +20,8 @@ drawings:
20
20
  transition: slide-left
21
21
  # enable MDC Syntax: https://sli.dev/features/mdc
22
22
  mdc: true
23
+ # take snapshot for each slide in the overview
24
+ overviewSnapshots: true
23
25
  ---
24
26
 
25
27
  # Welcome to Slidev