@adecore/ui 0.29.1 → 0.29.3
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/testing/dedupe.js +2 -2
- package/package.json +1 -1
- package/src/testing/dedupe.ts +2 -2
package/dist/testing/dedupe.js
CHANGED
|
@@ -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}
|
|
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
package/src/testing/dedupe.ts
CHANGED
|
@@ -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}
|
|
123
|
+
return [...theirs].filter((real) => real !== ours).map((real) => ({ theirs: `${real}${sep}`, ours: `${ours}${sep}` }));
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
126
|
|