mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(schema): do not use full path assets/public aliases
This commit is contained in:
parent
7bb2f5add3
commit
d0518650f9
@ -1,7 +1,7 @@
|
||||
import { existsSync } from 'node:fs'
|
||||
import { readdir } from 'node:fs/promises'
|
||||
import { defineUntypedSchema } from 'untyped'
|
||||
import { join, relative, resolve } from 'pathe'
|
||||
import { basename, join, relative, resolve } from 'pathe'
|
||||
import { isDebug, isDevelopment, isTest } from 'std-env'
|
||||
import { defu } from 'defu'
|
||||
import { findWorkspaceDir } from 'pkg-types'
|
||||
@ -420,8 +420,8 @@ export default defineUntypedSchema({
|
||||
'@': srcDir,
|
||||
'~~': rootDir,
|
||||
'@@': rootDir,
|
||||
[assetsDir]: join(srcDir, assetsDir),
|
||||
[publicDir]: join(srcDir, publicDir),
|
||||
[basename(assetsDir)]: join(srcDir, assetsDir),
|
||||
[basename(publicDir)]: join(srcDir, publicDir),
|
||||
...val,
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user