From 37c3ebac96201ebfc3f2edf7fc6241b8a19c9fae Mon Sep 17 00:00:00 2001 From: kongjiacong Date: Tue, 9 Jul 2024 19:46:32 +0800 Subject: [PATCH 1/2] chore: add exported types --- packages/cli/plugin-bff/package.json | 1 + packages/cli/plugin-swc/package.json | 1 + packages/cli/plugin-tailwind/package.json | 1 + 3 files changed, 3 insertions(+) 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": { From 4341dc239ed6f7d04f463edbf36eafb398b1c1a3 Mon Sep 17 00:00:00 2001 From: kongjiacong Date: Tue, 9 Jul 2024 19:48:06 +0800 Subject: [PATCH 2/2] docs: add changeset --- .changeset/lucky-zebras-act.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/lucky-zebras-act.md 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 插件的导出类型