universal-dev-standards 3.5.0-beta.6 → 3.5.0-beta.7
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/package.json +1 -1
- package/src/utils/hasher.js +3 -2
package/package.json
CHANGED
package/src/utils/hasher.js
CHANGED
|
@@ -151,7 +151,7 @@ export function getFileStatusSummary(projectPath, manifest) {
|
|
|
151
151
|
* Recursively scan directory for all files
|
|
152
152
|
* @param {string} dirPath - Directory to scan
|
|
153
153
|
* @param {string} basePath - Base path for relative path calculation
|
|
154
|
-
* @returns {string[]} Array of relative paths
|
|
154
|
+
* @returns {string[]} Array of relative paths (always uses forward slashes)
|
|
155
155
|
*/
|
|
156
156
|
function scanDirectory(dirPath, basePath) {
|
|
157
157
|
const files = [];
|
|
@@ -160,7 +160,8 @@ function scanDirectory(dirPath, basePath) {
|
|
|
160
160
|
for (const item of items) {
|
|
161
161
|
const fullPath = join(dirPath, item.name);
|
|
162
162
|
// Calculate relative path by removing basePath prefix
|
|
163
|
-
|
|
163
|
+
// Normalize to forward slashes for cross-platform consistency
|
|
164
|
+
const relativePath = fullPath.slice(basePath.length + 1).replace(/\\/g, '/');
|
|
164
165
|
|
|
165
166
|
if (item.isDirectory()) {
|
|
166
167
|
files.push(...scanDirectory(fullPath, basePath));
|