-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(trace): more trace fixes (#9474)
### Description A couple small fixes for tracing: - Add more extensions for support - Add more files to look at for a main file (`module` is non-standard but common) - Try resolving `@types/<package>` if `<package>` fails to resolve ### Testing Instructions Added tests for new extensions, for module field, and for importing types from `foo` that really come from `@types/foo` <!-- Give a quick description of steps to test your changes. -->
- Loading branch information
1 parent
698d5fa
commit 52779f1
Showing
14 changed files
with
55 additions
and
17 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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
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
4 changes: 3 additions & 1 deletion
4
turborepo-tests/integration/fixtures/turbo_trace_monorepo/apps/my-app/index.ts
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,4 +1,6 @@ | ||
import { useMyHook } from "utils/my-hook"; | ||
import ship from "utils"; | ||
import { blackbeard } from "../../packages/another/index.js"; | ||
import { blackbeard } from "../../packages/another/index.jsx"; | ||
import { Pirate } from "@/types.ts"; | ||
import { walkThePlank } from "module-package"; | ||
import type { ScalePoint } from "d3-scale"; |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
"maybefails": "exit 4" | ||
}, | ||
"dependencies": { | ||
"utils": "*" | ||
"utils": "*", | ||
"@types/d3-scale": "^4.0.2" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
turborepo-tests/integration/fixtures/turbo_trace_monorepo/apps/my-app/types.ts
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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...epo-tests/integration/fixtures/turbo_trace_monorepo/packages/module-package/my-module.mjs
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 const walkThePlank = "walk the plank matey"; |
4 changes: 4 additions & 0 deletions
4
...repo-tests/integration/fixtures/turbo_trace_monorepo/packages/module-package/package.json
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,4 @@ | ||
{ | ||
"name": "module-package", | ||
"module": "my-module.mjs" | ||
} |