Skip to content

Commit

Permalink
refactor(@angular-devkit/schematics): deprecate NodePackageLinkTask
Browse files Browse the repository at this point in the history
DEPRECATED: `NodePackageLinkTask` in `@angular-devkit/schematics`. A custom task should be created instead.
  • Loading branch information
alan-agius4 committed Mar 14, 2024
1 parent cbf51e7 commit 7975845
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Expand Up @@ -27,7 +27,7 @@ export class NodePackageInstallTask implements TaskConfigurationGenerator<NodePa
workingDirectory?: string;
}

// @public (undocumented)
// @public @deprecated (undocumented)
export class NodePackageLinkTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
constructor(packageName?: string | undefined, workingDirectory?: string | undefined);
// (undocumented)
Expand Down
Expand Up @@ -9,10 +9,16 @@
import { TaskConfiguration, TaskConfigurationGenerator } from '../../src';
import { NodePackageName, NodePackageTaskOptions } from './options';

/**
* @deprecated since version 18. Create a custom task if required.
*/
export class NodePackageLinkTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
quiet = true;

constructor(public packageName?: string, public workingDirectory?: string) {}
constructor(
public packageName?: string,
public workingDirectory?: string,
) {}

toConfiguration(): TaskConfiguration<NodePackageTaskOptions> {
return {
Expand Down

0 comments on commit 7975845

Please sign in to comment.