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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. 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).pathname
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-wervt",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "Create a new wervt app: Nuxt 5, Postgres with Drizzle, live data with Electric.",
5
5
  "homepage": "https://wervt.app",
6
6
  "license": "MIT",