♻️ Re-organize workspace folders
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
{
|
||||
"name": "emails",
|
||||
"name": "@typebot.io/emails",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"private": true,
|
||||
"main": "./src/index.ts",
|
||||
"types": "./src/index.ts",
|
||||
"scripts": {
|
||||
@ -23,10 +24,10 @@
|
||||
"nodemailer": "6.9.1",
|
||||
"react": "18.2.0",
|
||||
"tsx": "3.12.5",
|
||||
"utils": "workspace:*",
|
||||
"@typebot.io/lib": "workspace:*",
|
||||
"eslint": "8.36.0",
|
||||
"eslint-config-custom": "workspace:*",
|
||||
"tsconfig": "workspace:*"
|
||||
"@typebot.io/tsconfig": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@faire/mjml-react": "2.1.4",
|
||||
|
@ -8,7 +8,7 @@ import {
|
||||
} from '@faire/mjml-react'
|
||||
import { render } from '@faire/mjml-react/utils/render'
|
||||
import { Button, Head, HeroImage, Text } from '../components'
|
||||
import { parseNumberWithCommas } from 'utils'
|
||||
import { parseNumberWithCommas } from '@typebot.io/lib'
|
||||
import { SendMailOptions } from 'nodemailer'
|
||||
import { sendEmail } from '../sendEmail'
|
||||
|
||||
|
@ -8,7 +8,7 @@ import {
|
||||
} from '@faire/mjml-react'
|
||||
import { render } from '@faire/mjml-react/utils/render'
|
||||
import { Button, Head, HeroImage, Text } from '../components'
|
||||
import { parseNumberWithCommas } from 'utils'
|
||||
import { parseNumberWithCommas } from '@typebot.io/lib'
|
||||
import { SendMailOptions } from 'nodemailer'
|
||||
import { sendEmail } from '../sendEmail'
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { createTransport, SendMailOptions } from 'nodemailer'
|
||||
import { env } from 'utils'
|
||||
import { env } from '@typebot.io/lib'
|
||||
|
||||
export const sendEmail = (
|
||||
props: Pick<SendMailOptions, 'to' | 'html' | 'subject'>
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "tsconfig/react-library.json",
|
||||
"extends": "@typebot.io/tsconfig/react-library.json",
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["dist", "node_modules"]
|
||||
}
|
||||
|
Reference in New Issue
Block a user