chore(plugin-form-builder): add types export (#6218)
Co-authored-by: Elliot DeNolf <denolfe@gmail.com>
This commit is contained in:
@@ -26,14 +26,17 @@
|
||||
"import": "./src/index.ts",
|
||||
"require": "./src/index.ts",
|
||||
"types": "./src/index.ts"
|
||||
},
|
||||
"./*": {
|
||||
"import": "./src/exports/*.ts",
|
||||
"require": "./src/exports/*.ts",
|
||||
"types": "./src/exports/*.ts"
|
||||
}
|
||||
},
|
||||
"main": "./src/index.ts",
|
||||
"types": "./src/index.ts",
|
||||
"files": [
|
||||
"dist",
|
||||
"types.js",
|
||||
"types.d.ts"
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "swc ./src -d ./dist --config-file .swcrc",
|
||||
|
||||
1
packages/plugin-form-builder/src/exports/types.ts
Normal file
1
packages/plugin-form-builder/src/exports/types.ts
Normal file
@@ -0,0 +1 @@
|
||||
export type { BeforeEmail, Email, FieldsConfig, HandlePayment, Redirect } from '../types.js'
|
||||
1
packages/plugin-form-builder/types.d.ts
vendored
1
packages/plugin-form-builder/types.d.ts
vendored
@@ -1 +0,0 @@
|
||||
export * from './dist/types'
|
||||
@@ -1 +0,0 @@
|
||||
module.exports = require('./dist/types')
|
||||
Reference in New Issue
Block a user