@tokenoftrust/cli 2.2.5 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/validate.mjs +9 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"description": "Token of Trust developer CLI — clone a tenant store, run it locally with save→reload, and submit it for preview. Installs the `tot` command.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Token of Trust",
|
package/src/validate.mjs
CHANGED
|
@@ -665,11 +665,15 @@ export const LARGE_PUBLIC_ASSET_IDEA_ID = "fb-1790956035713-snpovm";
|
|
|
665
665
|
export const LARGE_PUBLIC_ASSET_FIX =
|
|
666
666
|
`storing it under public/ will work, but every publish re-copies it into R2 and ` +
|
|
667
667
|
`your Gitea repo keeps it forever — on a tenant with many of these, expect ` +
|
|
668
|
-
`slower publishes and slower clones over time.
|
|
669
|
-
`
|
|
670
|
-
`
|
|
671
|
-
`
|
|
672
|
-
`
|
|
668
|
+
`slower publishes and slower clones over time. If this is an image, you don't ` +
|
|
669
|
+
`need to do anything extra: reference its public URL directly in your <img>/ ` +
|
|
670
|
+
`background-image/srcset and our capture step pulls it into CDN storage ` +
|
|
671
|
+
`automatically on publish. For a PDF or other non-image file, that auto-capture ` +
|
|
672
|
+
`doesn't apply yet — linking straight to an external URL avoids the repo-size ` +
|
|
673
|
+
`problem entirely, or send us the URL and we'll pull it in manually. We're ` +
|
|
674
|
+
`tracking a built-in fix to auto-relocate large files of any type the same way ` +
|
|
675
|
+
`images already work (idea ${LARGE_PUBLIC_ASSET_IDEA_ID}) — vote for it if ` +
|
|
676
|
+
`you'd like this handled for you sooner.`;
|
|
673
677
|
|
|
674
678
|
/**
|
|
675
679
|
* The advisory rules LOUD enough to call out by NAME at `tot validate` / `tot
|