mirror of
https://github.com/LukeHagar/form.git
synced 2025-12-06 04:19:43 +00:00
* solid commit -a * fix failing tests and formatting * comments + removed unneeded computed * updated changes * prettierd * chore: add Solid Form to script to be deployed * fix: fix typing of solid's Subscribe data * chore: remove errant createEffect * chore: rename Solid's useForm and useField to createForm and createField * chore: remove old mention of React's memoization * chore: add Solid simple example * chore: add Solid yup example * chore: add Zod Solid example * docs: add initial docs for Solid package --------- Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
25 lines
512 B
JavaScript
25 lines
512 B
JavaScript
// @ts-check
|
|
|
|
import { defineConfig } from 'tsup'
|
|
import { generateTsupOptions, parsePresetOptions } from 'tsup-preset-solid'
|
|
|
|
const preset_options = {
|
|
entries: {
|
|
entry: 'src/index.ts',
|
|
dev_entry: true,
|
|
},
|
|
cjs: true,
|
|
drop_console: true,
|
|
}
|
|
|
|
export default defineConfig(() => {
|
|
const parsed_data = parsePresetOptions(preset_options)
|
|
const tsup_options = generateTsupOptions(parsed_data)
|
|
|
|
tsup_options.forEach((tsup_option) => {
|
|
tsup_option.outDir = 'build'
|
|
})
|
|
|
|
return tsup_options
|
|
})
|