Commit Graph

101 Commits

Author SHA1 Message Date
Zoltan Kochan
917b95c01f fix: upgrade typescript to v4.4.4 2021-10-16 23:33:34 +03:00
Zoltan Kochan
6208e2a71e fix: link own binaries of pkg before running its lifecycle scripts (#3662) 2021-08-12 04:20:16 +03:00
Zoltan Kochan
691f647137 feat: save the metadata separately from the CAFS (#3578)
ref #2574
2021-07-04 19:35:53 +03:00
Zoltan Kochan
10fac3b9e0 test(headless): update lockfiles 2021-04-06 02:11:00 +03:00
Xingcan LAN
735d2ac792 feat: new command: pnpm fetch (#3294)
Co-authored-by: Zoltan Kochan <zkochan@users.noreply.github.com>

close #3207
2021-04-01 21:18:02 +03:00
Zoltan Kochan
f2c8e95e30 fix(deps): update dependency eslint-config-standard-with-typescript to v20
close #3236
2021-03-13 03:33:30 +02:00
Zoltan Kochan
3f959679f0 test(headless): fix on Windows 2021-03-03 00:40:39 +02:00
Zoltan Kochan
048c948719 fix: rename .pnp.js to .pnp.cjs (#3148)
ref #2902
2021-02-17 00:37:17 +02:00
Zoltan Kochan
d6d091f249 style: use es2015 imports (#3143) 2021-02-15 05:06:10 +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
1c851f2a6b fix(headless): skip optional dep that cannot be installed (#3091)
close #3090
2021-01-22 11:30:25 +02:00
Zoltan Kochan
f40bc59277 feat: enable-modules-dir=false
PR #3051
2021-01-04 23:37:37 +02:00
Zoltan Kochan
8be571f4b0 test(headless): fix on Windows 2020-12-17 03:41:32 +02:00
Zoltan Kochan
7b9a7f63c5 refactor: test utils 2020-12-11 02:06:44 +02:00
Zoltan Kochan
6c0c4b03b0 test: migrating to Jest
* test(headless): migrate to Jest

ref #2858
PR #3014

* test(graceful-git): migrate to Jest

* test: migration to Jest
2020-12-09 12:20:35 +02:00
Zoltan Kochan
fba7155123 fix: types 2020-11-22 23:15:29 +02:00
Zoltan Kochan
f591fdeeb9 feat: support Plug'n'Play
ref #2902
PR #2908
2020-10-11 13:12:02 +03:00
Zoltan Kochan
fb92e9f887 fix: bins creation of direct deps 2020-10-03 20:30:23 +03:00
Zoltan Kochan
74914c1784 feat: no symlink
This is a continuation of #1874.
Setting `symlink=false` in an `.npmrc` file will allow experimenting
with Plug'n'Play, which for now is only possible by manually
generating the `.pnp.js` file using the `@pnpm/lockfile-to-pnp` package.

This is probably a temporary setting. In the future, there will be
something like `enable-pnp` instead.

PR #2900
2020-09-28 21:46:02 +03:00
Zoltan Kochan
cc4761f905 test(headless): update lockfiles of fixtures 2020-09-04 15:25:48 +03: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
Zoltan Kochan
a1cdae3dc7 refactor(npm-resolver): remove options.metaCache 2020-08-17 01:48:12 +03:00
Zoltan Kochan
400f419765 fix: hoisting in a workspace with no root package
close #2735
PR #2758
2020-08-09 03:22:28 +03:00
Zoltan Kochan
71aeb9a382 refactor: API of resolvers and fetchers
Instead of creating a separate fetch function for the resolvers
and fetchers, use a single one.

Also, use a single getCredentials function.

close #2652
PR #2655
2020-06-29 17:13:02 +03:00
Zoltan Kochan
71a8c8ce38 feat: public-hoist-pattern
close #2628
PR #2631
2020-06-16 00:50:09 +03:00
Zoltan Kochan
16e5044bf8 chore(deps): remove fs-extra 2020-06-06 20:03:12 +03:00
Zoltan Kochan
187615f871 fix: installing git-hosted dependencies
Fixing a regression caused by breaking changes in the fetch function
API.
`@pnpm/git-fetcher` was not correctly updated.

As a result, git-hosted dependencies were not being installed.

PR #2580
2020-05-28 12:21:32 +03:00
Zoltan Kochan
802d145fcd feat!: remove independent-leaves=true support
PR #2571
2020-05-22 11:09:05 +03:00
Zoltan Kochan
a5febb9134 feat: add support for side-effects cache in the new content-addressable store
The new content-addressable store should support
side-effects cache.

ref #2470
PR #2562
2020-05-18 10:37:31 +03:00
Zoltan Kochan
45fdcfde2e feat!: remove locking of node_modules
close #594
PR #2553
2020-05-14 03:10:03 +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
e3990787a1 refactor: NodeModules options renamed to Modules 2020-05-09 02:33:54 +00: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
b6a82072ea feat!: using a content-addressable filesystem
ref #2470

BREAKING CHANGE:

New global store structure
2020-04-26 15:40:03 +03:00
Zoltan Kochan
f70e817fef feat: custom modules directory
close #2471
PR #2474
2020-04-12 23:40:43 +03:00
Zoltan Kochan
bb5d41f337 style: add missing trailing commas and fix the linting rule 2020-01-01 19:18:25 +02:00
Zoltan Kochan
ed65c06b5a style: fix 2020-01-01 19:13:17 +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
4fde7a858f test: use custom ports for the registry mocks
ref #2119
PR #2123
2019-10-28 11:29:36 +02:00
Zoltan Kochan
4fc917ebbb feat: rename lockfile-directory to lockfile-dir
ref #2088
PR #2120
2019-10-27 16:18:00 +02:00
Zoltan Kochan
76c737d70b feat: rename store config to store-dir
BREAKING CHANGE:
- @pnpm/config
- @pnpm/default-reporter
- @pnpm/default-resolver
- @pnpm/headless
- @pnpm/npm-resolver
- @pnpm/package-requester
- @pnpm/package-store
- supi

PR #2118
ref #2088
2019-10-27 13:18:24 +02:00
Zoltan Kochan
05c22a0413 refactor: packageJson=>manifest 2019-10-06 01:03:17 +03:00
Zoltan Kochan
fc0fe15938 refactor: rawNpmConfig=>rawConfig 2019-10-04 01:29:26 +03:00
Zoltan Kochan
abced735de ci: test on Node.js 12 2019-09-15 02:27:43 +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