mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
merge initialization
This commit is contained in:
parent
06a42c30fd
commit
7615cedeb4
@ -1,5 +1,6 @@
|
|||||||
import path from "node:path"
|
import path from "node:path"
|
||||||
import os from "node:os"
|
import os from "node:os"
|
||||||
|
import lodash from "lodash"
|
||||||
|
|
||||||
import Vars from "../vars"
|
import Vars from "../vars"
|
||||||
import PublicLibs from "../public_libraries"
|
import PublicLibs from "../public_libraries"
|
||||||
@ -24,14 +25,12 @@ export default async (manifest = {}) => {
|
|||||||
|
|
||||||
if (typeof manifest.init === "function") {
|
if (typeof manifest.init === "function") {
|
||||||
const init_result = await manifest.init({
|
const init_result = await manifest.init({
|
||||||
|
manifest: manifest,
|
||||||
install_path: install_path,
|
install_path: install_path,
|
||||||
os_string: os_string,
|
os_string: os_string,
|
||||||
})
|
})
|
||||||
|
|
||||||
manifest = {
|
manifest = lodash.merge(manifest, init_result)
|
||||||
...manifest,
|
|
||||||
...init_result,
|
|
||||||
}
|
|
||||||
|
|
||||||
delete manifest.init
|
delete manifest.init
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user