chore: fix build problem in docker

pull/90/head
moonrailgun 2 years ago
parent 44595b351f
commit 3fdd036007

@ -7,7 +7,7 @@ ARG VERSION
WORKDIR /app/tailchat WORKDIR /app/tailchat
# Install dependencies # Install dependencies
RUN npm install -g pnpm@7.13.4 RUN npm install -g pnpm@8.2.0
RUN npm install -g tailchat-cli@latest RUN npm install -g tailchat-cli@latest
# Add mc for minio # Add mc for minio

@ -69,7 +69,7 @@
"@types/glob": "^8.0.0", "@types/glob": "^8.0.0",
"@types/inquirer": "^8.2.1", "@types/inquirer": "^8.2.1",
"@types/lodash": "^4.14.170", "@types/lodash": "^4.14.170",
"@types/node": "16.11.7", "@types/node": "^18.13.0",
"@types/react": "18.0.20", "@types/react": "18.0.20",
"@types/spinnies": "^0.5.0", "@types/spinnies": "^0.5.0",
"@types/update-notifier": "^6.0.1", "@types/update-notifier": "^6.0.1",

@ -30,7 +30,7 @@
"@types/body-parser": "^1.19.2", "@types/body-parser": "^1.19.2",
"@types/jest": "27.5.2", "@types/jest": "27.5.2",
"@types/lodash": "^4.14.191", "@types/lodash": "^4.14.191",
"@types/node": "^18.0.0", "@types/node": "^18.13.0",
"jest": "27.5.1", "jest": "27.5.1",
"nock": "^13.0.5", "nock": "^13.0.5",
"nodemon": "^2.0.18", "nodemon": "^2.0.18",

@ -59,7 +59,8 @@
"overrides": { "overrides": {
"redux": "4.2.1", "redux": "4.2.1",
"@babel/runtime": "7.21.0", "@babel/runtime": "7.21.0",
"@types/react": "18.0.20" "@types/react": "18.0.20",
"webpack": "5.75.0"
}, },
"patchedDependencies": { "patchedDependencies": {
"moleculer-minio@2.0.0": "patches/moleculer-minio@2.0.0.patch" "moleculer-minio@2.0.0": "patches/moleculer-minio@2.0.0.patch"

File diff suppressed because it is too large Load Diff

@ -10,7 +10,7 @@
"build": "tsc", "build": "tsc",
"watch": "tsc --watch", "watch": "tsc --watch",
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"prepare": "npm run build", "prepare": "pnpm build",
"release": "npm version patch && npm publish --registry https://registry.npmjs.com/" "release": "npm version patch && npm publish --registry https://registry.npmjs.com/"
}, },
"repository": { "repository": {
@ -29,6 +29,7 @@
}, },
"homepage": "https://github.com/msgbyte/tailchat-server#readme", "homepage": "https://github.com/msgbyte/tailchat-server#readme",
"devDependencies": { "devDependencies": {
"@types/jest": "^29.5.1",
"typescript": "^4.3.3" "typescript": "^4.3.3"
}, },
"dependencies": { "dependencies": {

@ -148,7 +148,7 @@ export const ApiGatewayMixin: ServiceSchema = {
params: ['req.url', 'req.method'], params: ['req.url', 'req.method'],
}, },
spanName: (ctx) => `${ctx.params.req.method} ${ctx.params.req.url}`, spanName: (ctx) => `${ctx.params.req.method} ${ctx.params.req.url}`,
}, } as any,
timeout: 0, timeout: 0,
handler(ctx) { handler(ctx) {
const req = ctx.params.req; const req = ctx.params.req;

@ -3,6 +3,8 @@
"compilerOptions": { "compilerOptions": {
"declaration": true, "declaration": true,
"declarationMap": true, "declarationMap": true,
"skipLibCheck": true,
"typeRoots": ["./node_modules/@types"],
"rootDir": "./src", "rootDir": "./src",
"outDir": "dist" "outDir": "dist"
}, },

Loading…
Cancel
Save