Skip to content

Commit

Permalink
fix: Use correct paths for server & build options
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Dec 24, 2024
1 parent c7b83c0 commit fe37585
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/nuqs/server.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
// but with `node`, TypeScript will look for a .d.ts file with that name at the
// root of the package.

export * from './dist/server'
export * from './dist/index.server'
2 changes: 1 addition & 1 deletion packages/nuqs/src/tests/cache.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
parseAsBoolean,
parseAsInteger,
parseAsString
} from '../../dist/server'
} from '../../dist/index.server'

{
const cache = createSearchParamsCache({
Expand Down
7 changes: 5 additions & 2 deletions packages/nuqs/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
"compilerOptions": {
"outDir": "dist",
"noEmit": false,
"declaration": true
"declaration": true,
"declarationDir": "dist",
"declarationMap": false,
"incremental": false
},
"include": ["src/**/*.ts"],
"exclude": ["src/tests", "src/**/*.test.ts", "src/**/*.test.tsx"]
"exclude": ["src/tests/**", "src/**/*.test.ts", "src/**/*.test.tsx"]
}

0 comments on commit fe37585

Please sign in to comment.