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