Socket
Socket
Sign inDemoInstall

@nx/workspace

Package Overview
Dependencies
Maintainers
4
Versions
631
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nx/workspace - npm Package Compare versions

Comparing version 16.0.0-beta.1 to 16.0.0-beta.2

58

package.json
{
"name": "@nx/workspace",
"version": "16.0.0-beta.1",
"version": "16.0.0-beta.2",
"private": false,

@@ -36,32 +36,32 @@ "description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",

"packageGroup": {
"@nrwl/js": "16.0.0-beta.1",
"@nrwl/jest": "16.0.0-beta.1",
"@nrwl/linter": "16.0.0-beta.1",
"@nrwl/angular": "16.0.0-beta.1",
"@nrwl/cypress": "16.0.0-beta.1",
"@nrwl/detox": "16.0.0-beta.1",
"@nrwl/devkit": "16.0.0-beta.1",
"@nrwl/esbuild": "16.0.0-beta.1",
"@nrwl/eslint-plugin-nx": "16.0.0-beta.1",
"@nrwl/expo": "16.0.0-beta.1",
"@nrwl/express": "16.0.0-beta.1",
"@nrwl/nest": "16.0.0-beta.1",
"@nrwl/next": "16.0.0-beta.1",
"@nrwl/node": "16.0.0-beta.1",
"@nrwl/js": "16.0.0-beta.2",
"@nrwl/jest": "16.0.0-beta.2",
"@nrwl/linter": "16.0.0-beta.2",
"@nrwl/angular": "16.0.0-beta.2",
"@nrwl/cypress": "16.0.0-beta.2",
"@nrwl/detox": "16.0.0-beta.2",
"@nrwl/devkit": "16.0.0-beta.2",
"@nrwl/esbuild": "16.0.0-beta.2",
"@nrwl/eslint-plugin-nx": "16.0.0-beta.2",
"@nrwl/expo": "16.0.0-beta.2",
"@nrwl/express": "16.0.0-beta.2",
"@nrwl/nest": "16.0.0-beta.2",
"@nrwl/next": "16.0.0-beta.2",
"@nrwl/node": "16.0.0-beta.2",
"nx-cloud": "latest",
"@nrwl/nx-plugin": "16.0.0-beta.1",
"@nrwl/react-native": "16.0.0-beta.1",
"@nrwl/react": "16.0.0-beta.1",
"@nrwl/rollup": "16.0.0-beta.1",
"@nrwl/storybook": "16.0.0-beta.1",
"@nrwl/tao": "16.0.0-beta.1",
"@nrwl/vite": "16.0.0-beta.1",
"@nrwl/web": "16.0.0-beta.1",
"@nrwl/webpack": "16.0.0-beta.1",
"nx": "16.0.0-beta.1"
"@nrwl/nx-plugin": "16.0.0-beta.2",
"@nrwl/react-native": "16.0.0-beta.2",
"@nrwl/react": "16.0.0-beta.2",
"@nrwl/rollup": "16.0.0-beta.2",
"@nrwl/storybook": "16.0.0-beta.2",
"@nrwl/tao": "16.0.0-beta.2",
"@nrwl/vite": "16.0.0-beta.2",
"@nrwl/web": "16.0.0-beta.2",
"@nrwl/webpack": "16.0.0-beta.2",
"nx": "16.0.0-beta.2"
}
},
"dependencies": {
"@nrwl/workspace": "16.0.0-beta.1",
"@nx/devkit": "16.0.0-beta.1",
"@nrwl/workspace": "16.0.0-beta.2",
"@nx/devkit": "16.0.0-beta.2",
"@parcel/watcher": "2.0.4",

@@ -78,3 +78,3 @@ "chalk": "^4.1.0",

"npm-run-path": "^4.0.1",
"nx": "16.0.0-beta.1",
"nx": "16.0.0-beta.2",
"open": "^8.4.0",

@@ -91,3 +91,3 @@ "rxjs": "^6.5.4",

"types": "./index.d.ts",
"gitHead": "abf534c265f5aa3aac146e55bb31de598ea281d7"
"gitHead": "0d7dbbc5254390f53a28d94de536da916ed06a70"
}

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

`g`,
`@nrwl/workspace:preset`,
`@nx/workspace:preset`,
`--name=${opts.appName}`,

@@ -76,9 +76,10 @@ opts.style ? `--style=${opts.style}` : null,

function getPresetDependencies({ preset, presetVersion, bundler, }) {
var _a;
switch (preset) {
case presets_1.Preset.TS:
return { dependencies: {}, dev: { '@nrwl/js': versions_1.nxVersion } };
return { dependencies: {}, dev: { '@nx/js': versions_1.nxVersion } };
case presets_1.Preset.AngularMonorepo:
case presets_1.Preset.AngularStandalone:
return {
dependencies: { '@nrwl/angular': versions_1.nxVersion },
dependencies: { '@nx/angular': versions_1.nxVersion },
dev: {

@@ -90,10 +91,10 @@ '@angular-devkit/core': versions_1.angularCliVersion,

case presets_1.Preset.Express:
return { dependencies: {}, dev: { '@nrwl/express': versions_1.nxVersion } };
return { dependencies: {}, dev: { '@nx/express': versions_1.nxVersion } };
case presets_1.Preset.Nest:
return {
dependencies: {},
dev: { '@nrwl/nest': versions_1.nxVersion, typescript: versions_1.typescriptVersion },
dev: { '@nx/nest': versions_1.nxVersion, typescript: versions_1.typescriptVersion },
};
case presets_1.Preset.NextJs:
return { dependencies: { '@nrwl/next': versions_1.nxVersion }, dev: {} };
return { dependencies: { '@nx/next': versions_1.nxVersion }, dev: {} };
case presets_1.Preset.ReactMonorepo:

@@ -104,20 +105,20 @@ case presets_1.Preset.ReactStandalone:

dev: {
'@nrwl/react': versions_1.nxVersion,
'@nrwl/cypress': versions_1.nxVersion,
'@nrwl/jest': bundler !== 'vite' ? versions_1.nxVersion : undefined,
'@nrwl/vite': bundler === 'vite' ? versions_1.nxVersion : undefined,
'@nrwl/webpack': bundler === 'webpack' ? versions_1.nxVersion : undefined,
'@nx/react': versions_1.nxVersion,
'@nx/cypress': versions_1.nxVersion,
'@nx/jest': bundler !== 'vite' ? versions_1.nxVersion : undefined,
'@nx/vite': bundler === 'vite' ? versions_1.nxVersion : undefined,
'@nx/webpack': bundler === 'webpack' ? versions_1.nxVersion : undefined,
},
};
case presets_1.Preset.ReactNative:
return { dependencies: {}, dev: { '@nrwl/react-native': versions_1.nxVersion } };
return { dependencies: {}, dev: { '@nx/react-native': versions_1.nxVersion } };
case presets_1.Preset.Expo:
return { dependencies: {}, dev: { '@nrwl/expo': versions_1.nxVersion } };
return { dependencies: {}, dev: { '@nx/expo': versions_1.nxVersion } };
case presets_1.Preset.WebComponents:
return {
dependencies: {},
dev: { '@nrwl/web': versions_1.nxVersion, typescript: versions_1.typescriptVersion },
dev: { '@nx/web': versions_1.nxVersion, typescript: versions_1.typescriptVersion },
};
case presets_1.Preset.NodeStandalone:
return { dependencies: {}, dev: { '@nrwl/node': versions_1.nxVersion } };
return { dependencies: {}, dev: { '@nx/node': versions_1.nxVersion } };
default: {

@@ -127,3 +128,3 @@ return {

dependencies: {
[preset]: presetVersion !== null && presetVersion !== void 0 ? presetVersion : (0, get_npm_package_version_1.getNpmPackageVersion)(preset),
[preset]: (_a = process.env['NX_E2E_PRESET_VERSION']) !== null && _a !== void 0 ? _a : (0, get_npm_package_version_1.getNpmPackageVersion)(preset, presetVersion),
},

@@ -130,0 +131,0 @@ };

@@ -51,3 +51,22 @@ "use strict";

}
function parsePresetName(input) {
// If the preset already contains a version in the name
// -- my-package@2.0.1
// -- @scope/package@version
const atIndex = input.indexOf('@', 1); // Skip the beginning @ because it denotes a scoped package.
if (atIndex > 0) {
return {
package: input.slice(0, atIndex),
version: input.slice(atIndex + 1),
};
}
else {
if (!input) {
throw new Error(`Invalid package name: ${input}`);
}
return { package: input };
}
}
function normalizeOptions(options) {
var _a;
const normalized = Object.assign({}, options);

@@ -58,10 +77,6 @@ normalized.name = (0, devkit_1.names)(options.name).fileName;

}
// If the preset already contains a version in the name
// -- my-package@2.0.1
// -- @scope/package@version
const match = options.preset.match(/^(?<package>(@.+\/)?[^@]+)(@(?<version>\d+\.\d+\.\d+))?$/);
if (match) {
normalized.preset = match.groups.package;
normalized.presetVersion = match.groups.version;
}
const parsed = parsePresetName(options.preset);
normalized.preset = parsed.package;
// explicitly specified "presetVersion" takes priority over the one from the package name
(_a = normalized.presetVersion) !== null && _a !== void 0 ? _a : (normalized.presetVersion = parsed.version);
normalized.isCustomPreset = !Object.values(presets_1.Preset).includes(options.preset);

@@ -68,0 +83,0 @@ return normalized;

@@ -1,1 +0,1 @@

export declare function getNpmPackageVersion(packageName: string): string | null;
export declare function getNpmPackageVersion(packageName: string, packageVersion?: string): string | null;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNpmPackageVersion = void 0;
function getNpmPackageVersion(packageName) {
function getNpmPackageVersion(packageName, packageVersion) {
try {
const version = require('child_process').execSync(`npm view ${packageName} version`, { stdio: ['pipe', 'pipe', 'ignore'] });
const version = require('child_process').execSync(`npm view ${packageName}${packageVersion ? '@' + packageVersion : ''} version --json`, { stdio: ['pipe', 'pipe', 'ignore'] });
if (version) {
return version
.toString()
.trim()
.replace(/^\n*|\n*$/g, '');
// package@1.12 => ["1.12.0", "1.12.1"]
// package@1.12.1 => "1.12.1"
// package@latest => "1.12.1"
const versionOrArray = JSON.parse(version.toString());
if (typeof versionOrArray === 'string') {
return versionOrArray;
}
return versionOrArray.pop();
}
}
catch (err) { }
return null;
return packageVersion !== null && packageVersion !== void 0 ? packageVersion : null;
}
exports.getNpmPackageVersion = getNpmPackageVersion;
//# sourceMappingURL=get-npm-package-version.js.map

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

const installTask = (0, devkit_1.addDependenciesToPackageJson)(host, {}, {
'@nrwl/devkit': versions_1.nxVersion,
'@nx/devkit': versions_1.nxVersion,
// types/node is neccessary for pnpm since it's used in tsconfig and transitive

@@ -14,0 +14,0 @@ // dependencies are not resolved correctly

import type { ProjectGraph, ProjectGraphProjectNode } from '@nx/devkit';
import { ProjectGraphExternalNode } from '@nx/devkit';
/**
* @deprecated This type will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This type will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/

@@ -12,3 +12,3 @@ export type DependentBuildableProjectNode = {

/**
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/

@@ -22,15 +22,15 @@ export declare function calculateProjectDependencies(projGraph: ProjectGraph, root: string, projectName: string, targetName: string, configurationName: string, shallow?: boolean): {

/**
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/
export declare function createTmpTsConfig(tsconfigPath: string, workspaceRoot: string, projectRoot: string, dependencies: DependentBuildableProjectNode[]): string;
/**
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/
export declare function checkDependentProjectsHaveBeenBuilt(root: string, projectName: string, targetName: string, projectDependencies: DependentBuildableProjectNode[]): boolean;
/**
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/
export declare function findMissingBuildDependencies(root: string, projectName: string, targetName: string, projectDependencies: DependentBuildableProjectNode[]): DependentBuildableProjectNode[];
/**
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/

@@ -41,4 +41,4 @@ export declare function updatePaths(dependencies: DependentBuildableProjectNode[], paths: Record<string, string[]>): void;

* the proper dependency and version
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/
export declare function updateBuildableProjectPackageJsonDependencies(root: string, projectName: string, targetName: string, configurationName: string, node: ProjectGraphProjectNode, dependencies: DependentBuildableProjectNode[], typeOfDependency?: 'dependencies' | 'peerDependencies'): void;

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

/**
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/

@@ -146,3 +146,3 @@ function calculateProjectDependencies(projGraph, root, projectName, targetName, configurationName, shallow) {

/**
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/

@@ -166,3 +166,3 @@ function createTmpTsConfig(tsconfigPath, workspaceRoot, projectRoot, dependencies) {

/**
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/

@@ -187,3 +187,3 @@ function checkDependentProjectsHaveBeenBuilt(root, projectName, targetName, projectDependencies) {

/**
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/

@@ -206,3 +206,3 @@ function findMissingBuildDependencies(root, projectName, targetName, projectDependencies) {

/**
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/

@@ -243,3 +243,3 @@ function updatePaths(dependencies, paths) {

* the proper dependency and version
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/

@@ -246,0 +246,0 @@ function updateBuildableProjectPackageJsonDependencies(root, projectName, targetName, configurationName, node, dependencies, typeOfDependency = 'dependencies') {

@@ -5,5 +5,5 @@ import type { GeneratorCallback } from '@nx/devkit';

*
* @deprecated This function will be removed from `@nrwl/workspace` in version 17. Prefer importing it from `@nrwl/devkit`.
* @deprecated This function will be removed from `@nx/workspace` in version 17. Prefer importing it from `@nx/devkit`.
* @param tasks The tasks to run in serial.
*/
export declare function runTasksInSerial(...tasks: GeneratorCallback[]): GeneratorCallback;

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

*
* @deprecated This function will be removed from `@nrwl/workspace` in version 17. Prefer importing it from `@nrwl/devkit`.
* @deprecated This function will be removed from `@nx/workspace` in version 17. Prefer importing it from `@nx/devkit`.
* @param tasks The tasks to run in serial.

@@ -11,0 +11,0 @@ */

@@ -16,8 +16,8 @@ import { Tree } from '@nx/devkit';

/**
* @deprecated Please import this from @nrwl/js instead. This function will be removed in v17
* @deprecated Please import this from @nx/js instead. This function will be removed in v17
*/
export declare function getRelativePathToRootTsConfig(tree: Tree, targetPath: string): string;
/**
* @deprecated Please import this from @nrwl/js instead. This function will be removed in v17
* @deprecated Please import this from @nx/js instead. This function will be removed in v17
*/
export declare function getRootTsConfigPathInTree(tree: Tree): string;

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

/**
* @deprecated Please import this from @nrwl/js instead. This function will be removed in v17
* @deprecated Please import this from @nx/js instead. This function will be removed in v17
*/

@@ -66,3 +66,3 @@ function getRelativePathToRootTsConfig(tree, targetPath) {

/**
* @deprecated Please import this from @nrwl/js instead. This function will be removed in v17
* @deprecated Please import this from @nx/js instead. This function will be removed in v17
*/

@@ -69,0 +69,0 @@ function getRootTsConfigPathInTree(tree) {

import type * as ts from 'typescript';
/**
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/
export declare function getSourceNodes(sourceFile: ts.SourceFile): ts.Node[];

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

/**
* @deprecated This function will be removed from @nrwl/workspace in version 17. Prefer importing from @nrwl/js.
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
*/

@@ -8,0 +8,0 @@ function getSourceNodes(sourceFile) {

@@ -1,4 +0,4 @@

/** @deprecated Use checkAndCleanWithSemver from @nrwl/devkit/src/utils/semver instead.
/** @deprecated Use checkAndCleanWithSemver from @nx/devkit/src/utils/semver instead.
* TODO(v17): Remove this function from workspace. Keep it for now since there are projects that use it (e.g. https://github.com/gperdomor/nx-tools).
*/
export declare function checkAndCleanWithSemver(pkgName: string, version: string): string;

@@ -6,7 +6,7 @@ "use strict";

const devkit_1 = require("@nx/devkit");
/** @deprecated Use checkAndCleanWithSemver from @nrwl/devkit/src/utils/semver instead.
/** @deprecated Use checkAndCleanWithSemver from @nx/devkit/src/utils/semver instead.
* TODO(v17): Remove this function from workspace. Keep it for now since there are projects that use it (e.g. https://github.com/gperdomor/nx-tools).
*/
function checkAndCleanWithSemver(pkgName, version) {
devkit_1.logger.warn(`checkAndCleanWithSemver has been moved to @nrwl/devkit/src/utils/semver`);
devkit_1.logger.warn(`checkAndCleanWithSemver has been moved to @nx/devkit/src/utils/semver`);
return (0, semver_1.checkAndCleanWithSemver)(pkgName, version);

@@ -13,0 +13,0 @@ }

import type { Rule } from '@angular-devkit/schematics';
/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'addDependenciesToPackageJson' from @nrwl/devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'addDependenciesToPackageJson' from @nx/devkit.
*/

@@ -5,0 +5,0 @@ export declare function addInstallTask(options?: {

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

/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'addDependenciesToPackageJson' from @nrwl/devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'addDependenciesToPackageJson' from @nx/devkit.
*/

@@ -9,0 +9,0 @@ function addInstallTask(options = { skipInstall: false }) {

import type { Rule } from '@angular-devkit/schematics';
/**
* Remove a file from the Virtual Schematic Tree
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'Tree.delete' from @nrwl/devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'Tree.delete' from @nx/devkit.
*/
export declare function deleteFile(from: string): Rule;

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

* Remove a file from the Virtual Schematic Tree
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'Tree.delete' from @nrwl/devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'Tree.delete' from @nx/devkit.
*/

@@ -9,0 +9,0 @@ function deleteFile(from) {

import { Rule } from '@angular-devkit/schematics';
/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'formatFiles' from @nrwl/devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'formatFiles' from @nx/devkit.
*/

@@ -5,0 +5,0 @@ export declare function formatFiles(options?: {

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

/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'formatFiles' from @nrwl/devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'formatFiles' from @nx/devkit.
*/

@@ -14,0 +14,0 @@ function formatFiles(options = { skipFormat: false }, directory = '') {

import { Path } from '@angular-devkit/core';
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'visitNotIgnoredFiles' from @nrwl/devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'visitNotIgnoredFiles' from @nx/devkit.
*/
export declare function visitNotIgnoredFiles(visitor: (file: Path, host: Tree, context: SchematicContext) => void | Rule, dir?: Path): Rule;

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

/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'visitNotIgnoredFiles' from @nrwl/devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'visitNotIgnoredFiles' from @nx/devkit.
*/

@@ -11,0 +11,0 @@ function visitNotIgnoredFiles(visitor, dir = (0, core_1.normalize)('')) {

@@ -12,3 +12,3 @@ /**

@method decamelize
@deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
@deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
@param {String} str The string to decamelize.

@@ -30,3 +30,3 @@ @return {String} the decamelized string.

@method dasherize
@deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
@deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
@param {String} str The string to dasherize.

@@ -48,3 +48,3 @@ @return {String} the dasherized string.

@method camelize
@deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
@deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
@param {String} str The string to camelize.

@@ -65,3 +65,3 @@ @return {String} the camelized string.

@method classify
@deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
@deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
@param {String} str the string to classify

@@ -83,3 +83,3 @@ @return {String} the classified string

@method underscore
@deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
@deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
@param {String} str The string to underscore.

@@ -100,3 +100,3 @@ @return {String} the underscored string.

@method capitalize
@deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
@deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
@param {String} str The string to capitalize.

@@ -107,8 +107,8 @@ @return {String} The capitalized string.

/**
* @deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
* @deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
*/
export declare function group(name: string, group: string | undefined): string;
/**
* @deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
* @deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
*/
export declare function featurePath(group: boolean | undefined, flat: boolean | undefined, path: string, name: string): string;

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

@method decamelize
@deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
@deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
@param {String} str The string to decamelize.

@@ -48,3 +48,3 @@ @return {String} the decamelized string.

@method dasherize
@deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
@deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
@param {String} str The string to dasherize.

@@ -69,3 +69,3 @@ @return {String} the dasherized string.

@method camelize
@deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
@deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
@param {String} str The string to camelize.

@@ -93,3 +93,3 @@ @return {String} the camelized string.

@method classify
@deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
@deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
@param {String} str the string to classify

@@ -117,3 +117,3 @@ @return {String} the classified string

@method underscore
@deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
@deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
@param {String} str The string to underscore.

@@ -140,3 +140,3 @@ @return {String} the underscored string.

@method capitalize
@deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
@deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
@param {String} str The string to capitalize.

@@ -150,3 +150,3 @@ @return {String} The capitalized string.

/**
* @deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
* @deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
*/

@@ -158,3 +158,3 @@ function group(name, group) {

/**
* @deprecated This will be removed from `@nrwl/workspace` in version 17. Prefer `@nrwl/js` when importing.
* @deprecated This will be removed from `@nx/workspace` in version 17. Prefer `@nx/js` when importing.
*/

@@ -161,0 +161,0 @@ function featurePath(group, flat, path, name) {

@@ -8,7 +8,7 @@ import type { Tree } from '@angular-devkit/schematics';

/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. Use tree.read(filePath, 'utf-8') instead.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. Use tree.read(filePath, 'utf-8') instead.
*/
export declare function getFileContent(tree: Tree, path: string): string;
/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. Tests for Generators can use 'createTreeWithEmptyWorkspace()' from @nrwl/devkit/testing.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. Tests for Generators can use 'createTreeWithEmptyWorkspace()' from @nx/devkit/testing.
*/

@@ -29,3 +29,3 @@ export declare function createEmptyWorkspace(tree: Tree): Tree;

* Mock context which makes testing builders easier
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit.
*/

@@ -32,0 +32,0 @@ export declare class MockBuilderContext implements BuilderContext {

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

/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. Use tree.read(filePath, 'utf-8') instead.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. Use tree.read(filePath, 'utf-8') instead.
*/

@@ -19,3 +19,3 @@ function getFileContent(tree, path) {

/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. Tests for Generators can use 'createTreeWithEmptyWorkspace()' from @nrwl/devkit/testing.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. Tests for Generators can use 'createTreeWithEmptyWorkspace()' from @nx/devkit/testing.
*/

@@ -92,3 +92,3 @@ function createEmptyWorkspace(tree) {

* Mock context which makes testing builders easier
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit.
*/

@@ -95,0 +95,0 @@ class MockBuilderContext {

@@ -5,11 +5,11 @@ import type { Rule, Tree } from '@angular-devkit/schematics';

/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'getProjects' with Nx Devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'getProjects' with Nx Devkit.
*/
export declare function getWorkspace(tree: Tree, path?: string): Promise<workspaces.WorkspaceDefinition>;
/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'updateProjectConfiguration' with Nx Devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'updateProjectConfiguration' with Nx Devkit.
*/
export declare function updateWorkspace(updater: (workspace: workspaces.WorkspaceDefinition) => void | PromiseLike<void>): Rule;
/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'updateProjectConfiguration' with Nx Devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'updateProjectConfiguration' with Nx Devkit.
*/

@@ -19,4 +19,4 @@ export declare function updateWorkspace(workspace: workspaces.WorkspaceDefinition): Rule;

* Updates builder options for options and configurations for given builder names
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'forEachExecutorOptions' with Nx Devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'forEachExecutorOptions' with Nx Devkit.
*/
export declare function updateBuilderConfig(updater: (currentValue: Record<string, string | number | boolean | JsonArray | JsonObject>, target?: TargetDefinition, project?: ProjectDefinition) => Record<string, string | number | boolean | JsonArray | JsonObject>, ...builderNames: string[]): Rule;

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

/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'getProjects' with Nx Devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'getProjects' with Nx Devkit.
*/

@@ -51,3 +51,3 @@ function getWorkspace(tree, path = '/') {

/**
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'updateProjectConfiguration' with Nx Devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'updateProjectConfiguration' with Nx Devkit.
*/

@@ -73,3 +73,3 @@ function updateWorkspace(updaterOrWorkspace) {

* Updates builder options for options and configurations for given builder names
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nrwl/devkit. This function can be replaced with 'forEachExecutorOptions' with Nx Devkit.
* @deprecated This will be removed in v17. Prefer writing Nx Generators with @nx/devkit. This function can be replaced with 'forEachExecutorOptions' with Nx Devkit.
*/

@@ -76,0 +76,0 @@ function updateBuilderConfig(updater, ...builderNames) {

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

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

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