UNPKG

yh-validator

Version:

A lightweight form validation library with modular functions

19 lines (18 loc) 421 B
import { defineConfig } from 'tsup'; export default defineConfig({ entry: { index: 'src/index.ts', isEmail: 'src/isEmail.ts', isPhone: 'src/isPhone.ts', isStrongPassword: 'src/isStrongPassword.ts', isUsername: 'src/isUsername.ts', isEqual: 'src/isEqual.ts', }, format: ['cjs', 'esm'], dts: true, splitting: true, clean: true, minify: true, treeshake: true, external: ['phone'], });