From 31b278fbd4776e7768b8157e3f32d4ec5942b982 Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Thu, 12 Feb 2026 18:37:55 +0100 Subject: [PATCH] Fix linting errors, fix test not creating bundle --- eslint.config.mjs | 2 ++ package.json | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 5704365..fa924e2 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -38,6 +38,8 @@ export default tseslint.config( 'dist-docs', 'packages/mp3-encoder/dist', 'packages/mp3-encoder/build', + 'packages/ac3/dist', + 'packages/ac3/build', 'eslint.config.mjs', 'docs/.vitepress/cache', 'test/public', diff --git a/package.json b/package.json index 599e156..f72131f 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,10 @@ "build": "./scripts/build.sh", "watch": "tsx scripts/bundle.ts --watch", "lint": "eslint .", - "test": "npx vitest --run", - "test-node": "npm run test node/", - "test-browser": "npm run test browser/", + "test": "npm run pre-test && npx vitest --run", + "test-node": "npm run pre-test && npm run test node/", + "test-browser": "npm run pre-test && npm run test browser/", + "pre-test": "tsx scripts/bundle.ts", "check": "./scripts/check.sh", "check-docblocks": "tsx scripts/check-docblocks.ts dist/mediabunny.d.ts", "docs:dev": "vitepress dev docs",