Skip to content

Commit b6c970c

Browse files
committed
fix(scripts): update script paths in cover.mjs
Fix rootPath calculation and update build/filter script references for reorganized structure.
1 parent 6323a8a commit b6c970c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/test/cover.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { runCommandQuiet } from '../utils/run-command.mjs'
1616
const logger = getDefaultLogger()
1717

1818
const __dirname = path.dirname(fileURLToPath(import.meta.url))
19-
const rootPath = path.join(__dirname, '..')
19+
const rootPath = path.join(__dirname, '..', '..')
2020

2121
// Parse custom flags
2222
const { values } = parseArgs({
@@ -33,7 +33,7 @@ console.log('')
3333

3434
// Rebuild with source maps enabled for coverage
3535
logger.info('Building with source maps for coverage...')
36-
const buildResult = await spawn('node', ['scripts/build.mjs'], {
36+
const buildResult = await spawn('node', ['scripts/build/main.mjs'], {
3737
cwd: rootPath,
3838
stdio: 'inherit',
3939
env: {
@@ -227,7 +227,7 @@ try {
227227
try {
228228
const filterResult = await spawn(
229229
'node',
230-
['scripts/filter-coverage.mjs'],
230+
['scripts/test/filter.mjs'],
231231
{
232232
cwd: rootPath,
233233
stdio: 'inherit',

0 commit comments

Comments
 (0)