0
0
mirror of https://github.com/tj/n.git synced 2024-11-22 11:37:26 +01:00
Commit Graph

20 Commits

Author SHA1 Message Date
Gordon Bleux
e1b57955d6
Make cache directory configurable (#717)
Read the cache directory from the environment, falling back to a location under `N_PREFIX`
2022-03-18 17:59:09 +13:00
John Gee
c32652f4a6
Add support for opt-in download to exec and run (#685)
* Rework argument parsing to allow options after exec and run

* Add option for run and exec to download missing version

* Reword download to cover wider functionality

* Be consistent with inner spacing of arrays

* Add download test for run and exec
2021-09-10 21:19:07 +12:00
John Gee
b9d924d898
engine and auto improvements (#675)
* engine and auto improvements

- move resolution code so ls-remote works
- write progress to stderr
- rework tests, as made up full semver no longer resolve

* Make engine and auto logging suppressable

* Extend --quiet help

* Improve --quiet help
2021-06-06 11:39:26 +12:00
John Gee
f1d0dd5a22
Rework activate to support more configurations (#657)
* Rework activate to be (much) more explicit. Add archlinux image. Remove need for rsync.

* Reword use case without npm
2021-03-12 19:41:44 +13:00
John Gee
6437bfb9d1 Add caveat about false positives 2021-02-27 11:45:11 +13:00
John Gee
e5a441a068 Upgrade bats. Use boost-assert for better failure messages. 2020-12-21 22:50:54 +13:00
John Gee
d7b9edd238 Eliminate last bogus uses of run in tests 2020-12-20 19:10:34 +13:00
John Gee
feddb99772 Remove anti-pattern use of run in more tests 2020-12-20 16:42:27 +13:00
John Gee
228dc1c4d7
WIP: Scan package.json last (#644)
* Scan for package.json after other files (as engine)

* Add engine to help, remove chakra from code.

* Rework auto tests with best practice BATS patterm. Simpler and ignores trace logging.

* Same-line local masking possible command  error

* Oops, remove denugging
2020-12-20 16:17:18 +13:00
John Gee
61a11c2394 Protect tests fron GREP_OPTIONS too 2020-12-20 10:17:31 +13:00
John Gee
25cf9f9672
Extend auto support to include .node-version, .nvmrc, and engines field of package.json (#628)
* Extend auto to include .node-version, .nvmrc, and engines

* Prepare for release
2020-07-25 21:59:32 +12:00
John Gee
449948926e
Add node support aliases (#619)
* Basic implementation of node support aliases

* Add documentation for node support aliases, drop all from first implementation

* Make wording more accurate

* Rename testing hook

* Modify markdown for keys

* Add node support alias for supported, add tests
2020-06-24 21:01:53 +12:00
John Gee
e1e9f706cd Change filename. Prepare for release. 2020-04-11 17:46:36 +12:00
John Gee
59adcab8b4
Add auto label to read version from .node-version (#616)
* Add support for auto, reading version from .node-version

* Make version unique in tests

* Add support for auto doing a lookup for unresolved version

* Make auto description more consistent in style with other labels.
2020-04-11 14:10:29 +12:00
John Gee
f0d22e4b01 Add N_PRESERVE_NPM to unset for tests 2020-02-27 21:38:47 +13:00
John Gee
8c30f120d1
Preserve npm (#611)
* First cut at --preserve (npm)

* Add documentation for --preserve

* Add --preserve test

* Extend help section to include --no-preserve

* Bump version

* Prepare CHANGELOG for release
2020-02-24 21:50:23 +13:00
John Gee
bff1bb01ce Fix some references to nvh 2019-08-12 08:23:28 +12:00
John Gee
82103e75a8 Update tests to include more than just installs 2019-08-04 16:33:45 +12:00
John Gee
ec91ea96fd Fix version lookup in tests after index.tab change 2019-07-20 12:38:35 +12:00
John Gee
af1f7fe75e Add test folder and tests 2019-05-04 19:45:53 +12:00