File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import mri from 'mri'
44import { resolve } from 'pathe'
55import { createNitro } from './nitro'
6- import { build , prepare } from './build'
6+ import { build , prepare , copyPublicAssets } from './build'
77import { createDevServer } from './server/dev'
8- import { copyPublicAssets } from '.'
98
109async function main ( ) {
1110 const args = mri ( process . argv . slice ( 2 ) )
Original file line number Diff line number Diff line change 11import { fileURLToPath } from 'url'
22import { dirname , resolve } from 'pathe'
33
4- export const distDir = dirname ( fileURLToPath ( import . meta. url ) )
5- export const pkgDir = resolve ( distDir , '..' )
4+ let distDir = dirname ( fileURLToPath ( import . meta. url ) )
5+ if ( distDir . endsWith ( 'chunks' ) ) {
6+ distDir = dirname ( distDir )
7+ }
8+ export const pkgDir = resolve ( distDir , distDir . endsWith ( '/chunks' ) ? '../..' : '..' )
69export const runtimeDir = resolve ( distDir , 'runtime' )
You can’t perform that action at this time.
0 commit comments