Skip to content

Commit aa5e28c

Browse files
jycouetbenmccann
andauthored
Update with suggestion
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
1 parent 866d7ca commit aa5e28c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/package/src/typescript.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ export async function emit_dts(input, output, final_output, cwd, alias, files, t
3232
try {
3333
no_svelte_3 = !semver.intersects(svelte_dep, '^3.0.0');
3434
} catch (e) {
35-
if (e instanceof Error) {
36-
console.info(`Can't check svelte version ${svelte_dep}`, e.message);
37-
}
35+
if (!(e instanceof Error)) throw error;
36+
console.info(`Can't check svelte version ${svelte_dep}`, e.message);
3837
}
3938
await emitDts({
4039
libRoot: input,

0 commit comments

Comments
 (0)