@lnai/core 0.6.9 → 0.6.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1611,7 +1611,11 @@ async function updateGitignore(rootDir, paths) {
|
|
|
1611
1611
|
);
|
|
1612
1612
|
content = content.replace(markerRegex, "");
|
|
1613
1613
|
const baseContent = content.trimEnd();
|
|
1614
|
-
const uniquePaths = [
|
|
1614
|
+
const uniquePaths = [
|
|
1615
|
+
...new Set(
|
|
1616
|
+
paths.map((p) => p.replace(/\\/g, "/")).map((p) => p.includes("/") || p.startsWith(".") ? p : `/${p}`)
|
|
1617
|
+
)
|
|
1618
|
+
].sort();
|
|
1615
1619
|
if (uniquePaths.length === 0) {
|
|
1616
1620
|
if (!hasManagedSection && !hasExistingFile) {
|
|
1617
1621
|
return;
|