Skip to content

Commit fbf5c13

Browse files
author
徐远翔
committed
fix: can not find haul
1 parent e7cce93 commit fbf5c13

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

packages/bundler-haul/src/asyncClean.ts

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export default function asyncClean(path: string, ...excludes: string[]): Promise
2626
resolve();
2727
}
2828
});
29+
} else {
30+
resolve();
2931
}
3032
});
3133
});

packages/bundler-haul/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default (api: IApi) => {
6969

7070
watch(await generateFiles({ api, watch: isWatch }));
7171

72-
const child = fork(resolve.sync('@haul-bundler/cli/bin/haul.js', { basedir: absTmpPath }), argv, {
72+
const child = fork(require.resolve('@haul-bundler/cli/bin/haul.js'), argv, {
7373
stdio: 'inherit',
7474
cwd: absTmpPath,
7575
});

packages/preset/src/plugins/features/reactNative.ts

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export default (api: IApi) => {
5757
getUserLibDir('react-router-native', true) || dirname(require.resolve('react-router-native/package.json')),
5858
);
5959
memo.resolve.alias
60+
.set('react-native', winPath(REACT_NATIVE_PATH))
6061
.set(
6162
'history',
6263
winPath(

0 commit comments

Comments
 (0)