From f35ccd139773cf86fa7b5733d38ccd7b6758645f Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 10 Apr 2026 15:27:03 +0100 Subject: [PATCH] fix: update module-sync path Typescript projects should load from dist --- src/check-project/manifests/typescript.js | 2 +- src/check-project/manifests/untyped-esm.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/check-project/manifests/typescript.js b/src/check-project/manifests/typescript.js index b050ca11a..aa482fe76 100644 --- a/src/check-project/manifests/typescript.js +++ b/src/check-project/manifests/typescript.js @@ -41,7 +41,7 @@ export async function typescriptManifest (context) { '.': { types: './dist/src/index.d.ts', import: './dist/src/index.js', - 'module-sync': './src/index.js' + 'module-sync': './dist/src/index.js' } }, manifest.exports) ), diff --git a/src/check-project/manifests/untyped-esm.js b/src/check-project/manifests/untyped-esm.js index 66984e958..9eb6143b2 100644 --- a/src/check-project/manifests/untyped-esm.js +++ b/src/check-project/manifests/untyped-esm.js @@ -38,7 +38,7 @@ export async function untypedESMManifest (context) { exports: sortExportsMap( merge({ '.': { - import: './dist/src/index.js', + import: './src/index.js', 'module-sync': './src/index.js' } }, manifest.exports)