Skip to content

Commit

Permalink
feat(core): deprecate @nrwl/tao (#16550)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Apr 25, 2023
1 parent 5b0527b commit b42d3f7
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/tao/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
## @nrwl/tao has been deprecated!

@nrwl/tao has been deprecated in favor of [nx](https://www.npmjs.com/package/nx). Please use that instead.

{{links}}
@nrwl/tao will no longer be published in Nx v17.

<hr>
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>

# Nx: Smart, Fast and Extensible Build System

Nx is a next generation build system with first class monorepo support and powerful integrations.

{{content}}
4 changes: 4 additions & 0 deletions packages/tao/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ if (process.argv[2] === 'migrate') {
process.argv[2] = '_migrate';
}

console.warn(
`@nrwl/tao has been deprecated and will not be published in Nx 17. Please update your global install of nx: https://nx.dev/more-concepts/global-nx`
);

require('nx/bin/nx');
4 changes: 4 additions & 0 deletions packages/tao/src/commands/ngcli-adapter.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
console.warn(
`@nrwl/tao has been deprecated and will not be published in Nx 17. Change to importing from '@nx/devkit/ngcli-adapter'`
);

export * from 'nx/src/adapter/ngcli-adapter';
4 changes: 4 additions & 0 deletions packages/tao/src/shared/logger.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
console.warn(
`@nrwl/tao has been deprecated and will not be published in Nx 17. Change to importing from '@nx/devkit'`
);

export * from 'nx/src/utils/logger';
4 changes: 4 additions & 0 deletions packages/tao/src/shared/nx.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
console.warn(
`@nrwl/tao has been deprecated and will not be published in Nx 17. Change to importing from '@nx/devkit'`
);

export * from 'nx/src/config/nx-json';
4 changes: 4 additions & 0 deletions packages/tao/src/shared/package-manager.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
console.warn(
`@nrwl/tao has been deprecated and will not be published in Nx 17. Change to importing from '@nx/devkit'`
);

export * from 'nx/src/utils/package-manager';
4 changes: 4 additions & 0 deletions packages/tao/src/shared/project-graph.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
console.warn(
`@nrwl/tao has been deprecated and will not be published in Nx 17. Change to importing from '@nx/devkit'`
);

export * from 'nx/src/config/project-graph';
4 changes: 4 additions & 0 deletions packages/tao/src/shared/tree.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
console.warn(
`@nrwl/tao has been deprecated and will not be published in Nx 17. Change to importing from '@nx/devkit'`
);

export * from 'nx/src/generators/tree';
4 changes: 4 additions & 0 deletions packages/tao/src/shared/workspace.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
console.warn(
`@nrwl/tao has been deprecated and will not be published in Nx 17. Change to importing from '@nx/devkit'`
);

export * from 'nx/src/config/workspaces';
4 changes: 4 additions & 0 deletions packages/tao/src/utils/app-root.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
console.warn(
`@nrwl/tao has been deprecated and will not be published in Nx 17. Change to importing from '@nx/devkit'`
);

export * from 'nx/src/utils/workspace-root';

0 comments on commit b42d3f7

Please sign in to comment.