Skip to content

Commit

Permalink
fix: correctly expose idb adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericoo committed Sep 15, 2023
1 parent 4d1a54c commit b72b214
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# react-router-typesafe

## 0.1.1

### Patch Changes

- Fix: expose idb adapter, minify code

## 0.1.0

### Minor Changes
Expand Down
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swr-loader",
"version": "0.1.0",
"version": "0.1.1",
"description": "ux-centric data loading and caching",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -10,6 +10,11 @@
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./adapters/idb": {
"require": "./dist/adapters/idb.js",
"import": "./dist/adapters/idb.mjs",
"types": "./dist/adapters/idb.d.ts"
}
},
"files": [
Expand Down Expand Up @@ -46,9 +51,8 @@
"react": "^18.2.0",
"react-router-dom": "^6.16.0",
"tsup": "^7.1.0",
"typescript": "^5.1.6"
},
"dependencies": {
"typescript": "^5.1.6",
"idb": "^7.1.1"
}
},
"dependencies": {}
}
1 change: 1 addition & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export default defineConfig({
dts: true,
format: ['esm', 'cjs'],
external: ['react-router-dom', 'react'],
minify: true,
});

0 comments on commit b72b214

Please sign in to comment.