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 ./
FROM base as builder
RUN npm ci && npm cache clean --force
COPY . ./
RUN npm run patch && npm run build
RUN npm run build
FROM base
ENV NODE_ENV production
......
......@@ -6,7 +6,7 @@
"types": "dist/index.d.ts",
"scripts": {
"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",
"test": "jest --passWithNoTests",
"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