Commit 6a8ddefa authored by nanahira's avatar nanahira

fix server error catch

parent c2052da2
Pipeline #21234 passed with stages
in 3 minutes and 20 seconds
...@@ -8,7 +8,7 @@ COPY ./package*.json ./ ...@@ -8,7 +8,7 @@ COPY ./package*.json ./
FROM base as builder FROM base as builder
RUN npm ci && npm cache clean --force RUN npm ci && npm cache clean --force
COPY . ./ COPY . ./
RUN npm run patch && npm run build RUN npm run build
FROM base FROM base
ENV NODE_ENV production ENV NODE_ENV production
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"scripts": { "scripts": {
"lint": "eslint --fix .", "lint": "eslint --fix .",
"patch": "sed -i -e \"s/server.emit('proxy-auth', user/server.emit('proxy-auth', socket, user/g\" -e \"s/server.emit('proxy-auth', ''/server.emit('proxy-auth', socket, ''/g\" -e \"s/await createProxyConnection({ srcHost, srcPort/await createProxyConnection({ socket, srcHost, srcPort/g\" -e \"s/await createProxyConnection({ dstHost, dstPort/await createProxyConnection({ socket, dstHost, dstPort/g\" ./node_modules/@mutagen-d/node-proxy-server/src/index.js", "patch": "sed -i -e \"s/server.emit('proxy-auth', user/server.emit('proxy-auth', socket, user/g\" -e \"s/server.emit('proxy-auth', ''/server.emit('proxy-auth', socket, ''/g\" -e \"s/await createProxyConnection({ srcHost, srcPort/await createProxyConnection({ socket, srcHost, srcPort/g\" -e \"s/await createProxyConnection({ dstHost, dstPort/await createProxyConnection({ socket, dstHost, dstPort/g\" -e \"s/server.emit('error', e)//g\" ./node_modules/@mutagen-d/node-proxy-server/src/index.js",
"build": "rimraf dist && npm run patch && tsc", "build": "rimraf dist && npm run patch && tsc",
"test": "jest --passWithNoTests", "test": "jest --passWithNoTests",
"start": "node dist/index.js" "start": "node dist/index.js"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment