Skip to content

Commit 7d6265e

Browse files
author
v1rtl
committed
fix download path
1 parent 51786ac commit 7d6265e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

download.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export const download = async (version?: string) => {
1616

1717
if (rdr) {
1818
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 })
2021
await copy(r, f)
2122
f.close()
2223
}

mod.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ process.versions = { node: '12.4.0' }
1919
// @ts-ignore Node.js
2020
globalThis.process = process
2121

22-
const soljsonPath = `file://${Deno.cwd()}/.cache/soljson.js'`
22+
const soljsonPath = `${Deno.cwd()}/.cache/soljson.js`
2323

2424
if (!(await exists(soljsonPath))) {
2525
console.log(`Downloading soljson to ${soljsonPath}`)

0 commit comments

Comments
 (0)