Skip to content

Commit 312c0fe

Browse files
committed
Fix broken tsc test
1 parent a373b09 commit 312c0fe

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import type { Context } from 'js-slang';
2+
3+
declare const ctx: Context;
4+
export default ctx;

lib/buildtools/src/__test_mocks__/bundles/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"noImplicitAny": false,
3333
"verbatimModuleSyntax": true,
3434
"paths": {
35-
"js-slang/context": ["../../../../modules-lib/src/types/js-slang/context.d.ts"]
35+
"js-slang/context": ["./context.d.ts"]
3636
},
3737
"ignoreDeprecations": "5.0"
3838
},

lib/buildtools/src/prebuild/tsc.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ export const {
130130
};
131131
}
132132
}, tscResult => {
133-
const inputType = 'entryPoint' in tscResult.input ? 'tab' : 'bundle';
134-
const prefix = `${chalk.blueBright(`[${inputType} ${tscResult.input.name}]`)}: ${chalk.cyanBright('tsc completed')}`;
133+
const prefix = `${chalk.blueBright(`[${tscResult.input.type} ${tscResult.input.name}]`)}: ${chalk.cyanBright('tsc completed')}`;
135134
if (tscResult.severity === 'error' && 'error' in tscResult) {
136135
return `${prefix} ${chalk.cyanBright('with')} ${chalk.redBright('errors')}: ${tscResult.error}`;
137136
}

0 commit comments

Comments
 (0)