Skip to content

Commit a953cbb

Browse files
authored
Merge pull request #1473 from cdrini/fix/version-scripts-node-24
Update JS syntax for node 24
2 parents 6dac99e + cbe56e2 commit a953cbb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/postversion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import fs from 'fs';
2-
import PACKAGE_JSON from '../package.json' assert { type: 'json' };
2+
import PACKAGE_JSON from '../package.json' with { type: 'json' };
33
const NEW_VERSION = PACKAGE_JSON.version;
44

55
const tag = `v${NEW_VERSION}`;

scripts/preversion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import PACKAGE_JSON from '../package.json' assert { type: 'json' };
1+
import PACKAGE_JSON from '../package.json' with { type: 'json' };
22

33
const OLD_VERSION = PACKAGE_JSON.version;
44
const OLD_RELEASE_URL = `https://api.github.com/repos/internetarchive/bookreader/releases/tags/v${OLD_VERSION}`;

scripts/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'fs';
22
import { execSync } from 'child_process';
3-
import PACKAGE_JSON from '../package.json' assert { type: 'json' };
3+
import PACKAGE_JSON from '../package.json' with { type: 'json' };
44
const NEW_VERSION = PACKAGE_JSON.version;
55

66
async function main() {

0 commit comments

Comments
 (0)