tools: fix argv bug in find-inactive-tsc.mjs

The argument supplied is expected to be text, not numeric.

This wasn't causing issues with the automated job because it does not
send an argument. It uses the default.

PR-URL: https://github.com/nodejs/node/pull/41394
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
This commit is contained in:
Rich Trott authored and Danielle Adams committed 2022-01-31 23:54:46 -05:00
1 parent c49a651e67
commit 2bc381ee55
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ import fs from 'node:fs';
import path from 'node:path';
import readline from 'node:readline';
const SINCE = +process.argv[2] || '3 months ago';
const SINCE = process.argv[2] || '3 months ago';
async function runGitCommand(cmd, options = {}) {
const childProcess = cp.spawn('/bin/sh', ['-c', cmd], {