Skip to content

Commit d37b877

Browse files
committed
Build: Remove package-lock step from build/prep-release.js
Follows-up 06424ba. Ref https://timotijhof.net/posts/2024/lockfiles-for-apps-not-packages-still/
1 parent 06424ba commit d37b877

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

build/prep-release.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,6 @@ const Repo = {
125125

126126
fs.writeFileSync(filePath, newSection + changes + oldContent);
127127
}
128-
{
129-
const file = 'package-lock.json';
130-
console.log(`Updating ${file}...`);
131-
const filePath = path.join(__dirname, '..', file);
132-
const json = fs.readFileSync(filePath, 'utf8');
133-
const packageIndentation = json.match(/\n([\t\s]+)/)[1];
134-
const data = JSON.parse(json);
135-
136-
data.version = data.packages[''].version = version;
137-
138-
fs.writeFileSync(
139-
filePath,
140-
JSON.stringify(data, null, packageIndentation) + '\n'
141-
);
142-
}
143128
{
144129
const file = 'AUTHORS.txt';
145130
console.log(`Updating ${file}...`);

0 commit comments

Comments
 (0)