Skip to content

Commit

Permalink
Use the monorepo-tsc rather than an assumed-globbaly-installed tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Nov 1, 2023
1 parent c7427e3 commit aefe74a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bin/run-types-tests.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ async function main() {
for (const pkg of packages) {
try {
console.log(`# Smoke testing ${pkg.name}`);
await execa('tsc', ['-p', resolve(root, 'tsconfig.dist.json')], {
cwd: resolve(pkg.path, 'dist'),
preferLocal: true,
});
await execa(
resolve(root, 'node_modules/.bin/tsc'),
['-p', resolve(root, 'tsconfig.dist.json')],
{
cwd: resolve(pkg.path, 'dist'),
preferLocal: true,
}
);
console.log(`ok ${testNo++} - ${pkg.name} types passed`);
} catch (err) {
let message = getMessage(err);
Expand Down

0 comments on commit aefe74a

Please sign in to comment.