From f2edb070203960d8ddba637c2a84dc128333f523 Mon Sep 17 00:00:00 2001 From: cam Date: Tue, 25 Jun 2024 07:43:55 +1200 Subject: [PATCH 1/2] Use npx to run tsc package in makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ef17716..15c4836 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ build: install-packr install-typescript install-typescript: npm install typescript npm install rollup - tsc + npx tsc .PHONY: release release: install-packr install-typescript From 8aa987a2c7820df439f8ac5bff9b91e245d46b0f Mon Sep 17 00:00:00 2001 From: cam Date: Tue, 25 Jun 2024 08:14:54 +1200 Subject: [PATCH 2/2] Fix travis release --- .travis.yml | 3 +++ Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4ba7497..456c20e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,9 @@ language: go go: - "1.20.x" +before_install: + - npm install -g typescript + script: - go mod tidy - git diff --exit-code --quiet || (echo "Please run 'go mod tidy' to clean up the 'go.mod' and 'go.sum' files."; false) diff --git a/Makefile b/Makefile index 15c4836..e389ba5 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ install-typescript: npx tsc .PHONY: release -release: install-packr install-typescript +release: install-packr curl -sL https://git.io/goreleaser | bash .PHONY: clean