Skip to content

Commit

Permalink
fix(misc): change ensureDependencies to ensurePackage (#13735)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Dec 9, 2022
1 parent 75de165 commit 440112d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/generated/devkit/index.md
Expand Up @@ -1175,7 +1175,7 @@ Ensure that dependencies and devDependencies from package.json are installed at
For example:

```typescript
ensureDependencies(tree, {}, { '@nrwl/jest': nxVersion });
ensurePackage(tree, {}, { '@nrwl/jest': nxVersion });
```

This will check that @nrwl/jest@<nxVersion> exists in devDependencies.
Expand Down
2 changes: 1 addition & 1 deletion docs/generated/packages/devkit.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/devkit/src/utils/package-json.spec.ts
Expand Up @@ -311,7 +311,7 @@ describe('addDependenciesToPackageJson', () => {
});
});

describe('ensureDependencies', () => {
describe('ensurePackage', () => {
let tree: Tree;

beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/devkit/src/utils/package-json.ts
Expand Up @@ -289,7 +289,7 @@ function requiresRemovingOfPackages(
*
* For example:
* ```typescript
* ensureDependencies(tree, {}, { '@nrwl/jest': nxVersion })
* ensurePackage(tree, {}, { '@nrwl/jest': nxVersion })
* ```
* This will check that @nrwl/jest@<nxVersion> exists in devDependencies.
* If it exists then function returns, otherwise it will install the package before continuing.
Expand Down

1 comment on commit 440112d

@vercel
Copy link

@vercel vercel bot commented on 440112d Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-five.vercel.app
nx-dev-nrwl.vercel.app

Please sign in to comment.