Skip to content

Commit

Permalink
fix: module resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
soc221b committed Jan 5, 2025
1 parent ca72f3d commit 46604e8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 24 deletions.
21 changes: 4 additions & 17 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"rimraf": "6.0.1",
"ts-expect": "1.3.0",
"ts-node": "10.9.2",
"typescript": "5.7.2",
"typescript": "5.4.2",
"vite": "6.0.7",
"vite-plugin-dts": "4.4.0",
"vitest": "^2.1.8",
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"isolatedModules": true,
"noEmit": true,
"declaration": true,
"isolatedDeclarations": true,
"esModuleInterop": true,

/* Linting */
Expand All @@ -28,5 +27,5 @@
"noImplicitReturns": true,
"noImplicitThis": true
},
"include": ["src"]
"include": ["src", "tests"]
}
6 changes: 2 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="vitest/config" />
import { renameSync } from 'fs'
import { resolve } from 'path'
import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'
Expand All @@ -22,9 +21,8 @@ export default defineConfig({
},
plugins: [
dts({
afterBuild: () => {
renameSync('./dist/index.d.ts', './dist/zod-schema-faker.d.ts')
},
include: ['src'],
rollupTypes: true,
}),
],
})

0 comments on commit 46604e8

Please sign in to comment.