Skip to content

Commit 360d197

Browse files
committed
πŸ› Fix broken url to package.json
1 parent e1215c7 commit 360d197

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

β€Žsrc/index.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default async (paths, options) => {
4848
}
4949

5050
// FIXME: can read JSON module when supported
51-
const { homepage, version } = JSON.parse(await readFile("package.json"));
51+
const { homepage, version } = JSON.parse(await readFile(new URL("../package.json", import.meta.url)));
5252

5353
// Load all images
5454
const loads = paths.map(path => loadImage(path));

β€Žtest/snapshots/test.js.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Generated by [AVA](https://avajs.dev).
7979
h: 36,
8080
w: 32,
8181
},
82-
version: '1.4.0',
82+
version: '1.5.0',
8383
},
8484
}
8585

β€Žtest/snapshots/test.js.snapβ€Ž

-1 Bytes
Binary file not shown.

0 commit comments

Comments
Β (0)