Skip to content

Commit d01f243

Browse files
committed
fix: check 'latest' version
1 parent 6d03029 commit d01f243

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ const onLoad = async (targetDir, version, argv) => {
9797
}
9898
lang = langChoice || "";
9999
}
100-
const isJqueryIncluded = compareVersions(version.toString(), "8.0.0"); // jQuery removed in >= v8
100+
const isJqueryIncluded =
101+
version !== "latest" && compareVersions(version.toString(), "8.0.0"); // jQuery removed in >= v8
101102
let removeJqueryFlag = false;
102103
if (isJqueryIncluded) {
103104
let { removeJquery } = await prompts({

0 commit comments

Comments
 (0)