2
0

🚧 Use TS project references

This commit is contained in:
Baptiste Arnaud
2024-08-28 18:09:35 +02:00
parent 0c7d2afd51
commit fdd6cc6fee
627 changed files with 3043 additions and 1696 deletions

View File

@@ -1,5 +1,5 @@
import { isCancel, text, confirm } from '@clack/prompts'
import { Plan, PrismaClient } from '@typebot.io/prisma'
import { PrismaClient } from '@typebot.io/prisma'
import { writeFileSync } from 'fs'
export const destroyUser = async (userEmail?: string) => {

View File

@@ -1,7 +1,6 @@
{
"name": "@typebot.io/scripts",
"version": "1.0.0",
"main": "index.js",
"license": "AGPL-3.0-or-later",
"private": true,
"scripts": {
@@ -46,16 +45,15 @@
"prompts": "2.4.2",
"stripe": "12.13.0",
"tsx": "4.6.2",
"typescript": "5.4.5",
"zod": "3.22.4"
},
"dependencies": {
"@clack/prompts": "^0.7.0",
"@paralleldrive/cuid2": "2.2.1",
"cli-progress": "^3.12.0",
"papaparse": "5.4.1",
"@typebot.io/results": "workspace:*",
"@typebot.io/billing": "workspace:*",
"@typebot.io/telemetry": "workspace:*"
"@typebot.io/results": "workspace:*",
"@typebot.io/telemetry": "workspace:*",
"cli-progress": "^3.12.0",
"papaparse": "5.4.1"
}
}

View File

@@ -1,14 +1,31 @@
{
"extends": "../tsconfig/base.json",
"compilerOptions": {
"target": "es5",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"sourceMap": true,
"outDir": "dist",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"jsx": "preserve"
}
},
"include": ["**/*.ts", "**/*.tsx"],
"references": [
{
"path": "../../ee/packages/billing"
},
{
"path": "../emails"
},
{
"path": "../lib"
},
{
"path": "../prisma"
},
{
"path": "../results"
},
{
"path": "../schemas"
},
{
"path": "../telemetry"
}
]
}