@nx-go/nx-go
Advanced tools
Comparing version 1.7.0 to 1.7.1
{ | ||
"name": "@nx-go/nx-go", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"main": "src/index.js", | ||
@@ -11,4 +11,7 @@ "schematics": "./collection.json", | ||
}, | ||
"dependencies": { | ||
"fs-extra": "^9.1.0" | ||
}, | ||
"license": "MIT", | ||
"typings": "src/index.d.ts" | ||
} |
@@ -5,2 +5,3 @@ "use strict"; | ||
const workspace_1 = require("@nrwl/workspace"); | ||
const fs_extra_1 = require("fs-extra"); | ||
const path_1 = require("path"); | ||
@@ -13,2 +14,3 @@ /** | ||
const name = workspace_1.toFileName(options.name); | ||
const nxJson = fs_extra_1.readJSONSync(path_1.join(process.cwd(), 'nx.json')) || {}; | ||
const projectDirectory = options.directory ? `${workspace_1.toFileName(options.directory)}/${name}` : name; | ||
@@ -18,3 +20,3 @@ const projectName = projectDirectory.replace(new RegExp('/', 'g'), '-'); | ||
const parsedTags = options.tags ? options.tags.split(',').map((s) => s.trim()) : []; | ||
return Object.assign(Object.assign({}, options), { projectName, | ||
return Object.assign(Object.assign({}, options), { npmScope: nxJson.npmScope, projectName, | ||
projectRoot, | ||
@@ -36,3 +38,3 @@ projectDirectory, | ||
context.logger.info(`Creating ${modFile} in workspace root`); | ||
tree.create(`${modFile}`, `module ${options.name}\n`); | ||
tree.create(`${modFile}`, `module ${options.npmScope}\n`); | ||
} | ||
@@ -39,0 +41,0 @@ } |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
37116
605
1
2
+ Addedfs-extra@^9.1.0
+ Addedat-least-node@1.0.0(transitive)
+ Addedfs-extra@9.1.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addeduniversalify@2.0.1(transitive)