nothing
This commit is contained in:
parent
de668a42a3
commit
6bd3f54842
1 changed files with 8 additions and 4 deletions
|
|
@ -13,10 +13,14 @@ for (const arg of process.argv) {
|
||||||
export const isTestMode = options["test"] ?? false
|
export const isTestMode = options["test"] ?? false
|
||||||
|
|
||||||
if (!fs.existsSync("asajs.config.js")) {
|
if (!fs.existsSync("asajs.config.js")) {
|
||||||
fs.copyFileSync(
|
if (isTestMode) {
|
||||||
isTestMode ? "resources/asajs.config.js" : "node_modules/asajs/resources/asajs.config.js",
|
fs.writeFileSync(
|
||||||
"asajs.config.js",
|
"asajs.config.js",
|
||||||
|
fs.readFileSync("resources/asajs.config.js", "utf-8").replace("asajs/", "./"),
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
fs.copyFileSync("node_modules/asajs/resources/asajs.config.js", "asajs.config.js")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const config: Config = createRequire(import.meta.url)(path.resolve(process.cwd(), "asajs.config.js")).config
|
export const config: Config = createRequire(import.meta.url)(path.resolve(process.cwd(), "asajs.config.js")).config
|
||||||
|
|
|
||||||
Reference in a new issue