Commit 7d6265e v1rtl
committed
1 parent 51786ac commit 7d6265e Copy full SHA for 7d6265e
File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ export const download = async (version?: string) => {
16
16
17
17
if ( rdr ) {
18
18
const r = readerFromStreamReader ( rdr )
19
- const f = await Deno . open ( './soljson.js' , { create : true , write : true } )
19
+ await Deno . mkdir ( `${ Deno . cwd ( ) } /.cache` )
20
+ const f = await Deno . open ( `${ Deno . cwd ( ) } /.cache/soljson.js` , { create : true , write : true } )
20
21
await copy ( r , f )
21
22
f . close ( )
22
23
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ process.versions = { node: '12.4.0' }
19
19
// @ts -ignore Node.js
20
20
globalThis . process = process
21
21
22
- const soljsonPath = `file:// ${ Deno . cwd ( ) } /.cache/soljson.js' `
22
+ const soljsonPath = `${ Deno . cwd ( ) } /.cache/soljson.js`
23
23
24
24
if ( ! ( await exists ( soljsonPath ) ) ) {
25
25
console . log ( `Downloading soljson to ${ soljsonPath } ` )
You can’t perform that action at this time.
0 commit comments