Emit security barrel modules in library build
Add security/index, security/model/index, security/policy/index, and security/pages/index as explicit lib entries. Under preserveModules these re-export barrels were never reachable from an entry (internal code imports the concrete files directly), so dist shipped only their .d.ts and consumer imports like `@reliancy/bface/security/model/index.js` failed to resolve. Not republished; picked up on the next release. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+9
-1
@@ -33,7 +33,15 @@ export default defineConfig({
|
|||||||
index: path.resolve(__dirname, 'src/index.js'),
|
index: path.resolve(__dirname, 'src/index.js'),
|
||||||
'ui/components/index': path.resolve(__dirname, 'src/ui/components/index.js'),
|
'ui/components/index': path.resolve(__dirname, 'src/ui/components/index.js'),
|
||||||
'ui/route-loading': path.resolve(__dirname, 'src/ui/route-loading.js'),
|
'ui/route-loading': path.resolve(__dirname, 'src/ui/route-loading.js'),
|
||||||
'ui/pages/SettingsPage': path.resolve(__dirname, 'src/ui/pages/SettingsPage.jsx')
|
'ui/pages/SettingsPage': path.resolve(__dirname, 'src/ui/pages/SettingsPage.jsx'),
|
||||||
|
// Barrel entries: these are pure re-export modules that internal code never
|
||||||
|
// imports (it imports the concrete files directly), so under preserveModules
|
||||||
|
// they are otherwise omitted from dist (only .d.ts emitted), breaking consumer
|
||||||
|
// imports like `@reliancy/bface/security/model/index.js`.
|
||||||
|
'security/index': path.resolve(__dirname, 'src/security/index.js'),
|
||||||
|
'security/model/index': path.resolve(__dirname, 'src/security/model/index.js'),
|
||||||
|
'security/policy/index': path.resolve(__dirname, 'src/security/policy/index.js'),
|
||||||
|
'security/pages/index': path.resolve(__dirname, 'src/security/pages/index.js')
|
||||||
},
|
},
|
||||||
formats: ['es']
|
formats: ['es']
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user