Commit Graph

30 Commits

Author SHA1 Message Date
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
c512170db2 refactor(supi): move parseWantedDependency to @pnpm/utils 2019-12-01 20:30:56 +02:00
Zoltan Kochan
21aaf191e0 feat(update): version ranges are updated in package.json
close #2130
close #1657
PR #2133

BREAKING CHANGE:
- @pnpm/utils
2019-11-07 22:51:18 +02:00
Zoltan Kochan
dc1871dac8 refactor: use new TypeScript 3.7 syntax 2019-11-02 11:59:50 +02:00
Zoltan Kochan
790ebc885c refactor: remove getSaveType from @pnpm/utils 2019-10-06 14:34:32 +03:00
Zoltan Kochan
05c22a0413 refactor: packageJson=>manifest 2019-10-06 01:03:17 +03:00
Zoltan Kochan
b396b02db4 fix: peers resolution in a monorepo
This issue was happening when two workspace packages had the same
dependency and that dependency depended on a peer dependency.
This dependency was resolved with the same peer dependency
in every workspace package even if the peer was different in
different workspace packages.

PR #1988
2019-09-01 20:47:52 +03:00
Zoltan Kochan
b6e316c2d0 fix: dependencies should always be explicitly grouped with peers
PR #1854
close #1838
2019-05-28 22:41:07 +03:00
Zoltan Kochan
4612a42a5b refactor: don't read/write package.json inside supi
PR #1776

BREAKING CHANGE:

`supi`, `@pnpm/headless`, `@pnpm/resolve-dependencies`, `@pnpm/lifecycle`
2019-04-20 03:38:44 -07:00
Zoltan Kochan
c8d98856fa refactor: use includes() instead of indexOf() when possible 2019-04-07 13:08:26 +03:00
Zoltan Kochan
714ca05d84 fix: "pnpm store add" should read the registries of scoped pkgs
close #1737
2019-03-25 00:58:56 +02:00
Zoltan Kochan
534d18d821 feat(shrinkwrap): don't save registry URL in shrinkwrap v4
ref #1353
2018-10-20 20:12:28 +03:00
Zoltan Kochan
3911cf0823 style: use standard style with trailing comma 2018-10-07 16:39:49 +03:00
Zoltan Kochan
00c09d4ea3 refactor: create @pnpm/resolve-dependencies
Also, better naming of variables in @pnpm/resolve-dependencies.

This is refactoring of supi to make it easier to do the performance improvements for #1366.

PR  #1399
2018-10-01 10:04:23 +03:00
Zoltan Kochan
2a72068961 refactor: create @pnpm/modules-cleaner 2018-09-30 14:06:44 +03:00
Zoltan Kochan
18dc98646c fix: always use real location of node_modules
PR #1392
2018-09-28 21:30:33 +03:00
Zoltan Kochan
0e431ce722 feat: sharing one shrinkwrap file between several projects
PR #1373
ref #1366
2018-09-23 23:11:12 +03:00
Zoltan Kochan
fc84afecef refactor: use DEPENDENCIES_FIELDS from @pnpm/types
@pnpm/utils

BREAKING CHANGE:

removed dependenciesTypes
removed DependenciesType
2018-09-21 21:34:23 +03:00
Zoltan Kochan
3ccf495895 fix: don't fail if cannot delete a package from node_modules 2018-09-20 23:42:15 +03:00
Zoltan Kochan
2dbd69f761 refactor: move loggers from @pnpm/utils to @pnpm/core-loggers
supi:

BREAKING CHANGE:

@pnpm/utils exports no loggers anymore
2018-09-11 23:19:24 +03:00
Zoltan Kochan
d5464567f7 feat(recursive): running scripts is a separate installation step
Running scripts (lifecycle events) is performed only once all
install, unlink, update (or any other actions) are completed in
every project of the workspace.

close #1089
pr #1367
2018-09-11 21:05:14 +03:00
Zoltan Kochan
b400bab9a1 feat: add removal and linking logs
ref #1305
2018-08-25 03:23:42 +03:00
Zoltan Kochan
7ef9364085 fix(link): report correct dependency types when linking
@pnpm/utils:

BREAKING CHANGE:

the order of dependency types changed. optionalDependencies
is first
2018-08-20 21:18:33 +03:00
Zoltan Kochan
d966515c6c feat: print warnings when running recursive commands
PR #1286
2018-07-15 16:02:54 +03:00
Zoltan Kochan
5abc21ae94 feat: warn/info logs always have prefix
PR #1267
2018-07-15 02:40:18 +03:00
Zoltan Kochan
9119a1f707 feat: linked packages look cleaner in install summaries
BREAKING CHANGE:

Linked packages are logged via the added log object.

ref #818
ref #615
2018-07-08 02:56:03 +03:00
Zoltan Kochan
439cfa4ca0 feat: use a different reporting style for packages not in the CWD
* feat: log prefix in some log messages

* fix: don't normalize root and rename it to prefix

* feat: report package diff only for current package

* feat(reporting): report install stats that from non-current folder

* style: fix linting errors

* refactor(supi): rename root to prefix

* test(reporter): stats from other packages printed along install summarry

* feat(reporting): better reporting for the linking command

* fix: remove most-last dependency from reporter

* test: fix reporter test

PR #1263
2018-07-07 19:12:49 +03:00
Zoltan Kochan
1b9665219f refactor: move readPackageJson out of @pnpm/utils
BREAKING CHANGE:

readPackageJson/readPackageJsonFromDir removed from @pnpm/utils
2018-06-11 12:39:42 +03:00
Zoltan Kochan
644e5914d3 fix: log progress when running with store server
ref #1211
2018-06-10 04:02:46 +03:00
Zoltan Kochan
5e816d0c3a feat: create @pnpm/utils 2018-05-13 00:55:25 +03:00