Merge pull request #3 from quinyx-tjeerd/master

Fix readme, fix package name and example for windows extension
This commit is contained in:
Guido Zuidhof
2022-03-29 00:03:24 +02:00
committed by GitHub

View File

@@ -4,7 +4,7 @@
* Support for zip and non-compressed binaries. * Support for zip and non-compressed binaries.
* Added support for `arm64` architecture. * Added support for `arm64` architecture.
* Fix for use on Windows platform (the binary would get placed in the wrong place for consumers). * Fix for use on Windows platform (the binary would get placed in the wrong place for consumers).
* Shipped as a bundle using `esbuild`, removing 70 packages of dependencies (including huge things like Babel). Now your users will only have to download one additional package (`@guidhof/go-npm`). * Shipped as a bundle using `esbuild`, removing 70 packages of dependencies (including huge things like Babel). Now your users will only have to download one additional package (`@gzuidhof/go-npm`).
### Distribute cross-platform Go binaries via NPM ### Distribute cross-platform Go binaries via NPM
@@ -53,7 +53,7 @@ Answer the questions to create an initial package.json file
From the directory containing package.json file, do From the directory containing package.json file, do
`$ npm install go-npm --save` `$ npm install @gzuidhof/go-npm --save`
This will install go-npm under to your package.json file. It will also create a `node_modules` directory where the `go-npm` package is downloaded. You don't need this directory since you are only going to publish the module and not consume it yourself. Let's go ahead and delete it. This will install go-npm under to your package.json file. It will also create a `node_modules` directory where the `go-npm` package is downloaded. You don't need this directory since you are only going to publish the module and not consume it yourself. Let's go ahead and delete it.