Skip to content

Commit 437637e

Browse files
committed
chore: restore script
1 parent 6cec554 commit 437637e

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

scripts/update-otel-deps.js

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -331,32 +331,12 @@ function updateNpmWorkspacesDeps({patterns, allowRangeBumpFor0x, dryRun}) {
331331
);
332332
}
333333

334-
function removePrecompile() {
335-
const dirs = getAllWorkspaceDirs();
336-
337-
dirs.forEach(d => {
338-
const pkgPath = path.join(d, 'package.json');
339-
const pkgText = fs.readFileSync(pkgPath, 'utf-8');
340-
const pkgLines = pkgText.split('\n');
341-
342-
const removeIndex = pkgLines.findIndex(l => l.indexOf('"precompile":') !== -1)
343-
const shouldRemove = removeIndex !== -1;
344-
345-
console.log(d, removeIndex)
346-
if (shouldRemove) {
347-
pkgLines.splice(removeIndex, 1);
348-
fs.writeFileSync(pkgPath, pkgLines.join('\n'), 'utf-8');
349-
}
350-
});
351-
}
352-
353334
async function main() {
354-
// updateNpmWorkspacesDeps({
355-
// patterns: ['@opentelemetry/*'],
356-
// allowRangeBumpFor0x: true,
357-
// dryRun: false,
358-
// });
359-
removePrecompile();
335+
updateNpmWorkspacesDeps({
336+
patterns: ['@opentelemetry/*'],
337+
allowRangeBumpFor0x: true,
338+
dryRun: false,
339+
});
360340
}
361341

362342
main();

0 commit comments

Comments
 (0)