create-vitrify 0.7.5 → 0.8.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vitrify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Stefan van Herwijnen",
|
|
6
6
|
"type": "module",
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"homepage": "https://github.com/simsustech/vitrify/tree/main/packages/create-vitrify#readme",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"handlebars": "^4.7.8",
|
|
25
|
-
"@inquirer/prompts": "^8.
|
|
25
|
+
"@inquirer/prompts": "^8.3.2",
|
|
26
26
|
"latest-version": "^9.0.0",
|
|
27
27
|
"minimist": "^1.2.8",
|
|
28
|
-
"@vitrify/tools": "0.
|
|
28
|
+
"@vitrify/tools": "0.5.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/minimist": "^1.2.5",
|
|
32
|
-
"@types/node": "^
|
|
32
|
+
"@types/node": "^25.5.0",
|
|
33
33
|
"typescript": "^5.9.3",
|
|
34
|
-
"vite": "^
|
|
35
|
-
"vue": "^3.5.
|
|
34
|
+
"vite": "^8.0.0",
|
|
35
|
+
"vue": "^3.5.30"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"dist",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Plugin } from 'vite'
|
|
2
2
|
import { promises } from 'fs'
|
|
3
|
+
import { fileURLToPath } from 'url'
|
|
3
4
|
const { readFile } = promises
|
|
4
5
|
|
|
5
6
|
export default async function ({
|
|
@@ -9,7 +10,7 @@ export default async function ({
|
|
|
9
10
|
} = {}): Promise<Plugin> {
|
|
10
11
|
const pkgJson = JSON.parse(
|
|
11
12
|
await readFile(
|
|
12
|
-
new URL('../package.json', import.meta.url)
|
|
13
|
+
fileURLToPath(new URL('../package.json', import.meta.url)),
|
|
13
14
|
'utf-8'
|
|
14
15
|
)
|
|
15
16
|
)
|
|
@@ -39,7 +40,9 @@ export default async function ({
|
|
|
39
40
|
}$`
|
|
40
41
|
),
|
|
41
42
|
// name: name + key.slice(1),
|
|
42
|
-
replacement:
|
|
43
|
+
replacement: fileURLToPath(
|
|
44
|
+
new URL('.' + val.src, import.meta.url)
|
|
45
|
+
)
|
|
43
46
|
}
|
|
44
47
|
})
|
|
45
48
|
|