diff --git a/scripts/postpack.js b/scripts/postpack.js index 848e25fe..6b0fc32e 100644 --- a/scripts/postpack.js +++ b/scripts/postpack.js @@ -6,6 +6,6 @@ const PACKAGE_PATH = 'package.json'; const PACKAGE_PATH_BACKUP = 'package.json-prepack'; -const fs = require('fs'); +import * as fs from "fs"; fs.renameSync(PACKAGE_PATH_BACKUP, PACKAGE_PATH); diff --git a/scripts/prepack.js b/scripts/prepack.js index 6c38375b..bd941f37 100644 --- a/scripts/prepack.js +++ b/scripts/prepack.js @@ -10,7 +10,7 @@ const PACKAGE_PATH = 'package.json'; const PACKAGE_PATH_BACKUP = 'package.json-prepack'; -const fs = require('fs'); +import * as fs from "fs"; const packageContent = JSON.parse(fs.readFileSync(PACKAGE_PATH)); diff --git a/scripts/publishAllPackages.js b/scripts/publishAllPackages.js index 06b395c3..6311abfa 100644 --- a/scripts/publishAllPackages.js +++ b/scripts/publishAllPackages.js @@ -4,9 +4,9 @@ * !!! This script is intended to only be run by the github workflow! !!! */ -const fs = require('fs'); -const path = require('path'); -const child_process = require('child_process'); +import * as fs from "fs"; +import * as path from "path"; +import * as child_process from "child_process"; const packages = fs.readdirSync('packages');