Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nx-go/nx-go

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nx-go/nx-go - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

src/schematics/library/files/__projectName___test.go.template

5

package.json
{
"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"
}

6

src/schematics/application/schematic.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc