Skip to content

Commit

Permalink
fix: subpaths exports
Browse files Browse the repository at this point in the history
  • Loading branch information
DoneDeal0 committed Nov 2, 2024
1 parent 40094fc commit 647e962
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ getListDiff(

```js
// If you are in a server environment
import { streamListDiff } from "@donedeal0/superdiff/server.cjs";
import { streamListDiff } from "@donedeal0/superdiff/server";
// If you are in a browser environment
import { streamListDiff } from "@donedeal0/superdiff/client";
```
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

21 changes: 6 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
{
"name": "@donedeal0/superdiff",
"version": "3.1.0",
"version": "3.2.0",
"type": "module",
"description": "SuperDiff compares two arrays or objects and returns a full diff of their differences",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"declaration": true,
"files": [
"dist"
],
"files": ["dist"],
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./client": {
"default": "./dist/client.mjs"
},
"./server": {
"default": "./dist/server.cjs"
}
".": "./dist/index.js",
"./client": "./dist/client.js",
"./server": "./dist/server.cjs"
},
"author": "DoneDeal0",
"license": "ISC",
Expand Down

0 comments on commit 647e962

Please sign in to comment.