-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly generate import paths in stub entry points for deeply neste…
…d entries (#184)
- Loading branch information
Showing
8 changed files
with
48 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@crackle/core': patch | ||
--- | ||
|
||
Correctly generate import paths in stub entry points for deeply nested entries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# managed by crackle | ||
/cli | ||
/deep/re-export | ||
/dist | ||
/re-export | ||
# end managed by crackle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from '../../index'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
tests/__snapshots__/dev/dev-entries/dist/deep/re-export.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* #region dist/deep/re-export.cjs */ | ||
require("../../../../node_modules/.pnpm/tsx@[version]/node_modules/tsx/dist/cjs/index.cjs"); | ||
|
||
const _mod = require("../../src/entries/deep/re-export.ts"); | ||
|
||
module.exports = _mod; | ||
/* #endregion */ | ||
|
||
|
||
/* #region dist/deep/re-export.d.mts */ | ||
export * from "../../src/entries/deep/re-export"; | ||
export { default } from "../../src/entries/deep/re-export"; | ||
/* #endregion */ | ||
|
||
|
||
/* #region dist/deep/re-export.d.ts */ | ||
export * from "../../src/entries/deep/re-export"; | ||
export { default } from "../../src/entries/deep/re-export"; | ||
/* #endregion */ | ||
|
||
|
||
/* #region dist/deep/re-export.mjs */ | ||
import { createRequire } from "module"; | ||
|
||
const require = createRequire(import.meta.url); | ||
|
||
require("../../../../node_modules/.pnpm/tsx@[version]/node_modules/tsx/dist/cjs/index.cjs"); | ||
|
||
const _mod = require("../../src/entries/deep/re-export.ts"); | ||
|
||
export const something = _mod.something; | ||
export default _mod.default; | ||
/* #endregion */ |
33 changes: 0 additions & 33 deletions
33
tests/__snapshots__/dev/dev-entries/dist/re-export.ts.snap
This file was deleted.
Oops, something went wrong.