Skip to content

Commit 0a01609

Browse files
author
devgioele
committed
build cjs files to the root
1 parent ce01118 commit 0a01609

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ Some examples follow, but we recommend having a look at the type definitions for
4242
### Example usage with Next.js
4343

4444
```tsx
45-
import { Query } from '@aboutbits/react-pagination/dist/esm/engine'
46-
import { useQueryAndPagination } from '@aboutbits/react-pagination/dist/esm/routers/nextRouter'
45+
import { Query } from '@aboutbits/react-pagination/dist/engine'
46+
import { useQueryAndPagination } from '@aboutbits/react-pagination/dist/routers/nextRouter'
4747

4848
const users = ['Alex', 'Simon', 'Natan', 'Nadia', 'Moritz', 'Marie']
4949

@@ -92,7 +92,7 @@ export function UserList() {
9292
### Example usage with React Router and zod
9393

9494
```tsx
95-
import { useQueryAndPagination } from '@aboutbits/react-pagination/dist/esm/zod/routers/reactRouter'
95+
import { useQueryAndPagination } from '@aboutbits/react-pagination/dist/zod/routers/reactRouter'
9696
import { z } from 'zod'
9797

9898
const userSchema = z.object({

tsconfig.cjs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"module": "commonjs",
5-
"outDir": "./dist/cjs",
5+
"outDir": "./dist",
66
"declaration": true,
77
"declarationMap": true,
88
"sourceMap": false,

0 commit comments

Comments
 (0)