some fixes

This commit is contained in:
Boki 2025-06-18 22:13:28 -04:00
parent 3d8456c63c
commit 3ebe1178f4
12 changed files with 111 additions and 36 deletions

View file

@ -5,5 +5,16 @@
"outDir": "./dist" "outDir": "./dist"
}, },
"include": ["src/**/*"], "include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.ts"] "exclude": ["node_modules", "dist", "**/*.test.ts"],
"references": [
{ "path": "../../libs/types" },
{ "path": "../../libs/config" },
{ "path": "../../libs/logger" },
{ "path": "../../libs/cache" },
{ "path": "../../libs/queue" },
{ "path": "../../libs/mongodb-client" },
{ "path": "../../libs/postgres-client" },
{ "path": "../../libs/questdb-client" },
{ "path": "../../libs/shutdown" }
]
} }

View file

@ -41,21 +41,7 @@ The root `tsconfig.json` at the project root establishes common settings for all
We provide two template configurations: We provide two template configurations:
1. `tsconfig.lib.json` - For library projects: 1. `tsconfig.app.json` - For application projects:
```json
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"declaration": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
}
```
2. `tsconfig.app.json` - For application projects:
```json ```json
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.json",

View file

@ -2,13 +2,23 @@
"name": "@stock-bot/browser", "name": "@stock-bot/browser",
"version": "1.0.0", "version": "1.0.0",
"description": "High-performance browser automation library with proxy support", "description": "High-performance browser automation library with proxy support",
"main": "dist/index.js", "exports": {
"types": "dist/index.d.ts", ".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"dev": "tsc --watch",
"test": "bun test", "test": "bun test",
"dev": "tsc --watch" "clean": "rm -rf dist",
"cli": "bun run src/cli.ts",
"validate": "bun run src/cli.ts --validate",
"check": "bun run src/cli.ts --check"
}, },
"dependencies": { "dependencies": {
"playwright": "^1.53.0" "playwright": "^1.53.0"

View file

@ -1,8 +1,8 @@
{ {
"extends": "../../tsconfig.lib.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "dist", "outDir": "./dist",
"rootDir": "src" "rootDir": "./src"
}, },
"include": ["src/**/*"], "include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"], "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"],

19
libs/browser/turbo.json Normal file
View file

@ -0,0 +1,19 @@
{
"extends": ["//"],
"tasks": {
"build": {
"dependsOn": ["@stock-bot/logger#build", "@stock-bot/http#build"],
"outputs": ["dist/**"],
"inputs": [
"src/**",
"package.json",
"tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

19
libs/config/turbo.json Normal file
View file

@ -0,0 +1,19 @@
{
"extends": ["//"],
"tasks": {
"build": {
"dependsOn": [],
"outputs": ["dist/**"],
"inputs": [
"src/**",
"package.json",
"tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,7 +1,7 @@
{ {
"extends": "../../tsconfig.lib.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "dist", "outDir": "./dist",
"rootDir": "src", "rootDir": "src",
"skipLibCheck": true "skipLibCheck": true
}, },

19
libs/proxy/turbo.json Normal file
View file

@ -0,0 +1,19 @@
{
"extends": ["//"],
"tasks": {
"build": {
"dependsOn": [],
"outputs": ["dist/**"],
"inputs": [
"src/**",
"package.json",
"tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

19
libs/queue/turbo.json Normal file
View file

@ -0,0 +1,19 @@
{
"extends": ["//"],
"tasks": {
"build": {
"dependsOn": ["@stock-bot/cache#build", "@stock-bot/logger#build", "@stock-bot/types#build"],
"outputs": ["dist/**"],
"inputs": [
"src/**",
"package.json",
"tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -53,6 +53,9 @@
{ "path": "./libs/http" }, { "path": "./libs/http" },
{ "path": "./libs/event-bus" }, { "path": "./libs/event-bus" },
{ "path": "./libs/shutdown" }, { "path": "./libs/shutdown" },
{ "path": "./libs/browser" },
{ "path": "./libs/proxy" },
// Engine libraries // Engine libraries
{ "path": "./libs/data-frame" }, { "path": "./libs/data-frame" },
{ "path": "./libs/vector-engine" }, { "path": "./libs/vector-engine" },

View file

@ -1,11 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"declaration": true,
"composite": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
}

View file

@ -5,7 +5,7 @@
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["^build"], "dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**"], "outputs": ["dist/**"],
"inputs": [ "inputs": [
"src/**", "src/**",
"package.json", "package.json",