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