Skip to content

Commit

Permalink
fix d.ts references to other packages
Browse files Browse the repository at this point in the history
  • Loading branch information
gxxcastillo committed Mar 2, 2024
1 parent de1936d commit f771bba
Show file tree
Hide file tree
Showing 12 changed files with 423 additions and 337 deletions.
5 changes: 2 additions & 3 deletions packages/elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0",
"private": true,
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
".": {
"development": "./src/index.ts",
Expand All @@ -13,9 +14,7 @@
"files": [
"dist"
],
"dependencies": {
"solid-js": "^1.8.15"
},
"dependencies": {},
"devDependencies": {
"typescript": "^5.3.3",
"vite": "^5.1.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/fields/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0",
"private": true,
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
".": {
"development": "./src/index.ts",
Expand All @@ -16,8 +17,7 @@
"dependencies": {
"@gxxc/solid-forms-elements": "workspace:*",
"@gxxc/solid-forms-state": "workspace:*",
"@gxxc/solid-forms-validation": "workspace:*",
"solid-js": "^1.8.15"
"@gxxc/solid-forms-validation": "workspace:*"
},
"devDependencies": {
"type-fest": "^4.9.0",
Expand Down
22 changes: 20 additions & 2 deletions packages/fields/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,27 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"types": ["vite/client"],
"types": [
"vite/client"
],
"jsx": "preserve",
"jsxImportSource": "solid-js"
},
"include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
"include": [
"src/**/*.js",
"src/**/*.jsx",
"src/**/*.ts",
"src/**/*.tsx"
],
"references": [
{
"path": "../elements"
},
{
"path": "../state"
},
{
"path": "../validation"
}
]
}
4 changes: 2 additions & 2 deletions packages/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0",
"private": true,
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
".": {
"development": "./src/index.ts",
Expand All @@ -14,8 +15,7 @@
"dist"
],
"dependencies": {
"@gxxc/solid-forms-state": "workspace:*",
"solid-js": "^1.8.15"
"@gxxc/solid-forms-state": "workspace:*"
},
"devDependencies": {
"typescript": "^5.3.3",
Expand Down
16 changes: 14 additions & 2 deletions packages/form/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"types": ["vite/client"],
"types": [
"vite/client"
],
"jsx": "preserve",
"jsxImportSource": "solid-js"
},
"include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
"include": [
"src/**/*.js",
"src/**/*.jsx",
"src/**/*.ts",
"src/**/*.tsx"
],
"references": [
{
"path": "../state"
}
]
}
1 change: 1 addition & 0 deletions packages/solid-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"url": "https://github.com/gxxcastillo/solid-forms",
"directory": "packages/solid-forms"
},
"types": "./dist/index.d.ts",
"exports": {
".": {
"development": "./src/index.ts",
Expand Down
15 changes: 14 additions & 1 deletion packages/solid-forms/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,18 @@
"jsx": "preserve",
"jsxImportSource": "solid-js"
},
"include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
"include": [
"src/**/*.js",
"src/**/*.jsx",
"src/**/*.ts",
"src/**/*.tsx"
],
"references": [
{
"path": "../fields"
},
{
"path": "../form"
}
]
}
2 changes: 1 addition & 1 deletion packages/state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0",
"private": true,
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
".": {
"development": "./src/index.ts",
Expand All @@ -14,7 +15,6 @@
"dist"
],
"dependencies": {
"solid-js": "^1.8.15",
"type-fest": "^4.8.3"
},
"devDependencies": {
Expand Down
5 changes: 2 additions & 3 deletions packages/validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0",
"private": true,
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
".": {
"development": "./src/index.ts",
Expand All @@ -13,9 +14,7 @@
"files": [
"dist"
],
"dependencies": {
"solid-js": "^1.8.15"
},
"dependencies": {},
"devDependencies": {
"@gxxc/solid-forms-state": "workspace:*",
"type-fest": "^4.9.0",
Expand Down
12 changes: 11 additions & 1 deletion packages/validation/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,15 @@
"jsx": "preserve",
"jsxImportSource": "solid-js"
},
"include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
"include": [
"src/**/*.js",
"src/**/*.jsx",
"src/**/*.ts",
"src/**/*.tsx"
],
"references": [
{
"path": "../state"
}
]
}
Loading

0 comments on commit f771bba

Please sign in to comment.