Skip to content

Commit 4aa5f5d

Browse files
committed
task: update deps
1 parent bc8165c commit 4aa5f5d

28 files changed

Lines changed: 2451 additions & 2223 deletions

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
FROM node:22 as builder
1+
FROM node:22 AS builder
22
WORKDIR /app
33

44
COPY package*.json ./
55

66
RUN npm ci
7+
8+
COPY . .
9+
10+
RUN npm run tsc
11+
712
RUN npm install --omit=dev \
813
@deepstream/cache-redis \
914
# @deepstream/cache-memcached \
@@ -16,10 +21,6 @@ RUN npm install --omit=dev \
1621
@deepstream/logger-winston \
1722
@deepstream/plugin-aws
1823

19-
COPY . .
20-
21-
RUN npm run tsc
22-
2324
FROM node:22
2425
WORKDIR /usr/local/deepstream
2526
COPY --from=builder /app/node_modules/ ./node_modules

bin/deepstream-cluster.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Command } from 'commander'
2-
import * as cluster from 'cluster'
2+
import cluster from 'cluster'
33
const numCPUs = require('os').cpus().length
44
import { EVENT } from '@deepstream/types'
55

@@ -55,7 +55,6 @@ function action () {
5555
}
5656

5757
// if it is a master process then call setting up worker process
58-
// @ts-ignore
5958
if (cluster.isPrimary) {
6059
setupWorkerProcesses()
6160
} else {

bin/deepstream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
import * as pgk from '../package.json'
2+
import pgk from '../package.json'
33

44
import { Command } from 'commander'
55
import { start } from './deepstream-start'

0 commit comments

Comments
 (0)