diff --git a/package.json b/package.json index 5aa6bbcc92d..fe51392b6e5 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --coverage", "test.analysis": "cd test && npm run analysis.build-and-analyze", "test.bundlers": "cd test && npm run bundlers", - "test.dist": "npx scripts/index.ts --validate-build", + "test.dist": "tsx scripts/index.ts --validate-build", "test.end-to-end": "cd test/end-to-end && npm ci && npm test && npm run test.dist", "test.jest": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js", "test.karma": "cd test/karma && npm ci && npm run karma", diff --git a/scripts/index.ts b/scripts/index.ts index efb8ffb13f6..16fdf493ad8 100644 --- a/scripts/index.ts +++ b/scripts/index.ts @@ -3,6 +3,6 @@ import { join } from 'path'; import * as build from './build'; // This path is relative to the final location of the compiled script, not its TypeScript source -const stencilProjectRoot = join(__dirname, '..', '..'); +const stencilProjectRoot = join(__dirname, '..'); const args = process.argv.slice(2); build.run(stencilProjectRoot, args);