Commit Graph

32 Commits

Author SHA1 Message Date
Zoltan Kochan
1191b67b41 perf: optimize the dependencies build step
ref pnpm/pnpm#1109
2018-04-13 01:24:22 +03:00
Zoltan Kochan
fd6fe67e90 test: fix on Windows 2018-03-11 22:55:29 +02:00
Zoltan Kochan
83cd14db1d test: use @pnpm/assert-project 2018-03-11 22:05:28 +02:00
Zoltan Kochan
bc34aba650 style: adhere conventions 2018-03-05 15:49:34 +02:00
Emanuele Tamponi
7a4661df37 fix: use the real path to node_modules (#49)
BREAKING CHANGE:

The API of link() has changed. The second param should be the target `node_modules` folder
2018-02-27 21:35:20 +02:00
Emanuele Tamponi
fdad157392 feat: --shamefully-flatten (#42)
* feat: this is a best attempt at flattening the dependency tree, similar to what npm does

* test: shamefullyFlatten option

* feat: when uninstalling, if shamefully-flatten is true, we need to re-flatten

* fix: use new shrinkwrap, not the old one

* fix: changes suggested in PR

* test: remove test.only

* fix: various bugs in uninstall and general install, added tests

* test: fix test

* test: use project.has and project.hasNot correctly

* test: remove test.only

* test: added tsconfig.json, added lint-test script, lint fixes

* test: use correct message

* fix: check should work on windows too
2018-02-22 01:04:44 +02:00
Zoltan Kochan
6467b938a0 fix: update package-store to v0.17.0 2018-02-17 21:14:44 +02:00
Zoltan Kochan
dbebdea0f2 refactor: use spread operator instead of Object.assign 2018-02-11 19:32:32 +02:00
Zoltan Kochan
0cbe3cca5f test: making the tests stable 2018-02-06 01:18:28 +02:00
Zoltan Kochan
1c413655c8 feat: move package importing logic to the store
close #34
2018-01-09 01:20:32 +02:00
Zoltan Kochan
bb7aff4af6 refactor: use own options
BREAKING CHANGE:

storeController is not an optional parameter anymore
2018-01-07 22:34:31 +02:00
Emanuele Tamponi
c2be0a1069 feat: incremental rebuild (#30)
* fix: run node-gyp rebuild when install is not specified

* feat: after pnpm install --ignore-script, pnpm rebuild is incremental

* refactor: add --pending option to rebuild, only store pending ids

* fix: javascript magic to avoid if statement

* fix: update pendingBuilds also when removing packages

* fix: remove old code, use testDefaults correctly

* test: add test for rebuild --pending

* chore: make my IDE and TSLint happy

* chore: @types/es6-promise makes IntelliJ happy and Travis sad

* fix: use Set, only append to pendingBuilds if ignoreScripts is true

* test: pendingBuilds handled correctly

* test: install and uninstall behavior with pendingBuilds

* fix: saveModules only when needed

* fix: Set has size, not length, add comment about the use of .concat
2017-12-29 22:44:41 +02:00
zkochan
54cb8b944e chore: use package-preview 2017-11-01 09:54:58 +02:00
zkochan
cb5f37fb8e fix: should be possible to run normall install after dev-only 2017-10-28 20:53:10 +03:00
Zoltan Kochan
001370c6eb refactor: removing CLI stuff from supi 2017-06-28 20:11:40 +03:00
zkochan
c28dba774a feat: update typescript to version 2.4.1 2017-06-27 21:32:23 +03:00
zkochan
c9abd79661 refactor: rename storePath in .modules.yaml to store 2017-06-25 21:16:22 +03:00
zkochan
3209d2d18c refactor: install dependencies of tests into test/node_modules 2017-06-24 14:41:07 +03:00
zkochan
c156101a99 refactor: rename store-path config to store
BREAKING CHANGES:

rename `store-path` config to `store`

Ref #458
2017-06-20 23:30:06 +03:00
Zoltan Kochan
0176edfbce feat: saving packages under node_modules in the store 2017-06-12 23:38:08 +03:00
zkochan
967bb72f7f fix: save packages to the correct properties
Close #727
2017-06-11 19:11:09 +03:00
zkochan
2c04aa69da feat: save optional deps separately in the lockfile
For correct prunning of the lockfile, it has to be known
which deps are optional. Also it has to be known which
deps are dev deps in the root.

BREAKING CHANGE:

lockfile format changed
2017-06-05 22:06:32 +03:00
zkochan
0709c2df40 test: use notOk when possible 2017-06-04 22:07:22 +03:00
Zoltan Kochan
2c46333107 fix: global installation always works now (#713)
* fix: global installation always works now

Close #711

* refactor: avoid using `read-pkg-up`

BREAKING CHANGE:

API should be called in the folder that has a package.json file.
pnpm won't search up for a package.json file.

Close #67

* docs(API): update

* refactor: write-pkg created dir on its own

* refactor: rename `globalDir` to `globalPrefix`

* feat: saving the global package in <global prefix>/pnpm-global
2017-04-22 23:11:25 +03:00
zkochan
b94aaff38a feat: use npm's config system
BREAKING CHANGE:

`rc` is not used to get configs.

BREAKING CHANGE:

`.pnpmrc` files are ignored

BREAKING CHANGE:

configs in json format are not supported

BREAKING CHANGE:

`--config` argument renamed to `--userconfig`

Close #696, Close #40
2017-04-20 23:01:14 +03:00
zkochan
d88cb274bf style: remove trailing whitespace in template string 2017-03-29 23:43:22 +03:00
zkochan
91849fd88a feat(shrinkwrap): don't save empty shrinkwrap files 2017-03-04 16:07:48 +02:00
zkochan
4aa3e78e88 fix: use path-exists instead of exists-file 2017-03-02 22:56:56 +02:00
zkochan
a1ee21b907 feat: use a local registry similar to sinopia's storage 2017-02-27 00:10:01 +02:00
zkochan
c1a8c71325 test: fix executable checking 2017-02-20 21:39:53 +02:00
zkochan
da6ab05f5e test(shrinkwrap): add a tests to check shrinkwrap format
Ref #587
2017-02-12 13:45:58 +02:00
zkochan
04bc56c688 refactor(tests): move supporting functions to utils folder 2017-02-06 21:01:45 +02:00