Skip to content

Commit

Permalink
fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl committed Jun 14, 2023
1 parent ddf6392 commit 1399f7b
Show file tree
Hide file tree
Showing 3 changed files with 564 additions and 1,354 deletions.
49 changes: 26 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reakeys",
"version": "1.3.0",
"version": "1.3.1",
"description": "React Hotkeys Hooks using MouseTrap",
"scripts": {
"build": "vite build --mode library",
Expand All @@ -16,16 +16,19 @@
"prepare": "husky install"
},
"type": "module",
"source": "src/index.ts",
"types": "dist/index.d.ts",
"main": "./dist/reakeys.umd.cjs",
"module": "./dist/reakeys.js",
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"source": "src/index.ts",
"exports": {
".": {
"import": "./dist/reakeys.js",
"require": "./dist/reakeys.umd.cjs"
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs",
"types": "./dist/index.d.ts"
}
},
"browser": "dist/index.js",
"typings": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/reaviz/reakeys.git"
Expand All @@ -52,25 +55,25 @@
"react-dom": ">=16"
},
"devDependencies": {
"@storybook/addon-docs": "^7.0.18",
"@storybook/addon-essentials": "7.0.18",
"@storybook/addon-mdx-gfm": "7.0.18",
"@storybook/addon-storysource": "^7.0.18",
"@storybook/addons": "7.0.18",
"@storybook/react": "7.0.18",
"@storybook/react-vite": "^7.0.18",
"@storybook/theming": "7.0.18",
"@storybook/addon-docs": "^7.0.20",
"@storybook/addon-essentials": "7.0.20",
"@storybook/addon-mdx-gfm": "7.0.20",
"@storybook/addon-storysource": "^7.0.20",
"@storybook/addons": "7.0.20",
"@storybook/react": "7.0.20",
"@storybook/react-vite": "^7.0.20",
"@storybook/theming": "7.0.20",
"@types/classnames": "^2.3.1",
"@types/mousetrap": "^1.6.11",
"@types/react": "^18.2.7",
"@types/react-dom": "^18.2.4",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@vitejs/plugin-react": "^4.0.0",
"@vitest/coverage-c8": "^0.31.4",
"chromatic": "^6.18.0",
"eslint": "^8.0.1",
"@vitest/coverage-c8": "^0.32.0",
"chromatic": "^6.19.7",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-standard-with-typescript": "^34.0.1",
"eslint-config-standard-with-typescript": "^35.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^16.0.0",
"eslint-plugin-promise": "^6.0.0",
Expand All @@ -83,15 +86,15 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup-plugin-peer-deps-external": "2.2.4",
"storybook": "7.0.18",
"storybook": "7.0.20",
"typescript": "*",
"vite": "^4.3.9",
"vite-plugin-checker": "^0.6.0",
"vite-plugin-css-injected-by-js": "^3.1.1",
"vite-plugin-dts": "^2.3.0",
"vite-plugin-svgr": "^3.2.0",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.31.4"
"vitest": "^0.32.0"
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ export default defineConfig(({ mode }) =>
build: {
minify: false,
sourcemap: true,
copyPublicDir: false,
lib: {
entry: resolve('src', 'index.ts'),
name: 'reakeys',
fileName: 'reakeys'
fileName: 'index'
},
rollupOptions: {
plugins: [
Expand Down
Loading

0 comments on commit 1399f7b

Please sign in to comment.