Skip to content

Commit

Permalink
🐛 Fix vite library mode exports typo
Browse files Browse the repository at this point in the history
  • Loading branch information
CryogenicPlanet committed Jan 16, 2022
1 parent 3b04a57 commit 1aae9f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion installer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tsdev-installer",
"version": "0.0.18",
"version": "0.0.19",
"description": "The installer for tsdev, a better tsdx",
"scripts": {
"postinstall": "node dist/postinstall.js install",
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func generatePackageJson(name string) {

if projectConfig.Template == types.ViteLibraryModeTemplate {
// Vite library mode exports https://vitejs.dev/guide/build.html#library-mode
packageJson.Exports = map[string]map[string]string{".": {"imports": "./dist/index.es.js", "exports": "./dist/index.umd.js"}}
packageJson.Exports = map[string]map[string]string{".": {"imports": "./dist/index.es.js", "require": "./dist/index.umd.js"}}
}

case types.NextTemplate:
Expand Down

0 comments on commit 1aae9f6

Please sign in to comment.