create-wervt 0.2.12 → 0.2.13
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.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
import { existsSync } from 'node:fs'
|
|
4
4
|
import { cp, readFile, rename, rm, writeFile } from 'node:fs/promises'
|
|
5
5
|
import { dirname, join, relative, resolve } from 'node:path'
|
|
6
|
+
import { fileURLToPath } from 'node:url'
|
|
6
7
|
import * as p from '@clack/prompts'
|
|
7
8
|
import { defineCommand, runMain } from 'citty'
|
|
8
9
|
import { downloadTemplate } from 'giget'
|
|
9
10
|
import { installDependencies } from 'nypm'
|
|
10
11
|
|
|
11
12
|
// templates/app, copied into the package when it's packed (see copy-template.js).
|
|
12
|
-
const BUNDLED_TEMPLATE = new URL('./template', import.meta.url)
|
|
13
|
+
const BUNDLED_TEMPLATE = fileURLToPath(new URL('./template', import.meta.url))
|
|
13
14
|
const NAME_RE = /^[a-z0-9]+(?:-[a-z0-9]+)*$/
|
|
14
15
|
|
|
15
16
|
// Without a terminal (CI logs, agent shells), clack's spinner prints every frame as text.
|