Skip to content

Commit

Permalink
feat: restore CommonJS bundle (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Dec 19, 2022
1 parent fe338bc commit 7db2643
Show file tree
Hide file tree
Showing 5 changed files with 201 additions and 137 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
"exports": "./src/index.ts",
"publishConfig": {
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
"require": "./dist/index.cjs"
},
"directory": "package"
},
Expand Down Expand Up @@ -55,7 +56,7 @@
"updateGitHooks": "simple-git-hooks"
},
"peerDependencies": {
"chart.js": "^4.0.0",
"chart.js": "^4.1.1",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
Expand Down Expand Up @@ -86,7 +87,7 @@
"@vitejs/plugin-react": "^3.0.0",
"@vitest/coverage-c8": "^0.25.2",
"browserslist": "^4.17.3",
"chart.js": "^4.0.1",
"chart.js": "^4.1.1",
"chartjs-adapter-date-fns": "^3.0.0",
"chartjs-plugin-annotation": "^2.0.1",
"chartjs-plugin-zoom": "^2.0.0",
Expand Down Expand Up @@ -117,7 +118,7 @@
"size-limit": "^8.0.0",
"standard-version": "^9.3.1",
"tsd": "^0.25.0",
"typescript": "^4.9.3",
"typescript": "^4.9.4",
"vite": "^4.0.0",
"vitest": "^0.25.2",
"vitest-canvas-mock": "^0.2.1"
Expand Down
Loading

0 comments on commit 7db2643

Please sign in to comment.