chore(api): add package.json to the exports field (#1807)

* chore(api): add `package.json` to the `exports` field

* move exports to package.json
This commit is contained in:
Lucas Fernandes Nogueira 2021-05-12 14:56:14 -03:00 committed by GitHub
parent 0b87532706
commit ab1ea96478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"api": patch
---
Adds `package.json` to the `exports` object.

View File

@ -7,6 +7,9 @@
"type": "opencollective",
"url": "https://opencollective.com/tauri"
},
"exports": {
"./package.json": "./package.json"
},
"scripts": {
"build": "rimraf ./dist && rollup -c --silent && node ./scripts/after-build.cjs",
"npm-pack": "yarn build && cd ./dist && npm pack",