fix apps/bot build
This commit is contained in:
parent
ecc7b44d6d
commit
7a3dd4688b
@ -1,7 +1,9 @@
|
||||
import { reactConfig } from '@repo/eslint-config/react-internal';
|
||||
import { typescript } from '@repo/eslint-config/typescript';
|
||||
|
||||
/** @type {import("eslint").Linter.Config} */
|
||||
export default [
|
||||
...reactConfig,
|
||||
|
||||
...typescript,
|
||||
{
|
||||
ignores: ['**/types/**', '*.config.*'],
|
||||
},
|
||||
];
|
||||
|
||||
@ -2,30 +2,29 @@
|
||||
"name": "bot",
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "rimraf ./build & tsc -p tsconfig.json",
|
||||
"build:watch": "tsc -w -p tsconfig.json",
|
||||
"start": "node dist/src/index.js",
|
||||
"build": "tsup",
|
||||
"dev": "dotenv -e ../../.env.local tsx watch src/index.ts",
|
||||
"start": "node dist/index.cjs",
|
||||
"lint": "eslint",
|
||||
"lint-staged": "lint-staged"
|
||||
},
|
||||
"dependencies": {
|
||||
"@repo/graphql": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@types/node": "catalog:",
|
||||
"telegraf": "catalog:",
|
||||
"tsup": "^8.5.0",
|
||||
"typescript": "catalog:",
|
||||
"zod": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/graphql": "workspace:*",
|
||||
"@repo/lint-staged-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@types/node": "catalog:",
|
||||
"dotenv-cli": "catalog:",
|
||||
"lint-staged": "catalog:",
|
||||
"rimraf": "catalog:",
|
||||
"tsx": "^4.19.2",
|
||||
"typescript": "catalog:"
|
||||
"tsx": "^4.19.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,12 +5,12 @@
|
||||
"outDir": "dist",
|
||||
"alwaysStrict": true,
|
||||
"strict": true,
|
||||
"moduleResolution": "bundler",
|
||||
"module": "ES2020",
|
||||
"moduleResolution": "Node",
|
||||
"module": "CommonJS",
|
||||
"paths": {
|
||||
"@/*": ["./*"]
|
||||
}
|
||||
},
|
||||
"include": [".", "../../packages/graphql/config", "../../packages/graphql/utils", "../../packages/graphql/apollo", "../../packages/graphql/api"],
|
||||
"include": ["."],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
}
|
||||
|
||||
16
apps/bot/tsup.config.js
Normal file
16
apps/bot/tsup.config.js
Normal file
@ -0,0 +1,16 @@
|
||||
import { defineConfig } from 'tsup';
|
||||
|
||||
export default defineConfig({
|
||||
bundle: true,
|
||||
clean: true,
|
||||
entry: ['./src/index.ts'],
|
||||
external: ['telegraf', 'zod'],
|
||||
format: 'cjs',
|
||||
loader: { '.json': 'copy' },
|
||||
minify: true,
|
||||
noExternal: ['@repo'],
|
||||
outDir: './dist',
|
||||
sourcemap: false,
|
||||
splitting: false,
|
||||
target: 'es2022',
|
||||
});
|
||||
776
pnpm-lock.yaml
generated
776
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user