Skip to content

Commit

Permalink
bump node version, fix npm scripts, add docker:test script for testing
Browse files Browse the repository at this point in the history
in a clean environment
  • Loading branch information
ouchxp committed Dec 11, 2022
1 parent 1f2aa59 commit d2436b2
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 45 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
test
node_modules/
!node_modules/sh-semver/
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.18.2
16
49 changes: 12 additions & 37 deletions node_modules/sh-semver/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 42 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nodenv-nvmrc",
"version": "1.0.5",
"version": "1.0.6",
"private": true,
"description": "Activate a nodenv node version from .nvmrc",
"homepage": "https://github.com/ouchxp/nodenv-nvmrc#readme",
Expand All @@ -14,17 +14,18 @@
"bugs": {
"url": "https://github.com/nodenv/nodenv-nvmrc/issues"
},
"directories": {
"config": {
"bin": "bin",
"testnodenv": "test/nodenv",
"test": "test"
},
"scripts": {
"pretest": "[ -d $npm_package_directories_testnodenv ] || git clone --quiet --depth 1 https://github.com/nodenv/nodenv $npm_package_directories_testnodenv",
"test": "PATH=$PWD/$npm_package_directories_testnodenv/bin:$PATH bats ${CI:+--tap} test",
"pretest": "[ -d $npm_package_config_testnodenv ] || git clone --quiet --depth 1 https://github.com/nodenv/nodenv $npm_package_config_testnodenv",
"test": "PATH=$PWD/$npm_package_config_testnodenv/bin:$PATH bats ${CI:+--tap} test",
"update:deps": "curl 'https://raw.githubusercontent.com/qzb/sh-semver/master/semver.sh' > deps/semver.sh",
"publish:brew": "brew-publish $npm_package_name v$npm_package_version",
"postversion": "git push --follow-tags && npm run publish:brew"
"postversion": "git push --follow-tags && npm run publish:brew",
"docker:test": "docker run -it --rm -v $PWD:/nodenv-nvmrc node:16 /bin/sh -c 'cd nodenv-nvmrc; npm install; npm run pretest; npm run test'"
},
"devDependencies": {
"bats": "^1.1.0",
Expand Down

0 comments on commit d2436b2

Please sign in to comment.