diff --git a/.changes/api-export-package-json.md b/.changes/api-export-package-json.md new file mode 100644 index 00000000000..bc04cc61e6d --- /dev/null +++ b/.changes/api-export-package-json.md @@ -0,0 +1,5 @@ +--- +"api": patch +--- + +Adds `package.json` to the `exports` object. diff --git a/tooling/api/package.json b/tooling/api/package.json index 9446ef83d8f..97991151c1d 100644 --- a/tooling/api/package.json +++ b/tooling/api/package.json @@ -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",