Commit Graph

90 Commits

Author SHA1 Message Date
Zoltan Kochan
0b2af0becc style: no default exports (#5498) 2022-10-15 04:33:38 +03:00
Zoltan Kochan
f884689e0d fix(deps)!: update @pnpm/logger (#5496) 2022-10-14 20:48:43 +03:00
Zoltan Kochan
043d988fc9 style: no default exports (#5490) 2022-10-14 16:49:11 +03:00
Juanra GM
e072256518 fix: return correct path in pnpm pack (#5472)
close #5471

Co-authored-by: Zoltan Kochan <z@kochan.io>
2022-10-09 16:17:16 +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
8103f92bd6 fix: deprecation warnings on Node.js 16 (#5150) 2022-08-03 17:42:00 +03:00
Anthony DePasquale
9cebb77d0e fix: change "up-to-date" to "up to date" where necessary (#5148) 2022-08-03 14:07:56 +03:00
Zoltan Kochan
eb2426cf85 fix: symlink a workspace pkg correctly, when it has a custom publish dir (#5089)
close #3901
2022-07-26 03:07:17 +03:00
Zoltan Kochan
348580c3f5 fix: document the -r option (#5044)
close #5019
2022-07-17 18:04:07 +03:00
Zoltan Kochan
5f643f23b0 fix(deps): update ramda to v0.28 2022-06-28 15:33:17 +03:00
Cheng
56cf04cb36 feat: add git-branch-lockfile config to generate lockfile in each branch (#4475)
Co-authored-by: Zoltan Kochan <z@kochan.io>
Co-authored-by: David Michon <dmichon@microsoft.com>
2022-06-14 23:31:16 +03:00
Axe
154e582f4f fix: display more informative error for packing (#4654)
close #4653
2022-05-03 22:58:59 +03:00
Zoltan Kochan
9177ddbc9a fix: publish in workspace (#4627)
close #4348
2022-04-27 11:33:44 +03:00
Whitewater
cfe345b6d6 fix(publish): better error when git branch cannot be detected (#4488) 2022-03-27 15:55:23 +03:00
Zoltan Kochan
5fa29295b6 feat(pack)!: limit what files are packed as executables (#4266)
ref https://github.com/pnpm/pnpm/discussions/3536
2022-01-21 00:18:09 +02:00
Dan Onoshko
b7566b9791 feat: embed-readme option (#4265) 2022-01-20 19:20:27 +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
zoomdong
890549b7d8 feat: pnpm publish support otp option (#4115)
close #3918
2021-12-15 18:50:47 +02:00
FolknR
6493e0c932 fix(plugin-commands-publishing): add readme file to published package.json (#4117)
close #4091
2021-12-15 16:07:55 +02:00
Erik Yu
8cde329876 fix: aviod error log cut (#3951)
Co-authored-by: yuhuaheng <yuhuaheng@bytedance.com>
Co-authored-by: Zoltan Kochan <z@kochan.io>
2021-11-07 13:00:28 +02:00
Zoltan Kochan
917b95c01f fix: upgrade typescript to v4.4.4 2021-10-16 23:33:34 +03:00
Zoltan Kochan
d91685841c fix(publish): preserve executable modes of files 2021-07-30 12:14:20 +03:00
Zoltan Kochan
b734b45ea2 feat: publishConfig.executableFiles (#3628) 2021-07-30 11:19:10 +03:00
Zoltan Kochan
47ed7b163a fix(publish): run scripts when publishConfig.directory is used (#3627)
close #3626
2021-07-29 19:39:15 +03:00
Zoltan Kochan
f9152ab3c3 fix(pack): fix the help text 2021-07-25 02:18:35 +03:00
Zoltan Kochan
612c52953c fix(pack): executables should be packed with exec mode (#3617) 2021-07-25 00:09:41 +03:00
Zoltan Kochan
efca3896c1 fix(pack): use the correct compression algorithm 2021-07-24 21:05:26 +03:00
Zoltan Kochan
f63c034c6a feat(pack): do not pass thru to npm pack (#3608) 2021-07-22 04:15:07 +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
40ce0eb6b5 fix(publish): copy .npmrc from the root of repository (#3511)
close #3508
2021-06-08 01:54:07 +03:00
Pablo Sáez
b5e9284c38 fix: publishConfig.directory script (#3497)
Co-authored-by: Zoltan Kochan <z@kochan.io>
2021-06-03 01:48:33 +03:00
Pablo Sáez
724c5abd80 feat(publish): support "publishConfig.directory" field (#3490) 2021-05-31 03:21:40 +03:00
Zoltan Kochan
a1a03d1457 fix: import only the needed functions from ramda 2021-05-29 01:33:09 +03:00
Zoltan Kochan
819f678942 feat(publish): --report-summary (#3461)
* feat(publish): --report-summary

* fix: typo

* fix: write a report summary even if packages were not published
2021-05-21 02:31:14 +03:00
Zoltan Kochan
05baaa6e74 feat: new config setting added - fetch-timeout (#3390)
close #3387
2021-04-24 19:09:52 +03:00
Zoltan Kochan
561276d2c8 fix: npm should not run lifecycle events on pnpm publish (#3340)
close #3332
2021-04-13 00:57:34 +03:00
Zoltan Kochan
903314f4d6 style: fix 2021-03-17 23:27:28 +02: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
30f963febc feat: pnpm publish -r --force (#3181)
`pnpm publish -r --force` publishes packages even if their current
version is already in the registry.

close #3154
2021-02-22 00:29:07 +02:00
Zoltan Kochan
d6d091f249 style: use es2015 imports (#3143) 2021-02-15 05:06:10 +02:00
Yao Ding
a93b6d56fb fix: return correct scoped registry for alias dependency (#3140)
close #3103

Co-authored-by: Zoltan Kochan <z@kochan.io>
2021-02-14 22:04:53 +02:00
Zoltan Kochan
3503951d39 perf: don't use graceful-fs and mz/fs (#3129) 2021-02-09 13:44:07 +02:00
Yao Ding
cc39fc8ad8 fix: remove --publish-branch with branch name to npm publish args (#3107)
close #2996

* fix: remove --publish-branch with branch name to npm publish args

* Update packages/plugin-commands-publishing/src/publish.ts

Co-authored-by: Zoltan Kochan <zkochan@users.noreply.github.com>

Co-authored-by: Zoltan Kochan <zkochan@users.noreply.github.com>
2021-01-30 02:00:09 +02:00
Yao Ding
ff61290417 feat: print an info message when there is no new packages to publish recursively (#3099)
* feat: print an info message when there is no new packages to publish recursively

* feat: use publishedPkgDirs to check

close #2775
2021-01-25 17:17:16 +02:00
Yao Ding
6af60416cb fix: add main to default publish branch
close #2995
PR #3064
2021-01-13 11:56:14 +02:00
Misha Kaletsky
5351791f68 fix: mention CLI flag in git checks hint
PR #2904
Co-authored-by: Zoltan Kochan <z@kochan.io>
2020-10-01 00:47:38 +03:00
Zoltan Kochan
892e2b1551 fix(publish): check branch after checking if branch is clean 2020-09-23 00:32:47 +03:00
Zoltan Kochan
273f11af46 feat(publish): more information added to the Git check errors/prompt 2020-09-08 14:16:05 +03:00
Zoltan Kochan
acc1782c6f style: restrict template expressions 2020-08-27 00:57:58 +03:00
Zoltan Kochan
88e1eaa908 style: use no delimiters in type declarations 2020-08-26 01:42:36 +03:00