diff --git a/packages/babel-parser/package.json b/packages/babel-parser/package.json index 5a69a9e44756..f436a1929fde 100644 --- a/packages/babel-parser/package.json +++ b/packages/babel-parser/package.json @@ -54,9 +54,9 @@ "type": "module", "exports": { ".": { + "types": "./typings/babel-parser.d.ts", "require": "./lib/index.cjs", - "default": "./lib/index.js", - "types": "./typings/babel-parser.d.ts" + "default": "./lib/index.js" }, "./package.json": "./package.json" } @@ -66,9 +66,9 @@ }, "exports": { ".": { + "types": "./typings/babel-parser.d.ts", "require": "./index.cjs", - "default": "./lib/index.js", - "types": "./typings/babel-parser.d.ts" + "default": "./lib/index.js" }, "./package.json": "./package.json" }, diff --git a/packages/babel-types/package.json b/packages/babel-types/package.json index 42bc4ee35976..094b647c2416 100644 --- a/packages/babel-types/package.json +++ b/packages/babel-types/package.json @@ -53,8 +53,8 @@ }, "exports": { ".": { - "default": "./lib/index.js", - "types": "./lib/index-legacy.d.ts" + "types": "./lib/index-legacy.d.ts", + "default": "./lib/index.js" }, "./package.json": "./package.json" },