2013-12-17 13:07:58 -08:00
|
|
|
{
|
|
|
|
|
"name": "nvm",
|
2025-04-23 16:34:31 -07:00
|
|
|
"version": "0.40.3",
|
2013-12-17 13:07:58 -08:00
|
|
|
"description": "Node Version Manager - Simple bash script to manage multiple active node.js versions",
|
|
|
|
|
"directories": {
|
|
|
|
|
"test": "test"
|
|
|
|
|
},
|
|
|
|
|
"scripts": {
|
2014-10-03 01:29:04 -04:00
|
|
|
"test": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make test-$shell",
|
2020-11-03 19:05:34 -05:00
|
|
|
"test/fast": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); env -i TERM=\"$TERM\" bash -lc \"make TEST_SUITE=fast test-$shell\"",
|
2014-10-03 01:29:04 -04:00
|
|
|
"test/slow": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=slow test-$shell",
|
|
|
|
|
"test/install_script": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=install_script test-$shell",
|
2016-05-08 22:21:33 -07:00
|
|
|
"test/installation": "npm run --silent test/installation/node && npm run --silent test/installation/iojs",
|
|
|
|
|
"test/installation/node": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=installation_node test-$shell",
|
|
|
|
|
"test/installation/iojs": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=installation_iojs test-$shell",
|
2017-02-27 01:35:34 +08:00
|
|
|
"test/sourcing": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=sourcing test-$shell",
|
2024-08-27 12:46:40 -07:00
|
|
|
"test:check-exec": "(IFS=$'\\n'; for file in $(git ls-files test); do if [ ! -x \"$file\" ] && [[ \"$file\" != *.* ]] && [[ \"$file\" != test/fixtures/* ]]; then echo \"$file\"; fi; done) | tee /dev/stderr | awk 'END {if (NR > 0) exit 1}'",
|
|
|
|
|
"test:check-nonexec": "(IFS=$'\\n'; for file in $(git ls-files test); do if [ -x \"$file\" ] && [ ! -d \"$file\" ] && { [[ \"$file\" =~ '\\.(json|txt|sh|js|log)$' ]] || [[ \"$file\" =~ '^test/(mocks|fixtures)/.*' ]]; }; then echo \"$file\"; fi; done) | tee /dev/stderr | awk 'END {if (NR > 0) exit 1}'",
|
2018-02-26 02:29:38 +08:00
|
|
|
"doctoc": "doctoc --title='## Table of Contents' --github README.md",
|
2021-03-17 08:11:37 -07:00
|
|
|
"predoctoc:check": "cp README.md v-README.md.orig && npm run doctoc",
|
|
|
|
|
"doctoc:check": "diff -q README.md v-README.md.orig",
|
|
|
|
|
"postdoctoc:check": "mv v-README.md.orig README.md",
|
2018-07-12 12:14:06 +08:00
|
|
|
"eclint": "eclint check $(git ls-tree --name-only HEAD | xargs)",
|
2017-11-05 04:06:36 +08:00
|
|
|
"dockerfile_lint": "dockerfile_lint",
|
|
|
|
|
"markdown-link-check": "git ls-files | command grep -E '\\.md$' | xargs -n 1 markdown-link-check -p"
|
2013-12-17 13:07:58 -08:00
|
|
|
},
|
|
|
|
|
"repository": {
|
|
|
|
|
"type": "git",
|
2019-04-24 16:08:34 -07:00
|
|
|
"url": "git://github.com/nvm-sh/nvm.git"
|
2013-12-17 13:07:58 -08:00
|
|
|
},
|
|
|
|
|
"keywords": [
|
|
|
|
|
"nvm",
|
|
|
|
|
"node",
|
2015-12-21 17:43:29 +08:00
|
|
|
"iojs",
|
2013-12-17 13:07:58 -08:00
|
|
|
"version",
|
|
|
|
|
"manager"
|
|
|
|
|
],
|
|
|
|
|
"author": "Tim Caswell <tim@creationix.com>",
|
|
|
|
|
"license": "MIT",
|
|
|
|
|
"bugs": {
|
2019-04-24 16:08:34 -07:00
|
|
|
"url": "https://github.com/nvm-sh/nvm/issues"
|
2013-12-17 13:07:58 -08:00
|
|
|
},
|
2019-04-24 16:08:34 -07:00
|
|
|
"homepage": "https://github.com/nvm-sh/nvm",
|
2013-12-17 13:07:58 -08:00
|
|
|
"devDependencies": {
|
2021-03-29 12:49:02 -07:00
|
|
|
"dockerfile_lint": "^0.3.4",
|
2022-10-26 10:13:39 -07:00
|
|
|
"doctoc": "^2.2.1",
|
2021-03-29 12:49:02 -07:00
|
|
|
"eclint": "^2.8.1",
|
2025-12-03 12:02:29 -08:00
|
|
|
"markdown-link-check": "^3.14.2",
|
2022-10-26 10:13:39 -07:00
|
|
|
"replace": "^1.2.2",
|
2025-11-10 10:07:02 +07:00
|
|
|
"semver": "^7.7.3",
|
2020-10-22 20:40:04 -07:00
|
|
|
"urchin": "^0.0.5"
|
2013-12-17 13:07:58 -08:00
|
|
|
}
|
|
|
|
|
}
|