Compare commits
2 Commits
8d90fa1d53
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| f8d78d05fc | |||
| 6e2288f157 |
@@ -6,7 +6,7 @@ Node package compare and change runner.
|
|||||||
[](https://www.npmjs.com/package/pkgcomp)
|
[](https://www.npmjs.com/package/pkgcomp)
|
||||||
[](https://nodejs.org/api/documentation.html#documentation_stability_index)
|
[](https://nodejs.org/api/documentation.html#documentation_stability_index)
|
||||||
|
|
||||||
This tool will execute a command of the dependencies or lock files of your module have changed since the last time it was run. Any of the following
|
This tool will execute a command if the dependencies or lock files of your module have changed since the last time it was run. Any of the following will be considered a change:
|
||||||
|
|
||||||
- If the `dependencies` or `devDependencies` in `package.json` change
|
- If the `dependencies` or `devDependencies` in `package.json` change
|
||||||
- If the `dependencies` or `devDependencies` in any of your workspaces change
|
- If the `dependencies` or `devDependencies` in any of your workspaces change
|
||||||
|
|||||||
@@ -36,7 +36,11 @@ exports.getPackageInfo = () => {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
if (!name) throw new Error('Unable to read project name from package.json');
|
if (!name) throw new Error('Unable to read project name from package.json');
|
||||||
return { name, workspaces };
|
|
||||||
|
// handle nohoist config: https://yarnpkg.com/blog/2018/02/15/nohoist/
|
||||||
|
const realWorkspaces = workspaces.packages ? workspaces.packages : workspaces;
|
||||||
|
|
||||||
|
return { name, workspaces: realWorkspaces };
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.getPackageWorkspaces = () => {
|
exports.getPackageWorkspaces = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user