diff --git a/buildutils/src/upgrade-lab-dependencies.ts b/buildutils/src/upgrade-lab-dependencies.ts index cfd878ab33..b15fbc6804 100644 --- a/buildutils/src/upgrade-lab-dependencies.ts +++ b/buildutils/src/upgrade-lab-dependencies.ts @@ -61,8 +61,7 @@ function getVersionRange(version: IVersion): string { function updateVersionInFile( filePath: string, pattern: RegExp, - version: IVersion, - isGlobal = false + version: IVersion ): void { const content = fs.readFileSync(filePath, 'utf-8'); const versionRange = getVersionRange(version); @@ -150,21 +149,6 @@ async function updatePreCommitConfig(version: IVersion): Promise { updateVersionInFile(filePath, pattern, version); } -// async function updateWorkflowFiles(version: IVersion): Promise { -// const workflowDir = path.resolve('.github', 'workflows'); -// const files = fs.readdirSync(workflowDir); -// const pattern = /(jupyterlab)(?:>=|==)[\d.]+(?:,<[\d.]+)?(?="|,|\s|$)/g; - -// for (const file of files) { -// const filePath = path.join(workflowDir, file); -// const content = fs.readFileSync(filePath, 'utf-8'); - -// if (content.includes('jupyterlab>=')) { -// updateVersionInFile(filePath, pattern, version, true); -// } -// } -// } - async function upgradeLabDependencies(): Promise { const args: string[] = process.argv.slice(2); @@ -177,7 +161,6 @@ async function upgradeLabDependencies(): Promise { await updatePackageJson(args[1]); // Keep original string version for package.json await updatePyprojectToml(version); await updatePreCommitConfig(version); - // await updateWorkflowFiles(version); } upgradeLabDependencies();