Commit Graph

4093 Commits

Author SHA1 Message Date
Zoltan Kochan
86cd03df0c fix: pipe output of child processes during headless install 2018-12-25 02:29:00 +02:00
Zoltan Kochan
d393905806 fix: keep pkgs in current shr on partial install in workspace 2018-12-25 00:13:12 +02:00
Renovate Bot
d0afdf0679 chore(deps): update dependency nock to v10.0.5 2018-12-23 20:46:53 +02:00
Zoltan Kochan
7397b42996 chore(renovate): add packages to ignoredDeps 2018-12-23 19:12:38 +02:00
Zoltan Kochan
0b094dde0f chore(release): 2.23.0-0 v2.23.0-0 2018-12-23 17:11:16 +02:00
Zoltan Kochan
f0bd12eb23 chore: update typing deps 2018-12-23 16:53:43 +02:00
Zoltan Kochan
ded5171a49 feat: better reporting of child processes output
PR #1573

* feat(reporting): collapse build output of deps inside node_modules

ref #1440

* feat(reporting): nicer reporting of lifecycle output

* feat(reporting): print the number of collapsed lines

* feat(reporting): always print the status of the child processes

* refactor: reporting

* feat(reporting): nicer indentation

* feat(reporting): report duration of script run

close #1440
2018-12-23 16:42:27 +02:00
Zoltan Kochan
e678bfac7d test(pnpm): override the independent-leaves env var 2018-12-22 01:57:50 +02:00
Zoltan Kochan
49169bcdc0 chore(release): 2.22.0 v2.22.0 2018-12-21 19:48:26 +02:00
Zoltan Kochan
0a09bbff79 fix(independent-leaves): direct deps linking 2018-12-21 15:32:46 +02:00
Zoltan Kochan
cca1e6ae76 chore(release): 2.22.0-0 v2.22.0-0 2018-12-21 01:58:27 +02:00
Zoltan Kochan
79688d2a7d chore: update dependencies 2018-12-21 01:00:08 +02:00
Zoltan Kochan
9c4fe711ef fix(headless): only use side-effects-cache when the config is true
BREAKING CHANGE:

In supi and @pnpm/headless `opts.sideEffectsCache` and
`opts.sideEffectsCacheReadonly` renamed to
`opts.sideEffectsCacheWrite` and `opts.sideEffectsCacheRead`
2018-12-21 00:30:46 +02:00
Zoltan Kochan
803542a6ac fix: shamefully-flatten should work with independent-leaves
close #1547
2018-12-21 00:30:46 +02:00
Zoltan Kochan
6344db7ac7 feat(exec): $PNPM_PACKAGE_NAME
Current package name should be in env var called $PNPM_PKG_NAME
when running `pnpm m exec -- echo $PNPM_PACKAGE_NAME

close #1553
2018-12-18 22:11:26 +02:00
Zoltan Kochan
2e30436a47 test: use yarn registry instead of node-modules.io for testing 2018-12-18 21:35:53 +02:00
Zoltan Kochan
c18b4c0c12 test: fix fixture of @pnpm/outdated 2018-12-18 01:31:00 +02:00
Zoltan Kochan
e02fb790d7 style(lifecycle): fix 2018-12-15 22:56:20 +02:00
Zoltan Kochan
29769bcc93 fix(lifecycle): use loggers from @pnpm/core-loggers 2018-12-15 22:53:51 +02:00
Zoltan Kochan
5e692de1dc fix(lifcycle): update and pin deps 2018-12-15 22:46:00 +02:00
Zoltan Kochan
d5d1f5f93a chore(renovate): add @pnpm/lifecycle to ignoreDeps 2018-12-15 22:40:55 +02:00
Zoltan Kochan
9cfe7d3e06 Merge branch '@pnpm/lifecycle' 2018-12-15 22:26:02 +02:00
Zoltan Kochan
fa7bcdb989 refactor: remove redundant files from @pnpm/lifecycle 2018-12-15 22:23:40 +02:00
Zoltan Kochan
358034bd3d refactor: move @pnpm/lifecycle to monorepo 2018-12-15 21:47:22 +02:00
Tejasvi (Teju) Nareddy
2bf7c0d333 test(supi): abstract store assertions via assert-store
* chore(assert-store): introduce return types and getStorePath

Add return types to pre-existing methods
Introduce function to get store path, simplifying logic in assert-project later

* chore(assert-project): abstract store assertions via assert-store

Cache entire store object instead of just the store path
Store-related calls in assert-project are run against assert-store

* test(supi): call assert-store for store assertions

Test cases where `pnpm install` is not called do not have a valid project
Use assert-store directly for store assertions

* test(supi): abstract store assertions with assert-store

Replace direct store checking (via path-exists) with assert-store

* fix: storeHasNot() when store does not exist

* refactor: remove getStorePath from assert-store

PR #1560
2018-12-15 18:20:26 +02:00
Zoltan Kochan
c47ab42025 feat: rename pnpm-default-reporter to @pnpm/default-reporter 2018-12-15 17:00:23 +02:00
Zoltan Kochan
ce51fd5c9f feat: move all loggers to @pnpm/core-loggers 2018-12-15 16:45:08 +02:00
Zoltan Kochan
bf1c8fb915 fix(deps): update dependencies 2018-12-15 00:31:26 +02:00
Zoltan Kochan
4b5521e547 feat: notify user about scope of the command
close #1551
2018-12-15 00:10:53 +02:00
Tejasvi (Teju) Nareddy
d5f78267d5 fix(server): change error type for invalid request method
* fix(server): Change error type for invalid request method

Return 405 instead of 503
Encapsulate error in JSON object
Set `Allow` header for 405 response

* test(server): Add tests for 404 and 405

Added test for invalid route (404)
Added test for invalid HTTP method (405)

PR #1548
2018-12-12 12:27:38 +02:00
Zoltan Kochan
ec248e688e refactor(reporter): move every report function to own file 2018-12-10 02:59:47 +02:00
Zoltan Kochan
5972831fd8 chore(release): 2.21.1 v2.21.1 2018-12-09 19:20:16 +02:00
Zoltan Kochan
72a74f2fd3 test: installing with independent-leaves and shamefully-flatten
ref #1547
2018-12-09 19:01:01 +02:00
Zoltan Kochan
ea393876dd fix: adding a new importer to workspace with shared shrinkwrap 2018-12-09 17:58:50 +02:00
Zoltan Kochan
0312c52dd3 fix: non-recursive install ignores filter from config 2018-12-09 16:31:17 +02:00
Zoltan Kochan
3b243fda83 chore(renovate): add to ignoreDeps 2018-12-09 14:53:17 +02:00
Zoltan Kochan
2613ab2957 chore(release): 2.21.0 v2.21.0 2018-12-09 03:05:54 +02:00
Zoltan Kochan
7b20aa0803 chore(deps): update nock and @types/node
close #1543
close #1539
2018-12-09 02:40:45 +02:00
Zoltan Kochan
bfe353a2ca fix: headless install with shared shrinkwrap and independent leaves 2018-12-08 23:39:07 +02:00
Zoltan Kochan
24185cd317 fix: create node_modules when writing node_modules/.shrinkwrap.yaml 2018-12-08 22:13:35 +02:00
Zoltan Kochan
6ae12c39a2 fix(filter): filter from .npmrc is parsed as an array 2018-12-08 21:15:03 +02:00
Zoltan Kochan
2947a05d1e fix: pnpm store usages
ref #1529
ref #1527
2018-12-08 17:23:28 +02:00
Tejasvi (Teju) Nareddy
b1737dcd9f feat: pnpm store usages <package>...
* docs(pnpm): docs for the package usages feature

- Add documentation for `pnpm store usages`
- Refactor docs for `pnpm store` to be more readable

* feat(package-store): implement findPackageUsages

Introduces functionality to search the package store for packages.
Reports all matching packages and the node projects they are used in.
Allows for searching a specific version, or all versions.

* feat(server): expose findPackageUsages API

Exposes an API for finding package usages in the store.

* feat(store-controller-types): Exposes findPackageUsages store functionality

Publicly exposes the findPackageUsages function in the store-controller.
Also exposes the expected response type, allowing clients to be type-safe.

* feat(supi): implement findStoreUsages functionality, add API

Publicly exposes the findPackageUsages function SUPI.

* feat(pnpm): pnpm store usages

Enabled CLI command to find usages of a package in the global store.
Pretty-prints a tree with queries and results.

* style: remove semicolons

Removed semicolons to follow style guide.

* refactor(supi): change test after merge of #1528

* refactor: rename findPackageUsages return type

Better naming of the types returned in the pnpm store usages feature.

* tests: add tests for `pnpm store usages`

Add tests to `supi` to ensure datamodel returned by `package-store` is correct.
Fix test messages in `server`

PR #1529
2018-12-08 01:23:46 +02:00
Zoltan Kochan
c8c05855db chore(deps): update dependency nock to v10.0.3
close #1538
2018-12-08 00:32:43 +02:00
Zoltan Kochan
ead5212a60 fix(deps): update dependency is-ci to v2
close #1540
2018-12-08 00:24:14 +02:00
renovate[bot]
e460bdf8a4 chore(deps): update dependency typescript to v3.2.2
* chore(deps): update dependency typescript to v3.2.2

* fix: typings

PR #1522
2018-12-08 00:11:48 +02:00
Tejasvi (Teju) Nareddy
2ce8f851b0 chore(assert-store): create new private package @pnpm/assert-store
Add new module to test pnpm stores
Add a test directory

PR #1536
2018-12-07 22:28:42 +02:00
Zoltan Kochan
4198da2074 refactor: deprecate pnpm-shrinkwrap 2018-12-06 23:19:30 +02:00
Zoltan Kochan
05a3308aaf chore(release): 2.20.1 v2.20.1 2018-12-05 02:27:14 +02:00
Zoltan Kochan
38e80d069f fix: uninstall in a pkg that uses shared shr and has ws deps 2018-12-05 02:14:18 +02:00