mirror of
https://github.com/pesde-pkg/scripts.git
synced 2024-12-12 15:00:37 +00:00
style: apply stylua formatter
This commit is contained in:
parent
c1a4bf5bd7
commit
add460c3cc
2 changed files with 41 additions and 37 deletions
|
@ -56,10 +56,14 @@ local PLATFORM_SEP = if process.os == "windows" then "\\" else "/"
|
||||||
--- ## Errors
|
--- ## Errors
|
||||||
--- * The current process lacks permissions to a file
|
--- * The current process lacks permissions to a file
|
||||||
--- * Any I/O error occurs
|
--- * Any I/O error occurs
|
||||||
return function(packageDirectory: string?, files: { string }, options: {
|
return function(
|
||||||
writeToFile: boolean?,
|
packageDirectory: string?,
|
||||||
force: boolean?,
|
files: { string },
|
||||||
}): (boolean, string?)
|
options: {
|
||||||
|
writeToFile: boolean?,
|
||||||
|
force: boolean?,
|
||||||
|
}
|
||||||
|
): (boolean, string?)
|
||||||
packageDirectory = packageDirectory or process.cwd
|
packageDirectory = packageDirectory or process.cwd
|
||||||
local syncConfigPath = `{packageDirectory}{PLATFORM_SEP}default.project.json`
|
local syncConfigPath = `{packageDirectory}{PLATFORM_SEP}default.project.json`
|
||||||
if fs.isFile(syncConfigPath) and not options.force then
|
if fs.isFile(syncConfigPath) and not options.force then
|
||||||
|
|
Loading…
Reference in a new issue