fuzzyworld

when-am-i / commit

ci pasta

c871ddf5649b7700c4dfcc51abb91209fc73cc0b · Pavel Safronov · 2026-03-19 22:41:04 -0700 · parents faf0b564b110

ci pasta
 package-lock.json | 1 +
 package.json      | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/package-lock.json b/package-lock.json
index fc52996..b5678c8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7,6 +7,7 @@
         "": {
             "name": "what-year-is-it",
             "version": "0.1.0",
+            "hasInstallScript": true,
             "dependencies": {
                 "leaflet": "^1.9.4",
                 "react": "^18.0.0",
diff --git a/package.json b/package.json
index 033e560..964c286 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,9 @@
         "dev": "vite --open",
         "build": "vite build",
         "preview": "vite preview",
-        "gen:favicon": "npx sharp src/calendar.png -resize 64x64 public/favicon.png"
+        "gen:favicon": "npx sharp src/calendar.png -resize 64x64 public/favicon.png",
+        "copy:leaflet-icons": "cp node_modules/leaflet/dist/images/marker-icon.png public/ && cp node_modules/leaflet/dist/images/marker-icon-2x.png public/ && cp node_modules/leaflet/dist/images/marker-shadow.png public/",
+        "postinstall": "npm run copy:leaflet-icons"
     },
     "dependencies": {
         "react": "^18.0.0",