From 2ff8fccb5e71a851634f8bd668f63526f48ea4c4 Mon Sep 17 00:00:00 2001 From: Cameron Diver Date: Tue, 24 Mar 2020 17:42:47 +0000 Subject: [PATCH] Update livepush Change-type: patch Signed-off-by: Cameron Diver --- package-lock.json | 16 ++++++++-------- package.json | 2 +- sync-debug.js | 10 +++++----- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index ae92c59b..b5583b3b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6857,23 +6857,23 @@ } }, "livepush": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/livepush/-/livepush-2.1.0.tgz", - "integrity": "sha512-7DNYdaQjr261PHZDh7BZ/U1VlVWtMeuTDmP0EOk6jwuBBTdpGt2Yz7JEpv93ddRv7vthLH/kRUyNdTTgTd9I9Q==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/livepush/-/livepush-3.0.3.tgz", + "integrity": "sha512-KziITyKAJfRUQdJ0fwmaSBct30Mxkr/owXktNZ9hNzkbkqwFvcVBYVW1xPKq6paW2j4OJcS8T0njsf4sbgzZWg==", "dev": true, "requires": { - "bluebird": "^3.5.1", + "bluebird": "^3.7.2", "docker-file-parser": "^1.0.4", "dockerode": "^2.5.6", - "lodash": "^4.17.10", + "lodash": "^4.17.15", "minimatch": "^3.0.4", "mz": "^2.7.0", "node-watch": "^0.5.9", "shell-escape": "^0.2.0", - "shell-quote": "^1.6.1", + "shell-quote": "^1.7.2", "strict-event-emitter-types": "^2.0.0", - "ts-node": "^8.0.3", - "typed-error": "^3.0.1" + "ts-node": "^8.6.2", + "typed-error": "^3.2.0" }, "dependencies": { "typed-error": { diff --git a/package.json b/package.json index 0f88dd43..9c755dfe 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "json-mask": "^0.3.9", "knex": "^0.15.2", "lint-staged": "^10.0.8", - "livepush": "2.1.0", + "livepush": "^3.0.3", "lockfile": "^1.0.4", "lodash": "^4.17.15", "log-timestamp": "^0.1.2", diff --git a/sync-debug.js b/sync-debug.js index 8bbd7221..0bef0b1c 100755 --- a/sync-debug.js +++ b/sync-debug.js @@ -95,16 +95,16 @@ const performLivepush = _.debounce(async livepush => { setupLogs(containerId, docker); - const livepush = await Livepush.init( - await fs.readFile('Dockerfile.debug'), - '.', + const livepush = await Livepush.init({ + dockerfileContent: await fs.readFile('Dockerfile.debug'), + context: '.', containerId, // a bit of a hack, as the multistage images aren't // present, but it shouldn't make a difference as these // will never change - _.times(6, () => image), + stageImages: _.times(6, () => image), docker, - ); + }); chokidar .watch('.', {