This commit is contained in:
Oleksii Bulenok
2026-09-01 19:14:14 +02:00
parent 46e432bde5
commit e8ad1e91ce
2 changed files with 7 additions and 4 deletions
@@ -192,7 +192,10 @@ describe('cache invalidation across a lexicon regen', () => {
'lexicons/app/bsky/feed/like.ts',
`export * as main from './like/main'\n`,
)
write('lexicons/app/bsky/feed/like/main.ts', `export const $type = 'test'\n`)
write(
'lexicons/app/bsky/feed/like/main.ts',
`export const $type = 'test'\n`,
)
const bumped = new Date(Date.now() + 10_000)
fs.utimesSync(path.join(lexRoot, 'index.ts'), bumped, bumped)
@@ -282,9 +282,9 @@ module.exports = function lexiconLeafImports(babel, options = {}) {
if (!stmt.isImportDeclaration()) continue
if (stmt.node.importKind === 'type') continue
/*
* A specifier-less import exists only for module evaluation; there is
* nothing to rewrite, so leave it untouched.
*/
* A specifier-less import exists only for module evaluation; there is
* nothing to rewrite, so leave it untouched.
*/
if (stmt.node.specifiers.length === 0) continue
const dir = barrelDirFor(stmt.node.source.value, filename)