From 3ca7eca7cf2ff1fd3888698a53ec9840e67b026e Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 20 Aug 2019 21:47:59 +0430 Subject: [PATCH] fix(config): provide typescript backward compatibility (#6258) --- packages/config/index.d.ts | 2 ++ packages/config/package.json | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 packages/config/index.d.ts diff --git a/packages/config/index.d.ts b/packages/config/index.d.ts new file mode 100644 index 0000000000..f4b4fe4432 --- /dev/null +++ b/packages/config/index.d.ts @@ -0,0 +1,2 @@ +// Dummy type definition file to provide backward compatibility +// around Nuxt modules extending `@nuxt/config` for Nuxt < 2.9 diff --git a/packages/config/package.json b/packages/config/package.json index 56cda7a350..41449761b3 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -4,9 +4,11 @@ "repository": "nuxt/nuxt.js", "license": "MIT", "files": [ - "dist" + "dist", + "index.d.ts" ], "main": "dist/config.js", + "typings": "index.d.ts", "dependencies": { "@nuxt/utils": "2.9.1", "consola": "^2.10.1",