Fix managed gitignore
This commit is contained in:
parent
397f8133bf
commit
7ee30b6a42
@ -38,9 +38,9 @@ export async function writeManagedGitignoreFile(params: {
|
|||||||
`# This file is managed by Keycloakify, do not edit it manually.`,
|
`# This file is managed by Keycloakify, do not edit it manually.`,
|
||||||
``,
|
``,
|
||||||
DELIMITER_START,
|
DELIMITER_START,
|
||||||
...ejectedFilesRelativePaths.map(fileRelativePath =>
|
...ejectedFilesRelativePaths
|
||||||
fileRelativePath.split(pathSep).join("/")
|
.map(fileRelativePath => fileRelativePath.split(pathSep).join("/"))
|
||||||
),
|
.map(line => `# ${line}`),
|
||||||
DELIMITER_END,
|
DELIMITER_END,
|
||||||
``,
|
``,
|
||||||
...uiModuleMetas
|
...uiModuleMetas
|
||||||
@ -122,6 +122,7 @@ export async function readManagedGitignoreFile(params: {
|
|||||||
const ejectedFilesRelativePaths = payload
|
const ejectedFilesRelativePaths = payload
|
||||||
.split("\n")
|
.split("\n")
|
||||||
.map(line => line.trim())
|
.map(line => line.trim())
|
||||||
|
.map(line => line.replace(/^# /, ""))
|
||||||
.filter(line => line !== "")
|
.filter(line => line !== "")
|
||||||
.map(line =>
|
.map(line =>
|
||||||
getAbsoluteAndInOsFormatPath({
|
getAbsoluteAndInOsFormatPath({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user