From 9a29f01ae91a49b1cd72b7c24cebfb691da7d4a1 Mon Sep 17 00:00:00 2001 From: Glenn Hartmann Date: Sat, 12 Sep 2020 16:25:53 +0000 Subject: [PATCH] fix repak.js on newer versions of node There were 2 separate issues: * the specified version of uses os.tmpDir() instead of os.tmpdir() * the package doesn't work anymore, and should be replaced by the built-in This fixes https://github.com/inolen/quakejs/issues/69. --- bin/repak.js | 2 +- package.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/repak.js b/bin/repak.js index 0f041318..f3bd568b 100644 --- a/bin/repak.js +++ b/bin/repak.js @@ -4,7 +4,7 @@ var fs = require('fs'); var logger = require('winston'); var path = require('path'); var exec = require('child_process').exec; -var execSync = require('execSync').exec; +var execSync = require('child_process').execSync; var os = require('os'); var temp = require('temp'); var wrench = require('wrench'); diff --git a/package.json b/package.json index 901f7479..efe93261 100644 --- a/package.json +++ b/package.json @@ -17,12 +17,11 @@ "async": "~0.2.9", "buffer-crc32": "~0.2.1", "ejs": "~0.8.4", - "execSync": "~1.0.1-pre", "express": "~3.3.5", "optimist": "~0.6.0", "quakejs-files": "0.0.3", "send": "^0.16.2", - "temp": "~0.5.1", + "temp": "^0.9.1", "underscore": "~1.5.1", "winston": "2.4.0", "wrench": "~1.5.4",