Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jalal246 committed Mar 5, 2020
1 parent 3a6a2b6 commit 86c6234
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Package Sorter

> A function sorts a group of packages that depends on each other.
> A function sorts a group of packages that depends on each other :nerd_face:
When you have projects depend on each other. You have to build core first, then
the project depends on it and, so on. You probably want this step to be automated
so you can use: `package-sorter(unsortedPackages[], coreDependency)`.
the project depends on it, and so on. You probably want this step to be automated
so you can use `package-sorter(unsortedPackages[], coreDependency)`.

```bash
npm install package-sorter
Expand All @@ -14,7 +14,6 @@ npm install package-sorter

```js
/**
*
* @param {Array} [packages=[]] - packages in workspace.
* @param {string} coreDependency - core package that other packages depends on it.
*
Expand Down Expand Up @@ -91,13 +90,14 @@ const pkg2 = {

const packages = [pkg2, pkg1, pkg0];

// let's the function get core dependency.
const { sorted } = sortPackages(packages);

// sorted: [pkg2, pkg0, pkg1]
// unSorted: []
```

### Example (3) - Some unsorted
### Example (3) - Some Unsorted

```js
import packageSorter from "package-sorter";
Expand Down

0 comments on commit 86c6234

Please sign in to comment.