summaryrefslogtreecommitdiff
path: root/dev/build.js
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-11-04 18:45:57 +0900
committerDarius Jahandarie <djahandarie@gmail.com>2023-11-04 18:45:57 +0900
commitef79eab44bfd000792c610b968b5ceefd41e76a0 (patch)
tree48b04f30f6248caedbd880801aa49402a9e8066a /dev/build.js
parent376151096431d4362e4baaacf0cef4a534e169f7 (diff)
Modernize codebase
- Use ES modules - Remove vendored libs and build them from npm using esbuild - Switch from JSZip to zip.js
Diffstat (limited to 'dev/build.js')
-rw-r--r--dev/build.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/dev/build.js b/dev/build.js
index 3bfb5418..1e6ef1d0 100644
--- a/dev/build.js
+++ b/dev/build.js
@@ -26,6 +26,7 @@ const {getAllFiles, getArgs, testMain} = util;
const {ManifestUtil} = require('./manifest-util');
const Ajv = require('ajv');
const standaloneCode = require('ajv/dist/standalone').default;
+const buildLibs = require('./build-libs.js').buildLibs;
async function createZip(directory, excludeFiles, outputFileName, sevenZipExes, onUpdate, dryRun) {
try {
@@ -215,6 +216,7 @@ async function main(argv) {
const manifestPath = path.join(extDir, 'manifest.json');
try {
+ await buildLibs();
const variantNames = (
argv.length === 0 || args.get('all') ?
manifestUtil.getVariants().filter(({buildable}) => buildable !== false).map(({name}) => name) :