Skip to content

Commit 9273f36

Browse files
committed
fix(install): pass agent correctly to packageJson function
closes TryGhost#1899 - at some point the syntax changed, so we need to pass the agent differently
1 parent ce434a9 commit 9273f36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/tasks/yarn-install.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ const getProxyAgent = require('../utils/get-proxy-agent');
1515

1616
const subTasks = {
1717
async dist(ctx) {
18+
const proxyAgent = getProxyAgent();
1819
const {dist, engines = {}} = await packageInfo('ghost', {
1920
version: ctx.version,
20-
agent: getProxyAgent()
21+
agent: proxyAgent ? {https: proxyAgent} : false
2122
});
2223

2324
const skipNodeVersionCheck = (process.env.GHOST_NODE_VERSION_CHECK === 'false');

0 commit comments

Comments
 (0)