Skip to content

Commit 83ac4a8

Browse files
committed
bundle @meshery/schemas subpath exports to fix integration compatibility
The cloudApi, mesheryApi, and api subpath exports from @meshery/schemas use package.json exports field which not all consuming bundlers resolve. Force-bundle these subpaths via tsup noExternal while keeping the main @meshery/schemas entry external. Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent 16246fe commit 83ac4a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default defineConfig({
1111
dts: true,
1212
format: ['cjs', 'esm'],
1313
external: ['react', 'xstate', '@xstate/react', 'react-dom', 'mui-datatables'],
14+
noExternal: ['@meshery/schemas/cloudApi', '@meshery/schemas/mesheryApi', '@meshery/schemas/api'],
1415
minify: env === 'production',
1516
watch: env === 'development',
1617
sourcemap: env === 'development',

0 commit comments

Comments
 (0)