Skip to content

Commit

Permalink
Align types location for metro-source-map entry point
Browse files Browse the repository at this point in the history
Summary:
Follow-up to D44509764. `metro-source-map`'s entry point is `src/source-map.js`.

Changelog: **[Types]** Fix TypeScript types entry point for metro-source-map

Reviewed By: jacdebug

Differential Revision: D44953195

fbshipit-source-id: 82aafbe443f51ae1f1f2dffe7d4ce4ea206fa00f
  • Loading branch information
huntie authored and facebook-github-bot committed Apr 13, 2023
1 parent 7deb525 commit 3238bbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
File renamed without changes.
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"paths": {
"metro": ["./packages/metro/types"],
"metro/src/*": ["./packages/metro/types/*"],
"metro-*": ["./packages/metro-*/types"]
"metro-*": ["./packages/metro-*/types"],
// Mappings for main entry points which are not "src/index.js". Required
// only for this tsconfig - external consumers will read the "main" field
// and find the adjacent typedef file.
"metro-source-map": ["./packages/metro-source-map/types/source-map.d.ts"]
}
}
}

0 comments on commit 3238bbc

Please sign in to comment.