Skip to content

Commit 86b43b4

Browse files
committed
fix(core): resolve deep source entrypoints
1 parent 59b97dc commit 86b43b4

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

storage/framework/core/router/tests/import-graph.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ describe('router import graph', () => {
2525
const uploadedFileInputs = Object.keys(result.metafile?.inputs ?? {})
2626
.filter(source => source.endsWith('storage/src/uploaded-file.ts'))
2727
expect(uploadedFileInputs).toHaveLength(1)
28+
const builtDeepEntrypoints = Object.keys(result.metafile?.inputs ?? {})
29+
.filter(source => source.includes('/dist/') && (source.includes('/storage/') || source.includes('/error-handling/')))
30+
expect(builtDeepEntrypoints).toEqual([])
2831

2932
const eagerErrorHandlingBarrelImports = Object.entries(result.metafile?.inputs ?? {}).flatMap(([source, meta]) =>
3033
meta.imports

storage/framework/core/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
// package, which is every CI run.
2626
"@stacksjs/actions/*": ["./actions/src/*"],
2727
// Deep runtime entrypoints must resolve to source in a clean checkout.
28+
"@stacksjs/error-handling/*": ["./error-handling/src/*"],
2829
"@stacksjs/storage/*": ["./storage/src/*"],
2930
"@stacksjs/*": ["./*/src"],
3031
"ts-pantry": ["../../../node_modules/ts-pantry"],

storage/framework/core/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// six errors that have kept the typecheck job red.
1616
"@stacksjs/actions/*": ["./actions/src/*"],
1717
// Deep runtime entrypoints must resolve to source in a clean checkout.
18+
"@stacksjs/error-handling/*": ["./error-handling/src/*"],
1819
"@stacksjs/storage/*": ["./storage/src/*"],
1920
// The ORM route generator is a package entrypoint of its own, so the
2021
// vendored `storage/framework/orm/routes.ts` can reach it from an app

storage/framework/tsconfig.app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"paths": {
3535
"@stacksjs/actions/*": ["./core/actions/src/*"],
3636
// Deep runtime entrypoints must resolve to source in a clean checkout.
37+
"@stacksjs/error-handling/*": ["./core/error-handling/src/*"],
3738
"@stacksjs/storage/*": ["./core/storage/src/*"],
3839
// Deep entrypoint, mapped explicitly: `@stacksjs/*` below binds the
3940
// wildcard to the whole remainder, so `@stacksjs/orm/routes` looks for

0 commit comments

Comments
 (0)