Comparing version 2.6.2 to 2.7.0
@@ -5,2 +5,9 @@ ### Changelog | ||
#### [2.7.0](https://github.com/doesdev/ngo/compare/2.6.2...2.7.0) | ||
> 21 June 2021 | ||
- Add `ngo-version` command | ||
- Update dependencies | ||
#### [2.6.2](https://github.com/doesdev/ngo/compare/2.6.1...2.6.2) | ||
@@ -7,0 +14,0 @@ |
#! /usr/bin/env node | ||
'use strict' | ||
const go = require('./index.js')({ update: true })() | ||
const semver = require('semver') | ||
const maybeVersion = process.argv.slice(2)[0] | ||
const version = semver.valid(maybeVersion) ? maybeVersion : undefined | ||
const go = require('./index.js')({ update: true, env: { version } })() | ||
if (go.stdout && go.stderr) { | ||
@@ -6,0 +10,0 @@ go.stdout.pipe(process.stdout) |
@@ -84,3 +84,3 @@ 'use strict' | ||
const gb = require('go-bin') | ||
const versionErr = () => new Error(`No matching version found`) | ||
const versionErr = () => new Error('No matching version found') | ||
@@ -87,0 +87,0 @@ return gv().then((versions) => { |
{ | ||
"name": "ngo", | ||
"version": "2.6.2", | ||
"version": "2.7.0", | ||
"description": "Run Go commands from Node or CLI, Go env not required", | ||
@@ -24,2 +24,3 @@ "engines": { | ||
"ngo-update": "cli-update.js", | ||
"ngo-version": "cli-update.js", | ||
"ngo-binary": "cli-binary.js" | ||
@@ -48,10 +49,11 @@ }, | ||
"dependencies": { | ||
"execa": "^4.0.0", | ||
"execa": "^5.1.1", | ||
"go-bin": "^1.4.0", | ||
"go-versions": "^1.3.2" | ||
"go-versions": "^1.3.2", | ||
"semver": "^7.3.5" | ||
}, | ||
"devDependencies": { | ||
"fs-extra": "^9.0.0", | ||
"mvt": "^4.1.0" | ||
"fs-extra": "^10.0.0", | ||
"mvt": "^4.1.1" | ||
} | ||
} |
@@ -35,5 +35,9 @@ # ngo [![NPM version](https://badge.fury.io/js/ngo.svg)](https://npmjs.org/package/ngo) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) [![Dependency Status](https://dependencyci.com/github/doesdev/ngo/badge)](https://dependencyci.com/github/doesdev/ngo) [![Build status](https://ci.appveyor.com/api/projects/status/0wutjytsl4hmha1j?svg=true)](https://ci.appveyor.com/project/doesdev/ngo) [![Build Status](https://travis-ci.org/doesdev/ngo.svg)](https://travis-ci.org/doesdev/ngo) | ||
# to set the `ngo` install of Go to a specific version (won't update system version) | ||
$ ngo-version 1.12.0 | ||
# go version go1.12.0 windows/amd64 | ||
# to run a `go get` installed binary use this bs | ||
$ ngo-binary golint test/fixtures/errors.go | ||
# test\fixtures\errors.go:13:5: error var unexp should have name of the form errFoo | ||
# test\fixtures\errors.go:13:5: error var unexp should have name of the form errFoo | ||
``` | ||
@@ -40,0 +44,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16116
103
101
4
+ Addedsemver@^7.3.5
+ Addedexeca@5.1.1(transitive)
+ Addedget-stream@6.0.1(transitive)
+ Addedhuman-signals@2.1.0(transitive)
+ Addedsemver@7.6.3(transitive)
- Removedexeca@4.1.0(transitive)
- Removedget-stream@5.2.0(transitive)
- Removedhuman-signals@1.1.1(transitive)
- Removedpump@3.0.2(transitive)
Updatedexeca@^5.1.1