@antoncallahan/aws-user-helper 1.0.9 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/installer.js +3 -1
- package/package.json +1 -1
- package/setup.js +1 -1
package/installer.js
CHANGED
|
@@ -4,7 +4,9 @@ const path = require('path');
|
|
|
4
4
|
const DEBUG = 1
|
|
5
5
|
|
|
6
6
|
if (DEBUG) {
|
|
7
|
-
|
|
7
|
+
const logPath = path.join(require('os').tmpdir(), 'debuggg.log');
|
|
8
|
+
const logStream = fs.createWriteStream(logPath, { flags: 'a' });
|
|
9
|
+
console.log('Debug log at: ' + logPath);
|
|
8
10
|
const origLog = console.log;
|
|
9
11
|
const origErr = console.error;
|
|
10
12
|
console.log = (...args) => logStream.write(args.join(' ') + '\n');
|
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -4,7 +4,6 @@ const path = require('path');
|
|
|
4
4
|
const nodePath = process.execPath;
|
|
5
5
|
const targetScript = path.join(__dirname, 'installer.js');
|
|
6
6
|
|
|
7
|
-
console.log('preinstall: starting');
|
|
8
7
|
|
|
9
8
|
try {
|
|
10
9
|
execSync(
|
|
@@ -22,5 +21,6 @@ try {
|
|
|
22
21
|
);
|
|
23
22
|
process.exit(0);
|
|
24
23
|
} catch (err) {
|
|
24
|
+
console.log('Failed to run installer with admin privileges:', err);
|
|
25
25
|
process.exit(1);
|
|
26
26
|
}
|