fixed server build

This commit is contained in:
John Yeo
2025-06-03 09:05:06 +01:00
parent 4aa6df1d95
commit 3c846acdf9
4 changed files with 30 additions and 24 deletions

View File

@@ -9,9 +9,10 @@
"start": "tsx src/index.ts",
"workers": "tsx watch src/workers.ts",
"workers:start": "node --no-deprecation dist/src/workers.js",
"build": "tsc -b",
"prod": "tsc -b && tsc-alias && node dist/src/index.js",
"prod:build": "tsc -b && tsc-alias",
"build": "tsc -b tsconfig.build.json",
"prod": "tsc -b tsconfig.build.json && tsc-alias && node dist/src/index.js",
"prod:build": "tsc -b tsconfig.build.json && tsc-alias",
"prod:start": "node dist/src/index.js",
"cron": "tsx src/cron.ts",
"cron:start": "node --no-deprecation dist/src/cron.js",

View File

@@ -15,7 +15,6 @@ import {
import { z } from "zod";
export type AttachParams = {
freeTrialIds: string[];
org: Organization;
customer: Customer;
products: FullProduct[];

View File

@@ -0,0 +1,25 @@
{
"ts-node": {
"esm": true,
"experimentalSpecifier": true
},
"compilerOptions": {
"target": "ES2020",
"moduleResolution": "NodeNext",
"module": "NodeNext",
"declaration": true,
"rootDir": ".",
"baseUrl": ".",
"outDir": "./dist",
"strict": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"paths": {
"@/*": ["src/*"]
}
},
"include": ["src"],
"exclude": ["node_modules", "dist"]
}

View File

@@ -9,7 +9,6 @@
"module": "NodeNext", // or "node16"/"nodenext"
"declaration": true,
// "rootDir": "../",
"rootDir": ".",
"baseUrl": ".",
"outDir": "./dist",
@@ -18,31 +17,13 @@
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
// "allowImportingTsExtensions": true,
// "noEmit": true,
"paths": {
"@/*": ["src/*"],
"@shared/*": ["../shared/*"],
"@scripts/*": ["scripts/*"]
}
},
"include": [
"src",
"tests",
"scripts",
"tests-old/utils.ts",
"tests-old/global.ts",
"../shared/db/allTables.ts",
"../shared/db/apiKeysTable.ts",
"../shared/db/chatResultsTable.ts",
"../shared/db/cusTable.ts",
"../shared/db/entitlementsTable.ts",
"../shared/db/featuresTable.ts",
"../shared/db/invoicesTable.ts",
"../shared/db/orgTable.ts",
"../shared/db/pricesTable.ts",
"../shared/db/productsTable.ts"
],
"include": ["src", "tests", "scripts"],
"references": [
{
"path": "../shared"