← back to Designer Wallcoverings
rename inventory sweep to .mjs to silence MODULE_TYPELESS_PACKAGE_JSON warning
43eef3c83ff6b4d8180e618b09b94dc77ba4ccb0 · 2026-06-21 18:23:21 -0700 · Steve
ESM file in a no-type package.json dir logged a reparse warning each slot.
.mjs makes the module type explicit; updated the wrapper reference.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Files touched
M shopify/scripts/cadence/run-cadence-hourly.shR100 shopify/scripts/inventory-set-2026-newest.js shopify/scripts/inventory-set-2026-newest.mjs
Diff
commit 43eef3c83ff6b4d8180e618b09b94dc77ba4ccb0
Author: Steve <steve@designerwallcoverings.com>
Date: Sun Jun 21 18:23:21 2026 -0700
rename inventory sweep to .mjs to silence MODULE_TYPELESS_PACKAGE_JSON warning
ESM file in a no-type package.json dir logged a reparse warning each slot.
.mjs makes the module type explicit; updated the wrapper reference.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---
shopify/scripts/cadence/run-cadence-hourly.sh | 2 +-
.../{inventory-set-2026-newest.js => inventory-set-2026-newest.mjs} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/shopify/scripts/cadence/run-cadence-hourly.sh b/shopify/scripts/cadence/run-cadence-hourly.sh
index e5450792..6720821c 100755
--- a/shopify/scripts/cadence/run-cadence-hourly.sh
+++ b/shopify/scripts/cadence/run-cadence-hourly.sh
@@ -85,6 +85,6 @@ fi
# first full pass it only touches the slot's new SKUs. Non-fatal — a failure never aborts the run.
# SHOPIFY_ADMIN_TOKEN is already exported above; the script prefers it over the repo .env.
echo "── inventory sweep: newest 1000 → both variants on_hand=2026 ──"
-node "$SHOP/scripts/inventory-set-2026-newest.js" --n 1000 || echo "inventory sweep failed (non-fatal)"
+node "$SHOP/scripts/inventory-set-2026-newest.mjs" --n 1000 || echo "inventory sweep failed (non-fatal)"
echo "═══════ done $TS ═══════"
diff --git a/shopify/scripts/inventory-set-2026-newest.js b/shopify/scripts/inventory-set-2026-newest.mjs
similarity index 100%
rename from shopify/scripts/inventory-set-2026-newest.js
rename to shopify/scripts/inventory-set-2026-newest.mjs
← 050da830 PDP: replace native variant dropdown with side-by-side name-
·
back to Designer Wallcoverings
·
Add dev-theme push script for variant-button UX (targets dev 7cf36ba5 →