Skip to content

Commit f7be8d9

Browse files
committed
Merge branch 'DetachHead-master'
2 parents 5e7214c + 802abe4 commit f7be8d9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/smui-theme/bin/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const sass = require('sass');
44
const fetch = require('node-fetch');
55
const yargs = require('yargs/yargs');
66
const { hideBin } = require('yargs/helpers');
7+
const HttpsProxyAgent = require('https-proxy-agent');
78

89
yargs(hideBin(process.argv))
910
.command(
@@ -113,7 +114,12 @@ yargs(hideBin(process.argv))
113114
const themeSource = await fetch(
114115
`https://raw.githubusercontent.com/hperrin/svelte-material-ui/master/packages/site/src/theme/${
115116
dark ? 'dark/' : ''
116-
}_smui-theme.scss`
117+
}_smui-theme.scss`,
118+
{
119+
agent: process.env['https_proxy']
120+
? new HttpsProxyAgent(process.env['https_proxy'])
121+
: undefined,
122+
}
117123
).then((result) => result.text());
118124

119125
if (!themeSource) {

packages/smui-theme/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
},
7474
"dependencies": {
7575
"@material/theme": "^14.0.0",
76+
"https-proxy-agent": "^5.0.1",
7677
"node-fetch": "^2.6.9",
7778
"sass": "^1.60.0",
7879
"yargs": "^17.7.1"

0 commit comments

Comments
 (0)