Skip to content

Commit 5b2ef44

Browse files
committed
Merge remote-tracking branch 'origin/fix/dead-exports-hook-esm' into fix/dead-exports-hook-esm
2 parents 0373a79 + df6b204 commit 5b2ef44

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.claude/hooks/check-dead-exports.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ fi
6767
DEAD_EXPORTS=$(node --input-type=module -e "
6868
import fs from 'node:fs';
6969
import path from 'node:path';
70+
import { pathToFileURL } from 'node:url';
7071
const root = process.argv[2];
7172
const files = process.argv[3].split('\n').filter(Boolean);
7273
73-
const { pathToFileURL } = await import('node:url');
7474
const fileUrl = pathToFileURL(path.join(root, 'src/queries.js')).href;
7575
const { exportsData } = await import(fileUrl);
7676

docs/examples/claude-code-hooks/check-dead-exports.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ fi
6767
DEAD_EXPORTS=$(node --input-type=module -e "
6868
import fs from 'node:fs';
6969
import path from 'node:path';
70+
import { pathToFileURL } from 'node:url';
7071
const root = process.argv[2];
7172
const files = process.argv[3].split('\n').filter(Boolean);
7273
73-
const { pathToFileURL } = await import('node:url');
7474
const fileUrl = pathToFileURL(path.join(root, 'src/queries.js')).href;
7575
const { exportsData } = await import(fileUrl);
7676

0 commit comments

Comments
 (0)