diff --git a/library/scripts/posters/verify-posters.mjs b/library/scripts/posters/verify-posters.mjs index f0ade270b..b9e15eadc 100644 --- a/library/scripts/posters/verify-posters.mjs +++ b/library/scripts/posters/verify-posters.mjs @@ -32,7 +32,7 @@ import { resolve as _resolvePath, dirname as _dirnamePath } from 'node:path' const __dirname = dirname(fileURLToPath(import.meta.url)); const DIR = process.env.POSTER_DIR || join(__dirname, 'out', 'posters'); const PREFIX = process.argv[2] || ''; -const ROOT = _resolvePath(_dirnamePath(_fileURLToPath(import.meta.url)), '../../..') +const ROOT = _resolvePath(_dirnamePath(fileURLToPath(import.meta.url)), '../../..') // ★ MEASURE THIS BUILD, OR MEASURE NOTHING. Several worktrees run on one machine and a default port // belongs to whichever server started first — measured 2026-09-24 on :4173, where browser gates diff --git a/plugin-designs/research-map-plus-grid/scripts/check-no-free-identifiers.mjs b/plugin-designs/research-map-plus-grid/scripts/check-no-free-identifiers.mjs index f660282c2..6d95926e3 100644 --- a/plugin-designs/research-map-plus-grid/scripts/check-no-free-identifiers.mjs +++ b/plugin-designs/research-map-plus-grid/scripts/check-no-free-identifiers.mjs @@ -38,7 +38,10 @@ import * as acorn from 'acorn' const TAG = 'NO-FREE-IDENTIFIERS' const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..', '..', '..') -const ROOTS = ['plugin-designs', 'library'] +// internal/ too, and .mjs files (below): 30 browser gates gained `const ROOT = …(_fileURLToPath(…))` in one +// commit, and the two that never imported it crashed on load for four days, because they run only by hand. +// A free identifier at module scope is the same defect in a Node script as in an SFC. +const ROOTS = ['plugin-designs', 'library', 'internal'] // Vue's