From 3c2444c2d27d65bb679bcbef18f9561fcb383f19 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Mon, 20 Oct 2025 23:35:48 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Fix=20PWA=20manifest=20404=20in?= =?UTF-8?q?=20NPM=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The PWA files (manifest.json, icons, service-worker.js) were not being included in the published NPM package, causing 404 errors. ## Changes - Updated Makefile build-static target to copy public/ contents to dist/ - Added dist/**/*.json and dist/**/*.png to package.json files field ## Testing Verified with `npm pack --dry-run` that PWA files are now included: - dist/manifest.json (790B) - dist/icon-192.png (7.8kB) - dist/icon-512.png (24.0kB) - dist/service-worker.js (1.3kB) _Generated with `cmux`_ --- Makefile | 1 + package.json | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Makefile b/Makefile index ebe9cbb23..3a217d5ba 100644 --- a/Makefile +++ b/Makefile @@ -106,6 +106,7 @@ build-static: ## Copy static assets to dist @echo "Copying static assets..." @mkdir -p dist @cp static/splash.html dist/splash.html + @cp -r public/* dist/ # Always regenerate version file (marked as .PHONY above) version: ## Generate version file diff --git a/package.json b/package.json index 574954648..cadb9bba3 100644 --- a/package.json +++ b/package.json @@ -141,6 +141,8 @@ "dist/**/*.wasm", "dist/**/*.html", "dist/**/*.css", + "dist/**/*.json", + "dist/**/*.png", "dist/assets/**/*", "README.md", "LICENSE"