mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix: include typescript declarations in plugin template (#2674)
This commit is contained in:
committed by
GitHub
parent
7c455b86b6
commit
c8262b736f
5
.changes/cli.rs-plugin-template-include-types.md
Normal file
5
.changes/cli.rs-plugin-template-include-types.md
Normal 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.
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user