Socket
Socket
Sign inDemoInstall

@nx/devkit

Package Overview
Dependencies
Maintainers
4
Versions
595
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nx/devkit - npm Package Compare versions

Comparing version 0.0.0-pr-27085-57245c5 to 0.0.0-pr-27530-4059102

src/generators/target-defaults-utils.d.ts

7

package.json
{
"name": "@nx/devkit",
"version": "0.0.0-pr-27085-57245c5",
"version": "0.0.0-pr-27530-4059102",
"private": false,

@@ -39,3 +39,3 @@ "description": "The Nx Devkit is used to customize Nx for different technologies and use cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more. Learn more about [extending Nx by leveraging the Nx Devkit](https://nx.dev/extending-nx/intro/getting-started) on our docs.",

"minimatch": "9.0.3",
"@nrwl/devkit": "0.0.0-pr-27085-57245c5"
"@nrwl/devkit": "0.0.0-pr-27530-4059102"
},

@@ -51,3 +51,4 @@ "peerDependencies": {

},
"type": "commonjs"
"type": "commonjs",
"types": "./index.d.ts"
}

@@ -25,3 +25,3 @@ <p style="text-align: center;">

Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
Nx is a build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced CI capabilities including caching and distribution.

@@ -28,0 +28,0 @@ This package contains a set of utilities for creating Nx plugins.

import type { Tree } from 'nx/src/devkit-exports';
import type { ScriptTarget, ModuleKind } from 'typescript';
import type { ModuleKind, ScriptTarget } from 'typescript';
export type ToJSOptions = {
extension?: '.js' | '.mjs' | '.cjs';
module?: ModuleKind;
target?: ScriptTarget;
module?: ModuleKind;
extension: '.js' | '.mjs' | '.cjs';
useJsx?: boolean;
};

@@ -8,0 +9,0 @@ /**

@@ -20,5 +20,11 @@ "use strict";

}));
tree.rename(c.path, c.path.replace(/\.tsx?$/, options?.extension ?? '.js'));
tree.rename(c.path, c.path.replace(/\.ts$/, options?.extension ?? '.js'));
if (options?.useJsx) {
tree.rename(c.path, c.path.replace(/\.tsx$/, '.jsx'));
}
else {
tree.rename(c.path, c.path.replace(/\.tsx$/, options?.extension ?? '.js'));
}
}
}
}

@@ -14,3 +14,3 @@ "use strict";

*/
function installPackagesTask(tree, alwaysRun = false, cwd = '', packageManager = (0, devkit_exports_1.detectPackageManager)(cwd)) {
function installPackagesTask(tree, alwaysRun = false, cwd = '', packageManager = (0, devkit_exports_1.detectPackageManager)((0, path_1.join)(tree.root, cwd))) {
if (!tree

@@ -17,0 +17,0 @@ .listChanges()

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