From 99c15b211a98671721ed5a1f53d508bb3dfec7c5 Mon Sep 17 00:00:00 2001 From: hlaunay Date: Mon, 20 Nov 2023 16:27:30 +0100 Subject: [PATCH] Add pointer to import-map-storage-helper --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f7fb21d..588942f 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ These two steps are often performed during a CI process, to automate deployments import-map-deployer demo +💡 JavaScript files uploaded to a CDN can be cleaned using [import-map-storage-helper](https://github.com/dolmen-tech/import-map-storage-helper). + ## Why does this exist? The alternative to the import-map-deployer is to pull down the import map file, modify it, and reupload it during your CI process. That alternative has one problem: it doesn't properly handle concurrency. If two deployments occur in separate CI pipelines at the same time, it is possible they pull down the import map at the same time, modify it, and reupload. In that case, there is a race condition where the "last reupload wins," overwriting the deployment that the first reupload did.