some minor changes for releasing the extension and revert failed publish PR #1123 (#1132)

* improve extension bundle

* Revert "Version Packages (alpha) (#1123)"

This reverts commit 39f8c24f1d.
This commit is contained in:
Yun Feng
2023-02-15 09:32:43 +11:00
committed by GitHub
parent 28111c14b1
commit 033d2d18b4
20 changed files with 56 additions and 199 deletions

View File

@@ -5,7 +5,7 @@ import {
PluginOption,
} from 'vite';
import webExtension, { readJsonFile } from 'vite-plugin-web-extension';
import zip from 'vite-plugin-zip';
import zip from 'vite-plugin-zip-pack';
import * as path from 'path';
import type { PackageJson } from 'type-fest';
import react from '@vitejs/plugin-react';
@@ -94,8 +94,9 @@ export default defineConfig({
),
process.env.ZIP === 'true' &&
zip({
dir: 'dist',
outputName: process.env.TARGET_BROWSER,
inDir: `dist/${process.env.TARGET_BROWSER || 'chrome'}`,
outDir: 'dist',
outFileName: `${process.env.TARGET_BROWSER || 'chrome'}.zip`,
}),
],
resolve: {