mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(cli): normalize win32 paths for nuxt generate
cache snapshots (#7796)
Co-authored-by: lihbr <lihbr@users.noreply.github.com>
This commit is contained in:
parent
e295ae7ffd
commit
4db7e432df
@ -33,6 +33,7 @@
|
|||||||
"pretty-bytes": "^5.3.0",
|
"pretty-bytes": "^5.3.0",
|
||||||
"serve-static": "^1.14.1",
|
"serve-static": "^1.14.1",
|
||||||
"std-env": "^2.2.1",
|
"std-env": "^2.2.1",
|
||||||
|
"upath": "^1.2.0",
|
||||||
"wrap-ansi": "^6.2.0"
|
"wrap-ansi": "^6.2.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import path, { relative } from 'path'
|
import path, { relative } from 'path'
|
||||||
|
import upath from 'upath'
|
||||||
import fs from 'fs-extra'
|
import fs from 'fs-extra'
|
||||||
import crc32 from 'crc/lib/crc32'
|
import crc32 from 'crc/lib/crc32'
|
||||||
import consola from 'consola'
|
import consola from 'consola'
|
||||||
@ -48,7 +49,7 @@ export async function ensureBuild (cmd) {
|
|||||||
// Take a snapshot of current project
|
// Take a snapshot of current project
|
||||||
const snapshotOptions = {
|
const snapshotOptions = {
|
||||||
rootDir: nuxt.options.rootDir,
|
rootDir: nuxt.options.rootDir,
|
||||||
ignore: nuxt.options.generate.cache.ignore,
|
ignore: nuxt.options.generate.cache.ignore.map(upath.normalize),
|
||||||
globbyOptions: nuxt.options.generate.cache.globbyOptions
|
globbyOptions: nuxt.options.generate.cache.globbyOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user