Skip to content

Commit 6500cd0

Browse files
committed
Fix import
1 parent 1d819ea commit 6500cd0

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

bin/blobpack.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { fileURLToPath } from 'url'
55

66
import arg from 'arg'
77

8-
import { build, install, loadJson } from '../index.js'
8+
import { loadJson } from '../lib/config.js'
9+
import { build, install } from '../index.js'
910

1011
const args = arg({
1112
'--version': Boolean,

lib/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const loadConfig = async (configPath) => {
1313
return config
1414
}
1515

16-
const loadJson = async (name) => {
16+
export const loadJson = async (name) => {
1717
const data = await fs.promises.readFile(name)
1818
return JSON.parse(data)
1919
}

lib/load-json.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)