Commit Graph

54 Commits

Author SHA1 Message Date
Zoltan Kochan
d6d091f249 style: use es2015 imports (#3143) 2021-02-15 05:06:10 +02:00
Zoltan Kochan
581f9b20a5 fix: update deps 2021-02-12 11:51:34 +02:00
Zoltan Kochan
3503951d39 perf: don't use graceful-fs and mz/fs (#3129) 2021-02-09 13:44:07 +02:00
Zoltan Kochan
78470a32d3 perf: don't prune the modules directory on each install (#3124)
ref #3115
2021-02-08 02:37:31 +02:00
Zoltan Kochan
86e0c28f2d refactor(modules-cleaner): remove not needed nesting 2021-02-06 02:38:49 +02:00
Zoltan Kochan
e27dcf0dcc refactor(dependency-path): add depPathToFilename() 2020-12-30 12:12:08 +02:00
Zoltan Kochan
1309703932 ci: test on Windows
close #3023
2020-12-18 23:32:37 +02:00
Zoltan Kochan
88e1eaa908 style: use no delimiters in type declarations 2020-08-26 01:42:36 +03:00
Zoltan Kochan
5322cf9b39 style: use nullish coalescing 2020-08-26 01:15:47 +03:00
Zoltan Kochan
1c8a02e996 style: use eslint instead of tslint
PR #2796
close #2300
2020-08-24 02:01:25 +03:00
Yao Ding
57d08f3033 fix: remove global bin when unlink
close #1584
PR #2425
2020-06-21 00:41:12 +03:00
Zoltan Kochan
71a8c8ce38 feat: public-hoist-pattern
close #2628
PR #2631
2020-06-16 00:50:09 +03:00
Zoltan Kochan
142f8caf7b refactor!: relDepPath=>depPath 2020-05-22 23:40:07 +03:00
Zoltan Kochan
c25cccdad7 fix: recreation of lockfile 2020-05-20 20:27:41 +03:00
Zoltan Kochan
2485eaf60b refactor(filter-lockfile): remove not needed option
registries option is not needed by the lockfile filterer.
2020-05-18 23:48:41 +03:00
Zoltan Kochan
c75a921e36 style: no trailing commas in functions 2020-05-12 19:00:16 +03:00
Zoltan Kochan
9fbb74ecb5 feat!: reduce nesting in the virtual store
PR #2546
2020-05-11 21:31:21 +03:00
Zoltan Kochan
7179cc560b perf(modules-cleaner): don't use fs-vacuum 2020-05-10 16:34:33 +03:00
Zoltan Kochan
da091c7114 feat!: remove store state
PR #2542
ref #594
2020-05-10 12:02:46 +03:00
Zoltan Kochan
b5f66c0f2b perf: less dirs in the virtual store directory
Reduce the number of directories in the virtual store directory.
Don't create a subdirectory for the package version. Append the
package version to the package name directory.

close #2521
PR #2531
2020-05-06 02:15:55 +03:00
Zoltan Kochan
eeb4f08f82 refactor: move safeReadPackage() out of utils lib 2020-04-02 02:10:29 +03:00
renovate[bot]
7fc8375a9d chore(deps): update dependency tslint to v6
PR #2416

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zoltan Kochan <z@kochan.io>
2020-03-14 19:07:58 +02:00
Zoltan Kochan
f5e21fa92b fix: remove deps of removed workspace projects
PR #2404
2020-03-07 16:05:52 +02:00
Zoltan Kochan
35feb32df6 fix: remove all .cmd/.ps1 binstubs on Windows
PR #2327
close #2290
2020-02-04 22:57:22 +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
8fc6fc4ad7 refactor: rename prefix options to dir options
BREAKING CHANGE:

- @pnpm/build-modules
- @pnpm/filter-lockfile
- @pnpm/headless
- @pnpm/lifecycle
- @pnpm/modules-cleaner
- @pnpm/package-is-installable
- @pnpm/read-importers-context
- @pnpm/resolve-dependencies
- supi
2019-11-03 17:08:57 +02:00
Zoltan Kochan
dc1871dac8 refactor: use new TypeScript 3.7 syntax 2019-11-02 11:59:50 +02:00
Zoltan Kochan
d67575a0f2 refactor(modules-cleaner): lockfileDirectories=>lockfileDir
ref #2088
2019-10-23 23:01:57 +03:00
Zoltan Kochan
5b97c5f368 fix: always save the store metadata. Even on crash
PR #2106
close #2065
2019-10-23 00:56:50 +03:00
Zoltan Kochan
6eeaa5a43a feat: --shamefully-hoist
This returns shamefully-flatten to pnpm (as known in v3)
but it is now called shamefully-hoist

PR #2006
2019-09-12 00:45:58 +03:00
Zoltan Kochan
febfb746fe feat: bump node_modules layout version to 3
PR #2003

BREAKING CHANGE: new node_modules layout
2019-09-09 14:21:45 +03:00
Zoltan Kochan
3a9fdd856b feat: --hoist-pattern <pattern>
New config added that allows hoisting packages by pattern.
This substitutes the shamefully-flatten config that hoist all
dependencies and makes them available for application code.
The new config gives access to the hoisted packages only  to
dependencies inside node_modules.

close #1998
close #1938
PR #1997
2019-09-08 20:54:19 +03:00
Zoltan Kochan
47f718d70f fix(deps): use @zkochan/rimraf instead of rimraf-then 2019-08-18 02:40:20 +03:00
Zoltan Kochan
856653ea2f fix(deps): update @types/ramda 2019-08-16 00:13:11 +03:00
Zoltan Kochan
48e4a7af5a fix: regression in 3.5.5
regression caused by PR #1908
2019-07-12 07:29:22 +03:00
Zoltan Kochan
9360bc0567 fix: prunning by partial installation in a workspace
When running install on a subset of workspace packages, only
those dependencies may be prunned which were only used by the
selected subset of workspace packages.

BREAKING CHANGE: in @pnpm/modules-cleaner

PR #1908
2019-07-12 02:01:16 +02:00
Zoltan Kochan
7e48fa6181 chore(release): 3.2.0-0 2019-04-21 11:41:58 +03:00
Zoltan Kochan
5248dacd84 refactor(deps): remove util.promisify from dependencies 2019-04-06 01:50:36 +03:00
Zoltan Kochan
5489e8c4e1 refactor: rename shrinkwrap variables 2019-03-07 02:47:59 +02:00
Zoltan Kochan
ba2f3e707d feat: rename shrinkwrapDirectory to lockfileDirectory 2019-03-06 22:47:19 +02:00
Zoltan Kochan
13616f1217 refactor: rename packages from shrinkwrap to lockfile 2019-03-06 17:18:05 +02:00
Zoltan Kochan
d0818d8b0a feat: shrinkwrap.yaml is registry-agnostic
PR #1613

* feat: shrinkwrap.yaml is registry-agnostic

BREAKING CHANGE:

The shrinkwrap.yaml file contains no info about the registry URL

close #1353

* feat(shrinkwrap): don't set id for packages from npm registries

* feat: bump shrinkwrap file version to 5

BREAKING CHANGE: shrinkwrap file version is 5

* fix: don't use ! in dependency paths inside node_modules

close #1601

* fix: installing package from scope with non-scoped deps

* feat(shrinkwrap): use underscore in dep path with peers
2019-01-22 20:26:06 +02:00
Zoltan Kochan
4198da2074 refactor: deprecate pnpm-shrinkwrap 2018-12-06 23:19:30 +02:00
Zoltan Kochan
5027609170 fix: mutateModules() can remove undeclared modules
@pnpm/modules-cleaner:

BREAKING CHANGE:

removePackages is passed with importers
2018-12-03 02:13:47 +02:00
Zoltan Kochan
066910b6dc fix(shared-workspace-shrinkwrap): recursive removal
* feat(supi): merge installPkgs() with install()

* fix(shared-workspace-shrinkwrap): recursive removal

ref #1525

* refactor: recursive operations with shared shrinkwrap

* refactor(supi): revert mixing install() with uninstall()

* refactor: create mutateModules()

* fix: uninstalling a direct peer from a shared shrinkwrap

* refactor: rename mutations

* refactor(resolve-dependencies): opts.updateDepth

BREAKING CHANGE:

opts.depth and opts.update params deprecated
opts.updateDepth added

* refactor: pass pinnedVersions to mutateModules()

* refactor: rename properties in DependenciesMutation

* refactor(supi): remove unlink() and unlinkPkgs()

PR #1528
2018-12-03 01:18:54 +02:00
Zoltan Kochan
59c775e4a2 fix(reporting): when dep does not exist, don't report removal 2018-11-20 00:52:17 +02:00
Zoltan Kochan
56a9fb897e fix: external links shouldn't be added to shrinkwrap.yaml
Links of packages that are not in package.json are not added
to shrinkwrap.yaml.

PR #1495
2018-11-18 19:45:15 +02:00
Zoltan Kochan
92e7383d00 style: sort keys 2018-11-15 03:04:37 +02:00
Zoltan Kochan
246b0fd440 refactor: create @pnpm/store-controller-types and @pnpm/package-store 2018-11-11 02:01:54 +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