@embroider/shared-internals
Advanced tools
Comparing version 0.39.1 to 0.40.0
{ | ||
"name": "@embroider/shared-internals", | ||
"version": "0.39.1", | ||
"version": "0.40.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Utilities shared among the other embroider packages", |
@@ -10,2 +10,4 @@ import type { Node } from 'broccoli-node-api'; | ||
version: string; | ||
dependencies: Record<string, string>; | ||
devDependencies: Record<string, string>; | ||
}; | ||
@@ -12,0 +14,0 @@ root: string; |
@@ -13,3 +13,3 @@ "use strict"; | ||
let result = path_1.join(path_1.relative(fromDir, path_1.dirname(toFile)), path_1.basename(toFile)); | ||
if (!result.startsWith('/') && !result.startsWith('.')) { | ||
if (!path_1.isAbsolute(result) && !result.startsWith('.')) { | ||
result = './' + result; | ||
@@ -24,2 +24,10 @@ } | ||
} | ||
// windows supports both "./" and ".\", but webpack 5 insists on "./" | ||
if (result.startsWith('.\\')) { | ||
return './' + result.slice(2); | ||
} | ||
// windows supports both "../" and "..\", but webpack 5 insists on "../" | ||
if (result.startsWith('..\\')) { | ||
return '../' + result.slice(3); | ||
} | ||
return result; | ||
@@ -26,0 +34,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43525
694