Skip to content

Commit 5bd57b9

Browse files
committed
cleanup
1 parent 591ee4a commit 5bd57b9

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

buildutils/src/upgrade-lab-dependencies.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ function getVersionRange(version: IVersion): string {
6161
function updateVersionInFile(
6262
filePath: string,
6363
pattern: RegExp,
64-
version: IVersion,
65-
isGlobal = false
64+
version: IVersion
6665
): void {
6766
const content = fs.readFileSync(filePath, 'utf-8');
6867
const versionRange = getVersionRange(version);
@@ -150,21 +149,6 @@ async function updatePreCommitConfig(version: IVersion): Promise<void> {
150149
updateVersionInFile(filePath, pattern, version);
151150
}
152151

153-
// async function updateWorkflowFiles(version: IVersion): Promise<void> {
154-
// const workflowDir = path.resolve('.github', 'workflows');
155-
// const files = fs.readdirSync(workflowDir);
156-
// const pattern = /(jupyterlab)(?:>=|==)[\d.]+(?:,<[\d.]+)?(?="|,|\s|$)/g;
157-
158-
// for (const file of files) {
159-
// const filePath = path.join(workflowDir, file);
160-
// const content = fs.readFileSync(filePath, 'utf-8');
161-
162-
// if (content.includes('jupyterlab>=')) {
163-
// updateVersionInFile(filePath, pattern, version, true);
164-
// }
165-
// }
166-
// }
167-
168152
async function upgradeLabDependencies(): Promise<void> {
169153
const args: string[] = process.argv.slice(2);
170154

@@ -177,7 +161,6 @@ async function upgradeLabDependencies(): Promise<void> {
177161
await updatePackageJson(args[1]); // Keep original string version for package.json
178162
await updatePyprojectToml(version);
179163
await updatePreCommitConfig(version);
180-
// await updateWorkflowFiles(version);
181164
}
182165

183166
upgradeLabDependencies();

0 commit comments

Comments
 (0)