fix: include typescript declarations in plugin template (#2674)

This commit is contained in:
Jonas Kruckenberg
2021-09-28 15:03:38 +02:00
committed by GitHub
parent 7c455b86b6
commit c8262b736f
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"cli.rs": patch
---
Adds `types` field to the template package.json, so that generated typescript declarations get picked up correctly.

View File

@@ -7,6 +7,7 @@
"description": "",
"browser": "webview-dist/index.js",
"main": "webview-dist/index.js",
"types": "webview-dist/index.d.ts",
"scripts": {
"build": "rollup -c ./webview-src/rollup.config.js",
"prepublishOnly": "yarn build",