Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/tasks/yarn-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ const getProxyAgent = require('../utils/get-proxy-agent');

const subTasks = {
async dist(ctx) {
const proxyAgent = getProxyAgent();
const {dist, engines = {}} = await packageInfo('ghost', {
version: ctx.version,
agent: getProxyAgent()
agent: proxyAgent ? {https: proxyAgent} : false
});

const skipNodeVersionCheck = (process.env.GHOST_NODE_VERSION_CHECK === 'false');
Expand Down
3 changes: 2 additions & 1 deletion lib/utils/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ const MIN_RELEASE = '>= 1.0.0';

const utils = {
async loadVersions(includePrerelease = false) {
const proxyAgent = getProxyAgent();
const result = await packageJson('ghost', {
allVersions: true,
agent: getProxyAgent()
agent: proxyAgent ? {https: proxyAgent} : null
});
const versions = Object.keys(result.versions)
.filter(v => semver.satisfies(v, MIN_RELEASE, {includePrerelease}))
Expand Down
Loading