mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-22 23:18:05 +03:00
fix: ci
This commit is contained in:
@@ -34,10 +34,10 @@ jobs:
|
||||
cache: pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm --filter ./database-seeds/scripts --filter . install
|
||||
run: pnpm --filter tachi-database-seeds-scripts... --filter . install
|
||||
|
||||
- name: Run Tests
|
||||
run: pnpm --filter ./database-seeds/scripts test
|
||||
run: pnpm --filter tachi-database-seeds-scripts test
|
||||
env:
|
||||
NODE_ENV: "test"
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ RUN pnpm fetch
|
||||
|
||||
COPY bot ./bot
|
||||
COPY common ./common
|
||||
COPY patches ./patches
|
||||
COPY *.json *.yaml ./
|
||||
|
||||
RUN pnpm --filter tachi-bot... --filter . install --offline --silent
|
||||
|
||||
@@ -10,6 +10,7 @@ RUN pnpm fetch
|
||||
|
||||
COPY github-bot ./github-bot
|
||||
COPY common ./common
|
||||
COPY patches ./patches
|
||||
COPY *.json *.yaml ./
|
||||
|
||||
RUN pnpm --filter tachi-github-bot... --filter . install --offline --silent
|
||||
|
||||
+4
-3
@@ -16,11 +16,12 @@ COPY pnpm-lock.yaml .
|
||||
|
||||
RUN pnpm fetch
|
||||
|
||||
COPY server /app/server
|
||||
COPY common /app/common
|
||||
COPY server ./server
|
||||
COPY common ./common
|
||||
COPY patches ./patches
|
||||
COPY *.json *.yaml ./
|
||||
|
||||
RUN pnpm --filter tachi-server... --filter . install --offline --silent
|
||||
RUN pnpm --filter tachi-server... --filter . install --offline
|
||||
RUN pnpm --filter tachi-server... -r build
|
||||
|
||||
FROM base AS app
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@
|
||||
"seq-logging": "1.1.1",
|
||||
"sync-fetch": "^0.3.1",
|
||||
"tachi-common": "workspace:../common",
|
||||
"typescript": "4.5.5",
|
||||
"typescript": "4.6.3",
|
||||
"ts-node": "10.0.0",
|
||||
"tsconfig-paths": "3.12.0"
|
||||
}
|
||||
|
||||
+1
-1
@@ -94,7 +94,7 @@
|
||||
"terser-webpack-plugin": "1.4.1",
|
||||
"ts-pnp": "1.1.4",
|
||||
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
||||
"typescript": "4.3.5",
|
||||
"typescript": "4.6.3",
|
||||
"url-loader": "2.1.0",
|
||||
"webpack": "4.41.0",
|
||||
"webpack-dev-server": "3.2.1"
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
// I hope not.
|
||||
"DOM"
|
||||
],
|
||||
"baseUrl": "src",
|
||||
"rootDir": ".",
|
||||
"baseUrl": ".",
|
||||
"outDir": "./js",
|
||||
// USE TS-NODE!
|
||||
"noEmit": true,
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"@types/express": "4.17.13",
|
||||
"@types/node": "^16.0.0",
|
||||
"@types/node-fetch": "2.5.12",
|
||||
"typescript": "4.5.5"
|
||||
"typescript": "4.6.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 16.0.0"
|
||||
|
||||
+2
-1
@@ -50,6 +50,7 @@
|
||||
},
|
||||
"patchedDependencies": {
|
||||
"browserslist@4.21.4": "patches/browserslist@4.21.4.patch"
|
||||
}
|
||||
},
|
||||
"allowNonAppliedPatches": true
|
||||
}
|
||||
}
|
||||
Generated
+560
-194
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -11,7 +11,7 @@
|
||||
"test": "tap",
|
||||
"snap": "TAP_SNAPSHOT=1 tap",
|
||||
"watchtest": "tap --watch",
|
||||
"build": "tsc -b tsconfig.build.json",
|
||||
"build": "tsc -b tsconfig.build.json -v",
|
||||
"typecheck": "tsc --project tsconfig.build.json --noEmit",
|
||||
"lint": "eslint ./src --ext .ts --fix",
|
||||
"start": "pnpm build && pnpm start-no-build",
|
||||
@@ -91,7 +91,7 @@
|
||||
"seq-logging": "1.1.1",
|
||||
"tachi-common": "workspace:../common",
|
||||
"ts-node": "10.0.0",
|
||||
"typescript": "4.5.5",
|
||||
"typescript": "4.6.3",
|
||||
"winston": "3.5.1",
|
||||
"winston-daily-rotate-file": "4.6.0",
|
||||
"winston-transport": "4.5.0"
|
||||
|
||||
-2
@@ -41,8 +41,6 @@ export function RedisPub<T extends RedisIPCChannels>(channel: T, data: RedisIPCD
|
||||
|
||||
export function RedisSub<T extends RedisIPCChannels>(channel: T, callback: RedisSubCallback<T>) {
|
||||
if (SubCallbacks[channel]) {
|
||||
// @ts-expect-error It's complaining that the T in channel might be a different T to the T in callback
|
||||
// this is obviously nonsense.
|
||||
SubCallbacks[channel]!.push(callback);
|
||||
logger.debug(`Pushed callback ${callback.name} to channel ${channel}.`);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user