Skip to content

Commit 8187698

Browse files
fhammerschmidtcknitt
authored andcommitted
Add ts-check and fix a small bug
1 parent 7dcbd2f commit 8187698

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env node
2+
// @ts-check
23

34
import * as p from "@clack/prompts";
45
import path from "path";
@@ -120,9 +121,9 @@ https://www.rescript-lang.org\n\nCreate a new ReScript 11 project with modern de
120121
});
121122
checkCancel(templateName);
122123

123-
try {
124-
const s = p.spinner();
124+
const s = p.spinner();
125125

126+
try {
126127
s.start("Loading available versions...");
127128
const [rescriptVersions, rescriptCoreVersions] = await Promise.all([
128129
getPackageVersions("rescript", rescriptVersionRange),

0 commit comments

Comments
 (0)