From e33c598acf4c0e6c5b01b517e8b9295930030e27 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 26 Jan 2026 11:33:32 -0500 Subject: [PATCH] Fix package.json postinstall script and remove duplicate - Use curl with -L flag for proper redirect handling - Remove duplicate scripts section - Clean up npm dependency management --- package.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index 46fce86..50a4d25 100644 --- a/package.json +++ b/package.json @@ -5,14 +5,11 @@ "scripts": { "build:css": "tailwindcss -i ./cmd/server/static/input.css -o ./cmd/server/static/style.css --watch", "build:css:prod": "tailwindcss -i ./cmd/server/static/input.css -o ./cmd/server/static/style.css --minify", - "postinstall": "mkdir -p cmd/server/static && curl -o cmd/server/static/htmx.min.js https://unpkg.com/htmx.org@1.9.10/dist/htmx.min.js" + "postinstall": "mkdir -p cmd/server/static && curl -L https://unpkg.com/htmx.org@1.9.10/dist/htmx.min.js -o cmd/server/static/htmx.min.js" }, "devDependencies": { "tailwindcss": "^3.4.0", "autoprefixer": "^10.4.0", "@tailwindcss/forms": "^0.5.7" - }, - "scripts": { - "postinstall": "mkdir -p cmd/server/static && npx htmx-org@1.9.10 dist/htmx.min.js -o cmd/server/static/htmx.min.js" } } \ No newline at end of file