Skip to content

Commit

Permalink
fix exported types, use bundledPackages config instead of api-extract…
Browse files Browse the repository at this point in the history
…or.json
  • Loading branch information
gxxcastillo committed Mar 5, 2024
1 parent fc903f5 commit 7d42e50
Show file tree
Hide file tree
Showing 11 changed files with 157 additions and 133 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"license": "ISC",
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@moonrepo/cli": "^1.22.3",
"@moonrepo/cli": "^1.22.4",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^20.11.24",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@types/node": "^20.11.24",
"eslint": "^8.57.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-moon": "^2.1.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
"files": [
"dist"
],
"dependencies": {},
"devDependencies": {
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vite": "^5.1.5",
"vite-plugin-dts": "^3.7.3",
"vite-plugin-solid": "^2.10.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vite": "^5.1.5",
"vite-plugin-dts": "^3.7.3",
"vite-plugin-solid": "^2.10.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/fields/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"type-fest": "^4.10.3",
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vite": "^5.1.5",
"vite-plugin-dts": "^3.7.3",
"vite-plugin-solid": "^2.10.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"devDependencies": {
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vite": "^5.1.5",
"vite-plugin-dts": "^3.7.3",
"vite-plugin-solid": "^2.10.1"
},
Expand Down
9 changes: 0 additions & 9 deletions packages/solid-forms/api-extractor.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/solid-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"devDependencies": {
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vite": "^5.1.5",
"vite-plugin-dts": "^3.7.3",
"vite-plugin-solid": "^2.10.1"
},
Expand Down
10 changes: 9 additions & 1 deletion packages/solid-forms/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ import solid from 'vite-plugin-solid';

const __dirname = dirname(fileURLToPath(import.meta.url));

const bundledPackages = [
'@gxxc/solid-forms-elements',
'@gxxc/solid-forms-fields',
'@gxxc/solid-forms-form',
'@gxxc/solid-forms-state',
'@gxxc/solid-forms-validation'
];

export default defineConfig({
plugins: [solid(), dts({ rollupTypes: true })],
plugins: [solid(), dts({ rollupTypes: true, bundledPackages })],
build: {
lib: {
entry: resolve(__dirname, 'src/index.ts'),
Expand Down
2 changes: 1 addition & 1 deletion packages/state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"type-fest": "^4.10.3",
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vite": "^5.1.5",
"vite-plugin-dts": "^3.7.3",
"vite-plugin-solid": "^2.10.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@gxxc/solid-forms-state": "workspace:*",
"type-fest": "^4.10.3",
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vite": "^5.1.5",
"vite-plugin-dts": "^3.7.3",
"vite-plugin-solid": "^2.10.1"
},
Expand Down
Loading

0 comments on commit 7d42e50

Please sign in to comment.