@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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. 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 = [...new Set(paths)].sort();
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lnai/core",
3
- "version": "0.6.9",
3
+ "version": "0.6.91",
4
4
  "description": "Core library for LNAI - unified AI config management",
5
5
  "type": "module",
6
6
  "license": "MIT",