Skip to content

Commit

Permalink
Build: Remove package-lock step from build/prep-release.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Sep 13, 2024
1 parent 06424ba commit d37b877
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions build/prep-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,6 @@ const Repo = {

fs.writeFileSync(filePath, newSection + changes + oldContent);
}
{
const file = 'package-lock.json';
console.log(`Updating ${file}...`);
const filePath = path.join(__dirname, '..', file);
const json = fs.readFileSync(filePath, 'utf8');
const packageIndentation = json.match(/\n([\t\s]+)/)[1];
const data = JSON.parse(json);

data.version = data.packages[''].version = version;

fs.writeFileSync(
filePath,
JSON.stringify(data, null, packageIndentation) + '\n'
);
}
{
const file = 'AUTHORS.txt';
console.log(`Updating ${file}...`);
Expand Down

0 comments on commit d37b877

Please sign in to comment.