Skip to content

Commit

Permalink
fix: ENOTDIR invalid cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwa committed Aug 10, 2023
1 parent 059eb46 commit b01a325
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ export async function build(opts: BuildOptions): Promise<BuilderOutput> {
const clientDir = path.join(distDir, 'client');
const clientFiles = await glob('**', clientDir);
const serverDistFiles = await glob('**', serverDistDir);
const indexjsFile = await glob('*', path.join(distDir, 'index.js'));
const distFils = await glob('**', distDir);

// const serverDistFiles = await globAndPrefix(
Expand Down Expand Up @@ -287,8 +286,10 @@ export async function build(opts: BuildOptions): Promise<BuilderOutput> {
[quasarConfigName]: new FileFsRef({
fsPath: path.resolve(entrypointPath, quasarConfigName),
}),
'index.js': new FileFsRef({
fsPath: path.join(distDir, 'index.js'),
}),
...serverDistFiles,
...indexjsFile,
...nodeModules,
};

Expand Down
4 changes: 2 additions & 2 deletions tests/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { getQuasarConfig } from '../src/utils';

it('getQuasarConfig', () => {
// const testPro = '/Users/lin/Code/repo/quasar-docs-cn';
const testPro = '/Users/lin/Code/test/qua/quasar-vite';
const testPro = '/Users/lin/Code/repo/quasar-docs-cn';
// const testPro = '/Users/lin/Code/test/qua/quasar-vite';
const res = getQuasarConfig(testPro);

console.log('res', res);
Expand Down

0 comments on commit b01a325

Please sign in to comment.