Commit Graph

15 Commits

Author SHA1 Message Date
Zoltan Kochan
db17f6f7b6 refactor: move Project and ProjectsGraph to @pnpm/types 2020-06-21 14:54:49 +03:00
Zoltan Kochan
cc1b43886f fix(deps): update p-limit to v3.0.1 2020-06-06 19:36:42 +03:00
Zoltan Kochan
8094b2a628 fix(run): infinite recursion
A recursive run should not rerun the same package script which started the lifecycle event.

For instance, let's say one of the workspace projects has the following script:

```json
"scripts": {
  "build": "pnpm run -r build"
}
```

Running `pnpm run build` in this project should not start an infinite recursion.
`pnpm run -r build` in this case should run `build` in all the workspace projects except the one that started the build.

Related issue: #2528
2020-05-30 22:02:27 +03:00
Zoltan Kochan
906465529a style: reformat multiline unions 2020-05-14 14:30:09 +03:00
Zoltan Kochan
c75a921e36 style: no trailing commas in functions 2020-05-12 19:00:16 +03:00
Zoltan Kochan
e3990787a1 refactor: NodeModules options renamed to Modules 2020-05-09 02:33:54 +00:00
Zoltan Kochan
52c030fa57 refactor: types 2020-05-08 02:09:40 +00:00
Jonathan Morley
7300eba86e feat: have if-present apply to recursive runs
PR #2520
2020-05-01 23:39:41 +03:00
Zoltan Kochan
0462fbc501 refactor: remove realNodeModulesDir from utils 2020-04-03 02:29:14 +03:00
Zoltan Kochan
40e153e107 fix: pnpm run --filter <project>
`pnpm run --filter <project>` should list available scripts of the project
`pnpm run --filter <projects>` should fail

close #2357
PR #2422
2020-03-15 13:48:57 +02:00
Zoltan Kochan
906ede36c6 fix: the -r option is not supported by all cmds
ref #2396
2020-03-15 02:28:20 +02:00
Zoltan Kochan
715610d2c8 refactor: command plugins API 2020-03-09 00:19:08 +02:00
Zoltan Kochan
bb5d41f337 style: add missing trailing commas and fix the linting rule 2020-01-01 19:18:25 +02:00
Zoltan Kochan
f8b927391e refactor: rename importers & workspace pkgs to projects
WsPkg=>Project
WorkspacePackage=>Project
mporterManifest=>ProjectManifest
importers=>projects
importerDir=>projectDir
LockfileImporter=>ProjectSnapshot

PR #2242
2020-01-01 18:57:14 +02:00
Zoltan Kochan
9c9a3849d9 refactor: destroying the plugin-commands-recursive package
PR #2237
2019-12-29 18:45:20 +02:00