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" ],