Skip to content

Commit

Permalink
fix(web-storage): include .ts files needed by codegen (#2954)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Feb 6, 2024
1 parent 3e3a1eb commit f079264
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-candles-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-native-webapis/web-storage": patch
---

Include `.ts` files needed by codegen
5 changes: 3 additions & 2 deletions incubator/@react-native-webapis/web-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
"ios/*",
"lib/*",
"macos/*",
"windows/*",
"react-native.config.js"
"react-native.config.js",
"src/*",
"windows/*"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 1 addition & 3 deletions packages/metro-plugin-typescript/src/projectCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ export function createProjectCache(
Object.values(projects).forEach((projectsByPlatform) => {
const info = projectsByPlatform[platform];
if (info) {
if (info.tsproject) {
info.tsproject.dispose();
}
info.tsproject?.dispose();
delete projectsByPlatform[platform];
}
});
Expand Down

0 comments on commit f079264

Please sign in to comment.