From 8e33bde413916fee58c127ece96f250175a8ecef Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Mon, 10 Feb 2020 15:43:28 +0000 Subject: [PATCH] move cmd/node-prune to root --- History.md | 0 Readme.md | 4 ++-- prune.go => internal/prune/prune.go | 0 cmd/node-prune/main.go => main.go | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 History.md rename prune.go => internal/prune/prune.go (100%) rename cmd/node-prune/main.go => main.go (95%) diff --git a/History.md b/History.md new file mode 100644 index 0000000..e69de29 diff --git a/Readme.md b/Readme.md index a79a855..7e809e0 100644 --- a/Readme.md +++ b/Readme.md @@ -9,13 +9,13 @@ node-prune is a small tool to prune unnecessary files from ./node_modules, such From [gobinaries.com](https://gobinaries.com): ```sh -$ curl -sf https://gobinaries.com/tj/node-prune/cmd/node-prune | sh +$ curl -sf https://gobinaries.com/tj/node-prune | sh ``` From source: ``` -$ go get github.com/tj/node-prune/cmd/node-prune +$ go get github.com/tj/node-prune ``` ## Usage diff --git a/prune.go b/internal/prune/prune.go similarity index 100% rename from prune.go rename to internal/prune/prune.go diff --git a/cmd/node-prune/main.go b/main.go similarity index 95% rename from cmd/node-prune/main.go rename to main.go index fa9f18b..12582e3 100644 --- a/cmd/node-prune/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "github.com/apex/log/handlers/cli" "github.com/dustin/go-humanize" - "github.com/tj/node-prune" + "github.com/tj/node-prune/internal/prune" ) func init() {