Skip to content

Commit

Permalink
fix package exports
Browse files Browse the repository at this point in the history
  • Loading branch information
gxxcastillo committed Aug 12, 2024
1 parent 7554512 commit 58899ee
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/elements/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default defineConfig({
},
lib: {
entry: resolve(__dirname, 'src/index.ts'),
fileName: 'index',
formats: ['es']
},
rollupOptions: {
Expand Down
1 change: 1 addition & 0 deletions packages/fields/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default defineConfig({
},
lib: {
entry: resolve(__dirname, 'src/index.ts'),
fileName: 'index',
formats: ['es']
},
rollupOptions: {
Expand Down
1 change: 1 addition & 0 deletions packages/form/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default defineConfig({
},
lib: {
entry: resolve(__dirname, 'src/index.ts'),
fileName: 'index',
formats: ['es']
},
rollupOptions: {
Expand Down
3 changes: 2 additions & 1 deletion packages/solid-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./src/index.ts"
"import": "./dist/index.js",
"development": "./src/index.ts"
}
},
"files": [
Expand Down
1 change: 1 addition & 0 deletions packages/solid-forms/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default defineConfig({
sourcemap: true,
lib: {
entry: resolve(__dirname, 'src/index.ts'),
fileName: 'index',
formats: ['es']
},
rollupOptions: {
Expand Down
1 change: 1 addition & 0 deletions packages/state/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default defineConfig({
},
lib: {
entry: resolve(__dirname, 'src/index.ts'),
fileName: 'index',
formats: ['es']
},
rollupOptions: {
Expand Down
1 change: 1 addition & 0 deletions packages/validation/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, 'src/index.ts'),
fileName: 'index',
formats: ['es']
},
rollupOptions: {
Expand Down

0 comments on commit 58899ee

Please sign in to comment.