Skip to content

Commit 49ada27

Browse files
authored
fix: resolve follow-redirects from runtime package, so it's available also in auto-installs (#2124)
1 parent 1ea5fb4 commit 49ada27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/helpers/functions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ const traceNextServer = async (publish: string): Promise<string[]> => {
269269

270270
export const traceNPMPackage = async (packageName: string, publish: string) => {
271271
try {
272-
return await glob(join(dirname(require.resolve(packageName, { paths: [publish] })), '**', '*'), {
272+
return await glob(join(dirname(require.resolve(packageName, { paths: [__dirname, publish] })), '**', '*'), {
273273
absolute: true,
274274
})
275275
} catch (error) {

0 commit comments

Comments
 (0)