Skip to content

Commit

Permalink
chore: add package.json to export map
Browse files Browse the repository at this point in the history
We've only exposed the `version` field since vitejs#8456
Before that, users can only get the version number from `package.json`.

This fixes compatibility issue with iles:
https://github.com/ElMassimo/iles/blob/4618f4be7118c06324d74d87d35ba73c0767369b/packages/iles/src/node/cli.ts#L11
  • Loading branch information
sodatea committed Jun 28, 2022
1 parent 10936cd commit 6e6ef71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/package.json
Expand Up @@ -20,7 +20,8 @@
"./client": {
"types": "./client.d.ts"
},
"./dist/client/*": "./dist/client/*"
"./dist/client/*": "./dist/client/*",
"./package.json": "./package.json"
},
"files": [
"bin",
Expand Down

0 comments on commit 6e6ef71

Please sign in to comment.