@nx-go/nx-go
Advanced tools
Comparing version 2.4.0 to 2.5.0
{ | ||
"name": "@nx-go/nx-go", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "generators": "./generators.json", |
@@ -44,2 +44,4 @@ "use strict"; | ||
try { | ||
const goModuleJSON = (0, child_process_1.execSync)('go list -m -json', { encoding: 'utf-8', cwd: workspaceRootPath }); | ||
const goModule = JSON.parse(goModuleJSON); | ||
const goPackageDataJson = (0, child_process_1.execSync)('go list -json ./' + file, { encoding: 'utf-8', cwd: workspaceRootPath }); | ||
@@ -51,4 +53,4 @@ const goPackage = JSON.parse(goPackageDataJson); | ||
return listOfImports | ||
.filter((d) => d.startsWith(goPackage.Module.Path)) | ||
.map((d) => d.substring(goPackage.Module.Path.length + 1)) | ||
.filter((d) => d.startsWith(goModule.Path)) | ||
.map((d) => d.substring(goModule.Path.length + 1)) | ||
.map((rootDir) => projectRootLookup.get(rootDir)) | ||
@@ -55,0 +57,0 @@ .filter((projectName) => projectName); |
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
43493
657