hexo-theme-shokax 0.4.6-beta2 → 0.4.6-dev1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/toolbox/lib.mjs +7 -2
package/package.json
CHANGED
package/toolbox/lib.mjs
CHANGED
@@ -36,8 +36,13 @@ export async function hoistDeps() {
|
|
36
36
|
const latestV = res['dist-tags'].latest
|
37
37
|
const deps = res.versions[latestV].dependencies
|
38
38
|
const depsList = Object.keys(deps).map(d => `${d}@${deps[d]}`)
|
39
|
-
|
39
|
+
child_process.exec(`${pm} ${depsList.join(' ')}`.trim(), {
|
40
|
+
cwd: hexoRoot
|
41
|
+
}, async (code, stdout, stderr) => {
|
42
|
+
|
43
|
+
})
|
40
44
|
} catch (e) {
|
41
|
-
|
45
|
+
throw e
|
46
|
+
// console.log('Skipping hoisting dependencies.')
|
42
47
|
}
|
43
48
|
}
|