From 7fc23cd434bab6fee93aab5a5a774959d79b2afe Mon Sep 17 00:00:00 2001 From: Kevin Marrec Date: Tue, 20 Aug 2019 13:01:34 +0200 Subject: [PATCH] fix(vue-app): provide typescript backward compatibility --- packages/vue-app/index.d.ts | 2 ++ packages/vue-app/package.json | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 packages/vue-app/index.d.ts diff --git a/packages/vue-app/index.d.ts b/packages/vue-app/index.d.ts new file mode 100644 index 0000000000..364f58779b --- /dev/null +++ b/packages/vue-app/index.d.ts @@ -0,0 +1,2 @@ +// Dummy type definition file to provide backward compatibility +// around Nuxt modules extending `@nuxt/vue-app` for Nuxt < 2.9 diff --git a/packages/vue-app/package.json b/packages/vue-app/package.json index 66697f42ed..51436cf6a5 100644 --- a/packages/vue-app/package.json +++ b/packages/vue-app/package.json @@ -6,8 +6,10 @@ "files": [ "dist", "template", - "vetur" + "vetur", + "index.d.ts" ], + "typings": "index.d.ts", "main": "dist/vue-app.js", "dependencies": { "node-fetch": "^2.6.0",