2
0

♻️ Re-organize workspace folders

This commit is contained in:
Baptiste Arnaud
2023-03-15 08:35:16 +01:00
parent 25c367901f
commit cbc8194f19
987 changed files with 2716 additions and 2770 deletions

View File

@ -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",

View File

@ -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'

View File

@ -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'

View File

@ -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'>

View File

@ -1,5 +1,5 @@
{
"extends": "tsconfig/react-library.json",
"extends": "@typebot.io/tsconfig/react-library.json",
"include": ["src/**/*"],
"exclude": ["dist", "node_modules"]
}