From a1ebe0730d08cb5bcac854c8b85308b075577484 Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 17 Oct 2024 11:37:07 -0700 Subject: [PATCH] fix build missing dist --- package.json | 2 +- utils/update-manifest-and-zip.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f4f85c8..d9d180d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mfa", - "version": "1.1.2", + "version": "1.1.3", "main": "sw.js", "scripts": { "build": "npm run build:deps && npm run convert-sw && npm run zip", diff --git a/utils/update-manifest-and-zip.js b/utils/update-manifest-and-zip.js index a8e4be9..bbc9cf1 100644 --- a/utils/update-manifest-and-zip.js +++ b/utils/update-manifest-and-zip.js @@ -38,6 +38,7 @@ function writeChromeManifest(originalManifest) { archive.pipe(output) archive.directory('./src', 'src') + archive.directory('./dist', 'dist') archive.directory('./icon', 'icon') archive.file(chromeManifestPath, { name: 'manifest.json' }) archive.directory('./_locales', '_locales') @@ -76,6 +77,7 @@ function writeEdgeManifest(originalManifest) { archive.pipe(output) archive.directory('./src', 'src') + archive.directory('./dist', 'dist') archive.directory('./icon', 'icon') archive.file(edgeManifestPath, { name: 'manifest.json' }) archive.directory('./_locales', '_locales') @@ -123,6 +125,7 @@ function writeFirefoxManifest(originalManifest) { archive.pipe(output) archive.directory('./src', 'src') + archive.directory('./dist', 'dist') archive.directory('./icon', 'icon') archive.file(firefoxManifestPath, { name: 'manifest.json' }) archive.directory('./_locales', '_locales')