Skip to content

Commit a7c949d

Browse files
committed
fix: demo and build code
1 parent 5e7f220 commit a7c949d

File tree

6 files changed

+17
-16
lines changed

6 files changed

+17
-16
lines changed

.npmignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"lucide-react": "^0.441.0",
1515
"react": "^17.0.2",
1616
"react-dom": "^17.0.2",
17-
"react-hook-form-ai": "latest",
17+
"react-hook-form-ai": "file://../",
1818
"react-router-dom": "^6.26.0",
1919
"shiki": "^3.15.0",
2020
"tailwind-merge": "^2.5.2"

demo/pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"noFallthroughCasesInSwitch": true,
1818
"baseUrl": ".",
1919
"paths": {
20-
"@/*": ["./src/*"],
21-
"react-hook-form-ai": ["../src/index.ts"]
20+
"@/*": ["./src/*"]
2221
}
2322
},
2423
"include": ["src"]

demo/vite.config.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@ export default defineConfig({
88
base: '/react-hook-form-ai/',
99
resolve: {
1010
alias: {
11-
'@': path.resolve(__dirname, './src'),
12-
'react-hook-form-ai': path.resolve(__dirname, '..')
11+
'@': path.resolve(__dirname, './src')
1312
}
1413
},
15-
optimizeDeps: {
16-
exclude: ['react-hook-form-ai']
17-
},
1814
server: {
1915
fs: {
2016
allow: ['..']

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
{
22
"name": "react-hook-form-ai",
3-
"version": "1.0.8",
3+
"version": "1.0.10",
44
"description": "A wrapper package over React Hook Form that enables AI features like auto-fill and form summarization using the browser's built-in LLM.",
5-
"main": "src/index.ts",
5+
"main": "dist/index.js",
6+
"types": "dist/types/index.js",
7+
"files": [
8+
"dist",
9+
"README.md",
10+
"LICENSE",
11+
"package.json"
12+
],
613
"scripts": {
714
"build": "tsc",
815
"test": "jest",

0 commit comments

Comments
 (0)