From 4bf5f45d428d3e7daca44067c8dd745c3dd4dafb Mon Sep 17 00:00:00 2001 From: Bogdan Savluk Date: Thu, 13 May 2021 22:27:57 +0200 Subject: [PATCH] convert @babel/plugin-transform-runtime to typescript (#13216) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Huáng Jùnliàng --- packages/babel-plugin-transform-runtime/package.json | 2 +- .../src/get-runtime-path/{browser.js => browser.ts} | 0 .../src/get-runtime-path/{index.js => index.ts} | 0 .../src/{helpers.js => helpers.ts} | 0 .../babel-plugin-transform-runtime/src/{index.js => index.ts} | 0 tsconfig.json | 4 ++++ 6 files changed, 5 insertions(+), 1 deletion(-) rename packages/babel-plugin-transform-runtime/src/get-runtime-path/{browser.js => browser.ts} (100%) rename packages/babel-plugin-transform-runtime/src/get-runtime-path/{index.js => index.ts} (100%) rename packages/babel-plugin-transform-runtime/src/{helpers.js => helpers.ts} (100%) rename packages/babel-plugin-transform-runtime/src/{index.js => index.ts} (100%) diff --git a/packages/babel-plugin-transform-runtime/package.json b/packages/babel-plugin-transform-runtime/package.json index 72fbba434b..b4fdc57b09 100644 --- a/packages/babel-plugin-transform-runtime/package.json +++ b/packages/babel-plugin-transform-runtime/package.json @@ -17,7 +17,7 @@ ], "browser": { "./lib/get-runtime-path/index.js": "./lib/get-runtime-path/browser.js", - "./src/get-runtime-path/index.js": "./src/get-runtime-path/browser.js" + "./src/get-runtime-path/index.ts": "./src/get-runtime-path/browser.ts" }, "dependencies": { "@babel/helper-module-imports": "workspace:^7.13.12", diff --git a/packages/babel-plugin-transform-runtime/src/get-runtime-path/browser.js b/packages/babel-plugin-transform-runtime/src/get-runtime-path/browser.ts similarity index 100% rename from packages/babel-plugin-transform-runtime/src/get-runtime-path/browser.js rename to packages/babel-plugin-transform-runtime/src/get-runtime-path/browser.ts diff --git a/packages/babel-plugin-transform-runtime/src/get-runtime-path/index.js b/packages/babel-plugin-transform-runtime/src/get-runtime-path/index.ts similarity index 100% rename from packages/babel-plugin-transform-runtime/src/get-runtime-path/index.js rename to packages/babel-plugin-transform-runtime/src/get-runtime-path/index.ts diff --git a/packages/babel-plugin-transform-runtime/src/helpers.js b/packages/babel-plugin-transform-runtime/src/helpers.ts similarity index 100% rename from packages/babel-plugin-transform-runtime/src/helpers.js rename to packages/babel-plugin-transform-runtime/src/helpers.ts diff --git a/packages/babel-plugin-transform-runtime/src/index.js b/packages/babel-plugin-transform-runtime/src/index.ts similarity index 100% rename from packages/babel-plugin-transform-runtime/src/index.js rename to packages/babel-plugin-transform-runtime/src/index.ts diff --git a/tsconfig.json b/tsconfig.json index 2fc9a72dbc..61c1dc005e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,6 +27,7 @@ "./packages/babel-plugin-proposal-async-do-expressions/src/**/*.ts", "./packages/babel-plugin-syntax-async-do-expressions/src/**/*.ts", "./packages/babel-plugin-transform-react-jsx/src/**/*.ts", + "./packages/babel-plugin-transform-runtime/src/**/*.ts", "./packages/babel-plugin-transform-typescript/src/**/*.ts", "./packages/babel-template/src/**/*.ts", "./packages/babel-traverse/src/**/*.ts", @@ -109,6 +110,9 @@ "@babel/plugin-transform-react-jsx": [ "./packages/babel-plugin-transform-react-jsx/src" ], + "@babel/plugin-transform-runtime": [ + "./packages/babel-plugin-transform-runtime/src" + ], "@babel/plugin-transform-typescript": [ "./packages/babel-plugin-transform-typescript/src" ],