Commit Graph

17 Commits

Author SHA1 Message Date
Zoltan Kochan
d6d091f249 style: use es2015 imports (#3143) 2021-02-15 05:06:10 +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
Jason Staten
5a8fe0a1b4 test: convert four packages to use Jest
* chore: manifest-utils to jest

* chore: matcher to jest

* chore: modules-yaml to jest

* chore: npm-registry-agent to jest

Replaced `proxyquire` with jest mocking

Fixed `OPTS.strictSSL` fixture to be a boolean as that's what the
agent's option type expects.

`npm-registry-agent` self-links as a devDependency for importing

PR #2913
ref #2858
2020-10-07 11:34:07 +03:00
Zoltan Kochan
1c8a02e996 style: use eslint instead of tslint
PR #2796
close #2300
2020-08-24 02:01:25 +03:00
Zoltan Kochan
71a8c8ce38 feat: public-hoist-pattern
close #2628
PR #2631
2020-06-16 00:50:09 +03:00
Zoltan Kochan
802d145fcd feat!: remove independent-leaves=true support
PR #2571
2020-05-22 11:09:05 +03:00
Zoltan Kochan
3f73eaf0c7 refactor!: rename store to storeDir in .modules.yaml 2020-05-10 00:11:09 +03:00
Zoltan Kochan
66cdabac65 fix: store relative path to virtual store
On systems that use symliks (non-Windows), store the relative
path to the virtual store directory in
`node_modules/.modules.yaml`.

close #2335
2020-03-15 22:05:05 +02:00
Zoltan Kochan
35a702c6e0 feat: configurable virtual store directory
New config setting: virtual-store-dir

Breaking changes in: @pnpm/lockfile-file, @pnpm/constants

close  #2078
PR #2091
2019-10-19 03:18:41 +03:00
Zoltan Kochan
202f0eee8b feat: only local configs or flags can cause a fatal error
As of pnpm v3, pnpm fails if the configs that were used when creating node_modules differ from the present ones. For instance, if independent-leaves is set to false globally but installation was done using pnpm install --independent-leaves. Running pnpm add foo will fail. Only pnpm add foo --independent-leaves will work

These changes are making this less strict. If node_modues was created using some configs, installation will only fail if the present configs are set locally (or via CLI flags) and they have incompatible values.

So if pnpm install --independent-leaves was used, then pnpm add foo will work. But pnpm add foo --no-independent-leaves will fail.

PR #2034
2019-09-28 22:14:52 +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
89f5178369 test: add type references to tests 2019-05-19 20:05:11 +03:00
Zoltan Kochan
92e7383d00 style: sort keys 2018-11-15 03:04:37 +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
5e9f8de93e feat: add importers field to .modules.yaml
This changes the way node_modules information of importers is
stored. The initial implementation in #1373 used a separate
`.modules.yaml` in every importer's node_modules directory.
Keeping only one `.modules.yaml` makes it easier to get all the
necessary info during recursive installation.

ref #1366
2018-09-30 02:44:27 +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
0081d6944d refactor: move @pnpm/modules-yaml to monorepo 2018-09-17 01:55:04 +03:00