Commit Graph

10701 Commits

Author SHA1 Message Date
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
Zoltan Kochan
73cc484b6e fix: pass --save-exact/--save-prefix to supi
fixes a regression introduced by #1528
bug is present in pnpm v2.20.0 but it wasn't tagged as latest
2018-12-04 22:42:31 +02:00
Tejasvi Nareddy
144fd87737 chore(tslint-config): separate tslint.json from js file
Create individual `tslint.json` file that `index.js` imports.
This makes it clear that `index.js` exports a tslint json configuration.
Also allows for IDEs to detect the root `tslint.json` file.
2018-12-04 14:18:02 +02:00
Zoltan Kochan
8852c1e6f7 style: remove unnecessary semicolons 2018-12-03 15:18:38 +02:00
Zoltan Kochan
6ad444c217 style: remove unnecessary semicolons 2018-12-03 02:50:43 +02:00
Zoltan Kochan
1df1336ab4 chore(release): 2.20.0 v2.20.0 2018-12-03 02:34:01 +02:00
Zoltan Kochan
5027609170 fix: mutateModules() can remove undeclared modules
@pnpm/modules-cleaner:

BREAKING CHANGE:

removePackages is passed with importers
2018-12-03 02:13:47 +02:00
Renovate Bot
0f6b03da20 fix(deps): update dependency ramda and @types/node
close #1524
close #1526
2018-12-03 01:32:38 +02:00
Zoltan Kochan
066910b6dc fix(shared-workspace-shrinkwrap): recursive removal
* feat(supi): merge installPkgs() with install()

* fix(shared-workspace-shrinkwrap): recursive removal

ref #1525

* refactor: recursive operations with shared shrinkwrap

* refactor(supi): revert mixing install() with uninstall()

* refactor: create mutateModules()

* fix: uninstalling a direct peer from a shared shrinkwrap

* refactor: rename mutations

* refactor(resolve-dependencies): opts.updateDepth

BREAKING CHANGE:

opts.depth and opts.update params deprecated
opts.updateDepth added

* refactor: pass pinnedVersions to mutateModules()

* refactor: rename properties in DependenciesMutation

* refactor(supi): remove unlink() and unlinkPkgs()

PR #1528
2018-12-03 01:18:54 +02:00
Zoltan Kochan
53266a45b6 fix(deps): update @pnpm/npm-resolver to v2.2.7 2018-11-30 21:54:35 +02:00
Zoltan Kochan
a848a1e9b9 chore(release): 2.2.7 npm-resolver/2.2.7 2018-11-30 21:52:30 +02:00
Zoltan Kochan
264e5adfac fix: update parse-npm-tarball-url 2018-11-30 21:44:20 +02:00
Renovate Bot
15566b3ecc chore(deps): update dependency package-preview to v2 2018-11-30 21:10:25 +02:00
Renovate Bot
f9b548a4e7 chore(deps): update dependency package-preview to v2 2018-11-30 21:09:46 +02:00
Renovate Bot
30925fb0bc chore(deps): update dependency package-preview to v2 2018-11-30 21:08:41 +02:00
Renovate Bot
2f8c45dc18 chore(deps): update dependency package-preview to v2 2018-11-30 21:07:08 +02:00
Zoltan Kochan
8a88e43911 feat: pnpm ls --depth -1 prints projects
close #1519
PR #1521
2018-11-30 02:55:30 +02:00
Zoltan Kochan
f8e80397c9 chore: remove package-preview 2018-11-30 02:53:44 +02:00