From 317fc5553942d11f30139d790942217bcc102e83 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 21 Sep 2021 19:07:24 +0200 Subject: [PATCH] fix(pkg): enable declaration for for and webpack --- packages/nuxi/build.config.ts | 2 +- packages/vite/build.config.ts | 2 +- packages/vite/package.json | 1 + packages/webpack/build.config.ts | 2 +- packages/webpack/package.json | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/nuxi/build.config.ts b/packages/nuxi/build.config.ts index 729f7fb3be..a47eba0d6b 100644 --- a/packages/nuxi/build.config.ts +++ b/packages/nuxi/build.config.ts @@ -1,7 +1,7 @@ import { defineBuildConfig } from 'unbuild' export default defineBuildConfig({ - declaration: false, + declaration: true, inlineDependencies: true, entries: [ 'src/index' diff --git a/packages/vite/build.config.ts b/packages/vite/build.config.ts index 5fd10f9034..cc61565e6e 100644 --- a/packages/vite/build.config.ts +++ b/packages/vite/build.config.ts @@ -1,7 +1,7 @@ import { defineBuildConfig } from 'unbuild' export default defineBuildConfig({ - declaration: false, + declaration: true, entries: [ 'src/index' ], diff --git a/packages/vite/package.json b/packages/vite/package.json index 2c5b52a7c6..55d104e479 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -4,6 +4,7 @@ "repository": "nuxt/framework", "license": "MIT", "main": "./dist/index.cjs", + "types": "./dist/index.d.ts", "files": [ "dist" ], diff --git a/packages/webpack/build.config.ts b/packages/webpack/build.config.ts index cf10076274..f18cea6862 100644 --- a/packages/webpack/build.config.ts +++ b/packages/webpack/build.config.ts @@ -1,7 +1,7 @@ import { defineBuildConfig } from 'unbuild' export default defineBuildConfig({ - declaration: false, + declaration: true, entries: [ 'src/index', 'src/loaders/nuxt-setup-loader' diff --git a/packages/webpack/package.json b/packages/webpack/package.json index e8a966bcbe..6321c961f2 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -4,6 +4,7 @@ "repository": "nuxt/framework", "license": "MIT", "main": "./dist/index.cjs", + "types": "./dist/index.d.ts", "files": [ "dist" ],