@woodsportal/hubspot-kit 1.0.41-dev.1 → 1.0.41-dev.2
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/dist/cli.js +8 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/scripts/audit-tdz-split.mjs +11 -5
- package/scripts/check-cdn-size-regression.mjs +49 -0
- package/scripts/check-hubspot-bundle-size.mjs +18 -4
- package/scripts/generate-cdn-bundle-breakdown.mjs +61 -0
- package/scripts/generate-cdn-manifest.mjs +23 -8
- package/scripts/portal-vite-env.mjs +76 -2
- package/scripts/publish-cdn-github.mjs +3 -0
- package/scripts/refresh-artifact-sizes.mjs +77 -0
- package/scripts/verify-cdn-api-endpoint.mjs +17 -10
- package/scripts/vite/create-dev-server-config.mjs +7 -1
- package/scripts/vite/portal-build-shared.js +62 -2
- package/src/dev-module-config/ui/module-config-overlay-side.ts +13 -3
- package/src/dev-module-config/ui/module-config-toolbar-theme.ts +12 -3
- package/vite/vite.config.cdn-app.mjs +41 -30
- package/vite/vite.config.cdn-audit.mjs +34 -0
- package/vite/vite.config.cdn-esm.mjs +1 -1
package/dist/cli.js
CHANGED
|
@@ -2343,6 +2343,7 @@ var FORBIDDEN_SHIP_TOKENS = [
|
|
|
2343
2343
|
"dev.module-config"
|
|
2344
2344
|
];
|
|
2345
2345
|
var FORBIDDEN_FIXTURE_MENU_TOKENS = ["User Home", "Primary Company Deals"];
|
|
2346
|
+
var FORBIDDEN_PREVIEW_FIXTURE_TOKENS = ["preview.editor@example.com", "CMS_EDITOR_PREVIEW"];
|
|
2346
2347
|
function hashFile(path) {
|
|
2347
2348
|
return createHash("sha256").update(readFileSync8(path)).digest("hex");
|
|
2348
2349
|
}
|
|
@@ -2376,13 +2377,18 @@ async function runAuditShipBundle(ctx) {
|
|
|
2376
2377
|
violations.push(`${file}: contains forbidden token "${token}"`);
|
|
2377
2378
|
}
|
|
2378
2379
|
}
|
|
2379
|
-
const
|
|
2380
|
-
if (
|
|
2380
|
+
const isCdnAppEntry = /[/\\]dist[/\\]cdn[/\\]app\..*\.js$/i.test(file);
|
|
2381
|
+
if (isCdnAppEntry) {
|
|
2381
2382
|
for (const token of FORBIDDEN_FIXTURE_MENU_TOKENS) {
|
|
2382
2383
|
if (content.includes(token)) {
|
|
2383
2384
|
violations.push(`${file}: contains fixture menu marker "${token}"`);
|
|
2384
2385
|
}
|
|
2385
2386
|
}
|
|
2387
|
+
for (const token of FORBIDDEN_PREVIEW_FIXTURE_TOKENS) {
|
|
2388
|
+
if (content.includes(token)) {
|
|
2389
|
+
violations.push(`${file}: contains preview fixture marker "${token}"`);
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2386
2392
|
}
|
|
2387
2393
|
}
|
|
2388
2394
|
}
|