Skip to content

Commit

Permalink
fix: export module path error
Browse files Browse the repository at this point in the history
  • Loading branch information
logeast committed Aug 1, 2023
1 parent 9f5585f commit a1fbe09
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/vanilla-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"vite": "^4.4.5"
},
"dependencies": {
"magic-lottery": "^1.2.2"
"magic-lottery": "^1.2.3"
}
}
8 changes: 4 additions & 4 deletions examples/vanilla-basic/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/vanilla-basic/src/lottery.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import MagicLottery from "magic-lottery";

const lottery = new MagicLottery([]);
const lottery = new MagicLottery();

export function setupCounter(element: HTMLButtonElement) {
let counter = 0;
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"dist",
"src"
],
"main": "lib/index.umd.cjs",
"module": "lib/index.js",
"types": "lib/index.d.ts",
"main": "dist/index.umd.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
Expand All @@ -52,4 +52,4 @@
"vitepress": "1.0.0-beta.6",
"vitest": "^0.33.0"
}
}
}

0 comments on commit a1fbe09

Please sign in to comment.