Commit Graph

65 Commits

Author SHA1 Message Date
MCMXC
b67d3049b8 refactor: autoremove redundant disabled lint occurrences (#5169)
- add reportUnusedDisableDirectives true to eslint-config
- run 'lint:ts --fix' which autoremoves all redundant disabled lint occurrences
2022-08-06 21:29:44 +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
Axe
154e582f4f fix: display more informative error for packing (#4654)
close #4653
2022-05-03 22:58:59 +03:00
Zoltan Kochan
22907f6e3e test(publishing): fix 2022-04-30 18:08:56 +03:00
Zoltan Kochan
d9d30d6fa2 test: improve tests that init a git repo 2022-04-30 16:40:13 +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
Whitewater
cfe345b6d6 fix(publish): better error when git branch cannot be detected (#4488) 2022-03-27 15:55:23 +03:00
Black-Hole
e1b4590084 refactor(publish): remove meaningless key in publishConfig (#4334) 2022-02-13 14:19:37 +02:00
Dan Onoshko
b7566b9791 feat: embed-readme option (#4265) 2022-01-20 19:20:27 +02:00
Zoltan Kochan
19de90ecdf test: move all test utils to /test/utils/ 2022-01-08 22:31:28 +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
080742313f test(publishing): fix 2021-11-12 14:24:20 +02:00
Zoltan Kochan
c67dd27e95 test(publishing): fix 2021-11-12 14:09:25 +02: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
612c52953c fix(pack): executables should be packed with exec mode (#3617) 2021-07-25 00:09:41 +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
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
javier-garcia-meteologica
85fb21a837 feat: workspace:^ and workspace:~ aliases (#3116) (#3368)
* feat: workspace:^ and workspace:~ aliases (#3116)

* fix: apply suggestions and add changeset

* fix(npm-resolver): workspace aliases

* refactor: implement suggestions

* refactor: use only one regex
2021-04-21 18:22:08 +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
91eabf8df4 feat: use .cjs extension for the CLI bundle file (#3305) 2021-04-03 15:44:31 +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
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
09e950fdc5 feat: rename pnpmfile.js to .pnpmfile.cjs (#3149)
close #3145
close #1339
2021-02-21 03:57:10 +02:00
Zoltan Kochan
44d52f7995 test: use .toContain() in assertions 2021-02-20 14:42:42 +02:00
Zoltan Kochan
d6d091f249 style: use es2015 imports (#3143) 2021-02-15 05:06:10 +02:00
Zoltan Kochan
c3968b39c0 test(publish): skip failing test on Windows CI 2021-02-13 19:53:25 +02:00
Zoltan Kochan
d32960d4b7 test(publish): improve assertions 2021-02-13 16:02:11 +02:00
Zoltan Kochan
7201b9785a ci: install npm v6 before running tests 2021-02-13 15:20:54 +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
Zoltan Kochan
68a349db2e test: use the shared timeout settings in all tests 2020-12-22 18:11:49 +02:00
Zoltan Kochan
7b9a7f63c5 refactor: test utils 2020-12-11 02:06:44 +02:00
Zoltan Kochan
2096f1a254 test: make publish tests more stable 2020-11-26 00:45:07 +02:00
Zoltan Kochan
284e95c5e4 feat: specifying a path to workspace packages in version specs
close #2959
PR #2972
2020-11-14 14:22:30 +02:00
Zoltan Kochan
084614f559 feat: aliases for workspace packages
close #2970
PR #2976
2020-11-12 11:28:15 +02:00
Zoltan Kochan
c0af79da4c test(plugin-commands-publishing): use Jest
ref #2858
2020-11-11 02:14:08 +02:00
Zoltan Kochan
892e2b1551 fix(publish): check branch after checking if branch is clean 2020-09-23 00:32:47 +03:00
Zoltan Kochan
88e1eaa908 style: use no delimiters in type declarations 2020-08-26 01:42:36 +03:00
Zoltan Kochan
d717e344ee test: tests pass even if git is not configured 2020-08-25 01:57:42 +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
dc64a6c6da test(publishing): use local pnpm 2020-08-10 03:28:51 +03:00
iyegoroff
2a41ce95c4 fix: added workspace peer dependencies substitution
PR #2727 
close #2467
2020-07-29 17:08:53 +03:00