From 35646648863e2a90f7fa3e425572f97d819fba8d Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Tue, 21 Mar 2023 21:33:22 +0900 Subject: [PATCH 1/2] Components: Ship TypeScript types --- packages/components/package.json | 1 + packages/components/tsconfig.json | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/package.json b/packages/components/package.json index 5cd52073b412af..8d08faa224e7b8 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -28,6 +28,7 @@ "build-style/**", "src/**/*.scss" ], + "types": "build-types", "dependencies": { "@babel/runtime": "^7.16.0", "@emotion/cache": "^11.7.1", diff --git a/packages/components/tsconfig.json b/packages/components/tsconfig.json index 242ff98906cccd..55f368924c2337 100644 --- a/packages/components/tsconfig.json +++ b/packages/components/tsconfig.json @@ -43,7 +43,6 @@ "src/**/*.native.js", "src/**/react-native-*", "src/**/stories/**/*.js", // only exclude js files, tsx files should be checked - "src/**/test/**/*.js", // only exclude js files, ts{x} files should be checked - "src/index.js" + "src/**/test/**/*.js" // only exclude js files, ts{x} files should be checked ] } From 98e379a28dee4f84a25fd4ef0bc6db5aed812799 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Thu, 23 Mar 2023 19:54:20 +0100 Subject: [PATCH 2/2] Rename entry points --- packages/components/src/{index.js => index.ts} | 0 packages/components/src/{private-apis.js => private-apis.ts} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename packages/components/src/{index.js => index.ts} (100%) rename packages/components/src/{private-apis.js => private-apis.ts} (100%) diff --git a/packages/components/src/index.js b/packages/components/src/index.ts similarity index 100% rename from packages/components/src/index.js rename to packages/components/src/index.ts diff --git a/packages/components/src/private-apis.js b/packages/components/src/private-apis.ts similarity index 100% rename from packages/components/src/private-apis.js rename to packages/components/src/private-apis.ts