diff --git a/.changeset/lucky-zebras-act.md b/.changeset/lucky-zebras-act.md new file mode 100644 index 000000000000..ece3153d5a93 --- /dev/null +++ b/.changeset/lucky-zebras-act.md @@ -0,0 +1,8 @@ +--- +'@modern-js/plugin-tailwindcss': patch +'@modern-js/plugin-bff': patch +'@modern-js/plugin-swc': patch +--- + +fix: add bff/tailwindcss/swc plugin exported types +fix: 添加 bff/tailwindcss/swc 插件的导出类型 diff --git a/packages/cli/plugin-bff/package.json b/packages/cli/plugin-bff/package.json index 060e910ef503..b00978a786b6 100644 --- a/packages/cli/plugin-bff/package.json +++ b/packages/cli/plugin-bff/package.json @@ -22,6 +22,7 @@ "module": "./dist/esm/cli.js", "exports": { ".": { + "types": "./dist/types/cli.d.ts", "jsnext:source": "./src/cli.ts", "default": "./dist/cjs/cli.js" }, diff --git a/packages/cli/plugin-swc/package.json b/packages/cli/plugin-swc/package.json index 387b33bd9217..946e53b85e62 100644 --- a/packages/cli/plugin-swc/package.json +++ b/packages/cli/plugin-swc/package.json @@ -26,6 +26,7 @@ "import": "./dist/index.js", "require": "./dist/index.js" }, + "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, diff --git a/packages/cli/plugin-tailwind/package.json b/packages/cli/plugin-tailwind/package.json index ad7b85b5a244..dc5601a5a2c9 100644 --- a/packages/cli/plugin-tailwind/package.json +++ b/packages/cli/plugin-tailwind/package.json @@ -26,6 +26,7 @@ "jsnext:source": "./src/index.ts", "require": "./dist/cjs/index.js" }, + "types": "./dist/types/index.d.ts", "default": "./dist/cjs/index.js" }, "./cli": {