@wixc3/fs-utils
Advanced tools
Comparing version 12.0.3 to 12.0.4
@@ -86,3 +86,5 @@ "use strict"; | ||
const importPackageJsonPath = (0, package_json_1.getPackageJsonPath)(importedFilePath, fs); | ||
const importPackageJsonName = importPackageJsonPath ? (0, package_json_1.getPackageName)(importPackageJsonPath, fs) : undefined; | ||
const importPackageJsonName = importPackageJsonPath | ||
? (0, package_json_1.getPackageName)(fs.dirname(importPackageJsonPath), fs) | ||
: undefined; | ||
if (importPackageJsonPath === targetPackageJsonPath || !importPackageJsonPath || !importPackageJsonName) { | ||
@@ -89,0 +91,0 @@ return getRelativeImportPath(targetFilePath, importedFilePath); |
@@ -74,3 +74,5 @@ import { posix as posixPath, win32 as win32Path, extname } from '@file-services/path'; | ||
const importPackageJsonPath = getPackageJsonPath(importedFilePath, fs); | ||
const importPackageJsonName = importPackageJsonPath ? getPackageName(importPackageJsonPath, fs) : undefined; | ||
const importPackageJsonName = importPackageJsonPath | ||
? getPackageName(fs.dirname(importPackageJsonPath), fs) | ||
: undefined; | ||
if (importPackageJsonPath === targetPackageJsonPath || !importPackageJsonPath || !importPackageJsonName) { | ||
@@ -77,0 +79,0 @@ return getRelativeImportPath(targetFilePath, importedFilePath); |
{ | ||
"name": "@wixc3/fs-utils", | ||
"version": "12.0.3", | ||
"version": "12.0.4", | ||
"description": "Filesystem utils, usable in all environments", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -112,3 +112,5 @@ import { posix as posixPath, win32 as win32Path, extname } from '@file-services/path'; | ||
const importPackageJsonPath = getPackageJsonPath(importedFilePath, fs); | ||
const importPackageJsonName = importPackageJsonPath ? getPackageName(importPackageJsonPath, fs) : undefined; | ||
const importPackageJsonName = importPackageJsonPath | ||
? getPackageName(fs.dirname(importPackageJsonPath), fs) | ||
: undefined; | ||
@@ -115,0 +117,0 @@ if (importPackageJsonPath === targetPackageJsonPath || !importPackageJsonPath || !importPackageJsonName) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
112131
1427