fix: last small changes
This commit is contained in:
@@ -2,6 +2,7 @@ import { simpleGit } from 'simple-git';
|
|||||||
import * as fsPromises from 'fs/promises';
|
import * as fsPromises from 'fs/promises';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import { execFile } from 'node:child_process';
|
import { execFile } from 'node:child_process';
|
||||||
|
import type { GitScriptFileChange, GitScriptFileChangeStatus } from './ScriptEngine';
|
||||||
|
|
||||||
export interface GitAvailability {
|
export interface GitAvailability {
|
||||||
gitFound: boolean;
|
gitFound: boolean;
|
||||||
@@ -140,13 +141,7 @@ export interface GitPostFileChange {
|
|||||||
previousPath?: string;
|
previousPath?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GitScriptFileChangeStatus = 'added' | 'modified' | 'deleted' | 'renamed';
|
export type { GitScriptFileChange, GitScriptFileChangeStatus };
|
||||||
|
|
||||||
export interface GitScriptFileChange {
|
|
||||||
status: GitScriptFileChangeStatus;
|
|
||||||
path: string;
|
|
||||||
previousPath?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
type GitProvider = 'unknown' | 'github' | 'gitlab' | 'gitea-forgejo';
|
type GitProvider = 'unknown' | 'github' | 'gitlab' | 'gitea-forgejo';
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,12 @@ export default defineConfig({
|
|||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
chunkSizeWarningLimit: 8000,
|
chunkSizeWarningLimit: 8000,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
|
onLog(level, log, defaultHandler) {
|
||||||
|
if (log.message.includes('has been externalized for browser compatibility') && log.message.includes('pyodide')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
defaultHandler(level, log);
|
||||||
|
},
|
||||||
input: resolve(__dirname, 'src/renderer/index.html'),
|
input: resolve(__dirname, 'src/renderer/index.html'),
|
||||||
output: {
|
output: {
|
||||||
manualChunks(id) {
|
manualChunks(id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user