Commit Graph

92 Commits

Author SHA1 Message Date
Zoltan Kochan
5c8e272a1f test(installation): fix 2022-08-24 16:49:30 +03:00
Dominic Elm
2aa22e4b17 fix: set NODE_PATH when is turned on (#5251)
Co-authored-by: Zoltan Kochan <z@kochan.io>
2022-08-24 01:44:57 +03:00
Zoltan Kochan
cccaa0208f test: all test packages should be from the @pnpm.e2e scope (#5211) 2022-08-19 05:05:34 +03:00
Zoltan Kochan
d64bc1a050 test: update registry-mock 2022-08-16 01:37:58 +03:00
Zoltan Kochan
cac34ad690 feat: verify-store-integrity (#5112)
* feat: verify-store-integrity

* docs: update changesets
2022-07-29 03:37:16 +03:00
javier-garcia-meteologica
f5621a42c2 feat: use workspace spec alias by default in pnpm add (#4947) 2022-07-02 14:12:08 +03:00
Zoltan Kochan
f2592de192 test: update Jest (#4644) 2022-06-02 02:56:29 +03:00
Zoltan Kochan
190f0b331f fix: auto install of peer dependencies (#4776)
close #4684
2022-05-22 03:19:40 +03:00
Zoltan Kochan
0075fcd234 fix(prune): should work in a workspace (#4691)
close #4647
2022-05-07 04:10:05 +03:00
Zoltan Kochan
84c7e15bae fix(install): exit with an error when no package.json is found (#4614)
close #4609
2022-04-24 13:03:12 +03:00
那里好脏不可以
0453e21823 style(*): typo (#4573)
Co-authored-by: Zoltan Kochan <z@kochan.io>
2022-04-15 02:53:14 +03:00
Zoltan Kochan
ffb23448fc test(plugin-commands-installation): fix 2022-04-07 19:27:59 +03:00
Zoltan Kochan
cdeb652035 feat: the global store location should be inside the pnpm home directory (#4522) 2022-04-02 23:34:46 +03:00
Zoltan Kochan
426f751aa7 test: fix 2022-03-25 22:17:56 +02:00
Prus Egor
ee797adb64 fix: pnpm i should work on virtual drives (#4386)
This is reproducible on Windows with virtual drives created by subst command
2022-02-24 03:28:59 +02:00
zoomdong
8a2cad0342 fix: update cmd should work normal when set empty string version (#4243)
close #4196
2022-01-17 17:09:47 +02:00
Zoltan Kochan
e76151f669 feat: pnpm add <pkg> autoinstalls any missing peer dependencies (#4213)
ref #3995
2022-01-11 16:27:12 +02:00
Zoltan Kochan
19de90ecdf test: move all test utils to /test/utils/ 2022-01-08 22:31:28 +02:00
Zoltan Kochan
ea24c69fe4 fix: prod deps should not be installed as dev deps 2022-01-07 22:44:07 +02:00
Zoltan Kochan
e4b9c4bc3a refactor: fixtures (#4182) 2021-12-31 16:59:58 +02:00
Dave Brotherstone
a6cf11cb77 feat(config): add support for token helper (#4163)
* feat(config): add support for token helper

Use the new interface in `pnpm/credentials-by-uri` for supporting token
helpers. A token helper is an executable, set in the user's `.npmrc`
which outputs an auth token. This can be used in situations where the
`authToken` is not a constant value, but is something that refreshes
regularly, where a script or other tool can use an existing refresh
token to obtain a new access token.

The configuration for the path to the helper must be an absolute path,
with no arguments. In order to be secure, it is _only_ permitted to set
this value in the user `.npmrc`, otherwise a project could place a value
in a project local `.npmrc` and run arbitrary executables.

A similar feature is available in many similar tools. The implementation
in `credentials-by-uri` is modelled after the `vault` (vaultproject.io)
implementation - https://github.com/hashicorp/vault/blob/main/command/token/helper_external.go

* test: fix

* docs: add changesets

Co-authored-by: Zoltan Kochan <z@kochan.io>
2021-12-30 23:16:06 +02:00
Zoltan Kochan
40dc2f954f fix(update): allow to update subdependencies (#4133)
close #4122
2021-12-18 02:24:04 +02:00
Zoltan Kochan
8a99a01ff6 feat(core): overrides, packageExtensions, and neverBuiltDependencies are options (#4050) 2021-11-30 18:01:11 +02:00
zoomdong
3b4dc17c7b feat: pnpm import support yarn2 transform (#3997)
close: #3993
2021-11-24 15:48:45 +02:00
foora
6a54be5a12 feat: support pnpm recursive import (#3909)
close #3908

Co-authored-by: Zoltan Kochan <z@kochan.io>
2021-11-02 21:40:27 +00:00
Zoltan Kochan
2ba869c25e fix: don't link to Node.js executables that are not managed by pnpm (#3910)
close #3905
2021-10-22 21:15:47 +03:00
Zoltan Kochan
917b95c01f fix: upgrade typescript to v4.4.4 2021-10-16 23:33:34 +03:00
Zoltan Kochan
cd980742c7 fix: use the right node exec path when pnpm is an exe (#3870) 2021-10-14 15:12:07 +03:00
Zoltan Kochan
553a5d840d feat: pin Node.js to global package (#3780) 2021-09-22 01:32:33 +03:00
Zoltan Kochan
eb1aed46d0 test(plugin-commands-installation): fix 2021-08-28 21:01:08 +03:00
zoomdong
f815dabd99 feat: pnpm import support yarn (#3655) 2021-08-19 20:52:47 +03:00
Zoltan Kochan
8678e25533 fix(link): throw an error if "pnpm link" has no options and params (#3590)
ref #3532
2021-07-09 12:26:29 +03:00
Zoltan Kochan
691f647137 feat: save the metadata separately from the CAFS (#3578)
ref #2574
2021-07-04 19:35:53 +03:00
javier-garcia-meteologica
5565dd5f42 fix: use a more detailed cyclic depedencies warning (#3569) (#3573) 2021-07-01 22:58:55 +03:00
javier-garcia-meteologica
1442f8786d feat: warn about cyclic dependencies (#2162) (#3537) 2021-06-22 00:53:54 +03:00
Zoltan Kochan
5950459d7f fix(update): read the production/dev/optional options from the CLI input only (#3544) 2021-06-19 23:25:45 +03:00
amit
9d2ff0309b fix: pnpm doesn't respect save-prefix (#3420)
When save-prefix in .npmrc is set to an empty string,
 pnpm does not honor it and sets the package version with the default ^ as a prefix.

Close #3414

Co-authored-by: amit <amit@enso.security>
2021-05-06 14:50:28 +03:00
Zoltan Kochan
f3d92d8b54 test: fix 2021-04-11 12:10:56 +03:00
Zoltan Kochan
ea1a05d05e test(plugin-commands-installation): fix 2021-04-10 02:21:14 +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
aed7124557 fix: cli has no write access to the selected global dir (#3206)
close #1203
2021-02-28 20:19:42 +02:00
Zoltan Kochan
09e950fdc5 feat: rename pnpmfile.js to .pnpmfile.cjs (#3149)
close #3145
close #1339
2021-02-21 03:57:10 +02:00
Zoltan Kochan
46e71ea4a6 feat: pnpm prune removes the modules cache
ref #3115
2021-02-16 02:46:21 +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
409736b4d9 fix: linking deps by absolute path
close #3025
PR #3055
2021-01-03 01:50:05 +02:00
Zoltan Kochan
0e546dd1f6 test: move link tests 2021-01-03 00:04:04 +02:00
Zoltan Kochan
68a349db2e test: use the shared timeout settings in all tests 2020-12-22 18:11:49 +02:00
Zoltan Kochan
db9478ea5b test: make update tests more stable 2020-12-22 17:30:40 +02:00
Zoltan Kochan
7b9a7f63c5 refactor: test utils 2020-12-11 02:06:44 +02:00