Skip to content

Commit

Permalink
chore(api): add package.json to the exports field (#1807)
Browse files Browse the repository at this point in the history
* chore(api): add `package.json` to the `exports` field

* move exports to package.json
  • Loading branch information
lucasfernog committed May 12, 2021
1 parent 0b87532 commit ab1ea96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/api-export-package-json.md
@@ -0,0 +1,5 @@
---
"api": patch
---

Adds `package.json` to the `exports` object.
3 changes: 3 additions & 0 deletions tooling/api/package.json
Expand Up @@ -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",
Expand Down

0 comments on commit ab1ea96

Please sign in to comment.