From 6f248183b03a66a2c1e1311a46302b12983c6cd5 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Tue, 30 Jul 2024 23:09:44 +0100 Subject: [PATCH] Build: Re-enalbe demos/bundlers in npm `run test-demos` --- demos/bundlers.mjs | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/bundlers.mjs b/demos/bundlers.mjs index 787206542..ff90414eb 100644 --- a/demos/bundlers.mjs +++ b/demos/bundlers.mjs @@ -7,7 +7,7 @@ const dirname = path.dirname(url.fileURLToPath(import.meta.url)); const DIR = path.join(dirname, 'bundlers'); // Prepare -// cp.execSync('npm install --no-audit --update-notifier=false', { cwd: DIR, encoding: 'utf8' }); +cp.execSync('npm install --no-audit --update-notifier=false', { cwd: DIR, encoding: 'utf8' }); await import('./bundlers/build.mjs'); const tmpJsFiles = fs.readdirSync(path.join(DIR, 'tmp')) diff --git a/package.json b/package.json index 4afbd3dfd..60ebc14cf 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "test-cli": "node bin/qunit.js test/main/ test/cli/*.js", "test": "npm run lint && npm run build && npm run test-main && npm run test-cli", "test-nolint": "npm run build && npm run test-main && npm run test-cli", - "test-demos": "npm run build && node bin/qunit.js demos/*.js", + "test-demos": "npm run build && node bin/qunit.js demos/*.{mjs,js}", "browserstack": "browserstack-runner -v", "authors": "(echo 'Authors ordered by first contribution\n' && git log --format='%aN <%aE>' --no-merges --reverse | awk '!seen[$0]++') | tee AUTHORS.txt", "coverage": "npm run build-coverage && npm run coverage-cli && npm run coverage-main && nyc report",