@adecore/ui 0.29.0 → 0.29.2

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.
@@ -73,7 +73,7 @@ const copyFrom = (from, name) => {
73
73
  };
74
74
  const findCopies = () => {
75
75
  const checkout = checkoutFolders();
76
- const inside = (path) => path === checkout[0] || path.startsWith(`${checkout[0]}/`);
76
+ const inside = (path) => path === checkout[0] || path.startsWith(`${checkout[0]}${sep}`);
77
77
  // A run inside the checkout is the library's own; a node_modules above it belongs to no app.
78
78
  if (inside(realpathSync(process.cwd()))) {
79
79
  return [];
@@ -93,7 +93,7 @@ const findCopies = () => {
93
93
  .map((folder) => join(folder, 'node_modules', name))
94
94
  .filter((path) => existsSync(path))
95
95
  .map((path) => realpathSync(path)));
96
- return [...theirs].filter((real) => real !== ours).map((real) => ({ theirs: `${real}/`, ours: `${ours}/` }));
96
+ return [...theirs].filter((real) => real !== ours).map((real) => ({ theirs: `${real}${sep}`, ours: `${ours}${sep}` }));
97
97
  });
98
98
  };
99
99
  // From the registry the package manager already decided what to share; a copy nested in the library is on purpose.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/ui",
3
- "version": "0.29.0",
3
+ "version": "0.29.2",
4
4
  "description": "React components, a theme, formatters and a settings dialog for desktop-grade apps on React 19, Base UI and Tailwind 4.",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "author": "Bas Milius",
@@ -98,7 +98,7 @@ const copyFrom = (from: string, name: string): string | null => {
98
98
 
99
99
  const findCopies = (): Copy[] => {
100
100
  const checkout = checkoutFolders();
101
- const inside = (path: string): boolean => path === checkout[0] || path.startsWith(`${checkout[0]}/`);
101
+ const inside = (path: string): boolean => path === checkout[0] || path.startsWith(`${checkout[0]}${sep}`);
102
102
  // A run inside the checkout is the library's own; a node_modules above it belongs to no app.
103
103
  if (inside(realpathSync(process.cwd()))) {
104
104
  return [];
@@ -120,7 +120,7 @@ const findCopies = (): Copy[] => {
120
120
  .filter((path) => existsSync(path))
121
121
  .map((path) => realpathSync(path))
122
122
  );
123
- return [...theirs].filter((real) => real !== ours).map((real) => ({ theirs: `${real}/`, ours: `${ours}/` }));
123
+ return [...theirs].filter((real) => real !== ours).map((real) => ({ theirs: `${real}${sep}`, ours: `${ours}${sep}` }));
124
124
  });
125
125
  };
126
126