From e22c83a0446af6ecb84d53574ed0195679de8864 Mon Sep 17 00:00:00 2001 From: bluwy Date: Fri, 28 Mar 2025 23:56:24 +0800 Subject: [PATCH] refactor: remove duplicated types --- build.preset.ts | 2 +- packages/core/package.json | 4 ++-- packages/prompts/package.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.preset.ts b/build.preset.ts index cce1398c..ca7a1796 100644 --- a/build.preset.ts +++ b/build.preset.ts @@ -3,7 +3,7 @@ import { definePreset } from 'unbuild'; // @see https://github.com/unjs/unbuild export default definePreset({ clean: true, - declaration: true, + declaration: 'node16', sourcemap: true, rollup: { emitCJS: false, diff --git a/packages/core/package.json b/packages/core/package.json index 70805c78..84c6d53e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -6,12 +6,12 @@ "module": "./dist/index.mjs", "exports": { ".": { - "types": "./dist/index.d.ts", + "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "./package.json": "./package.json" }, - "types": "./dist/index.d.ts", + "types": "./dist/index.d.mts", "repository": { "type": "git", "url": "git+https://github.com/bombshell-dev/clack.git", diff --git a/packages/prompts/package.json b/packages/prompts/package.json index fcc5592c..97e525e4 100644 --- a/packages/prompts/package.json +++ b/packages/prompts/package.json @@ -6,12 +6,12 @@ "module": "./dist/index.mjs", "exports": { ".": { - "types": "./dist/index.d.ts", + "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "./package.json": "./package.json" }, - "types": "./dist/index.d.ts", + "types": "./dist/index.d.mts", "repository": { "type": "git", "url": "git+https://github.com/bombshell-dev/clack.git",