Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 05abc06

Browse files
authored
feat: set scarfSettings.allowTopLevel to track modus-cli install through curl (#603)
1 parent bacad69 commit 05abc06

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cli/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,8 @@
8484
"additionalVersionFlags": [
8585
"-v"
8686
]
87+
},
88+
"scarfSettings": {
89+
"allowTopLevel": true
8790
}
8891
}

cli/src/commands/new/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ export default class NewCommand extends BaseCommand {
171171
const arch = os.arch();
172172
const nodeVersion = process.version;
173173

174-
await http.get(`https://${SCARF_ENDPOINT}.scarf.sh/${version}/${platform}/${arch}/${nodeVersion}/${sdk}/${sdkVersion}`);
174+
const variables: string[] = [version.toLowerCase(), platform.toLowerCase(), arch.toLowerCase(), nodeVersion.toLowerCase(), sdk.toLowerCase(), sdkVersion.toLowerCase()];
175+
176+
await http.get(`https://${SCARF_ENDPOINT}.scarf.sh/${variables.join("/")}`);
175177
}
176178
} catch (_error) {
177179
// Fail silently if an error occurs during the analytics call

0 commit comments

Comments
 (0)