mirror of
https://github.com/colanode/colanode.git
synced 2025-12-28 16:06:37 +01:00
Improve forge config ignore property
This commit is contained in:
@@ -15,36 +15,29 @@ const config: ForgeConfig = {
|
||||
appBundleId: 'com.colanode.desktop',
|
||||
...(process.platform === 'win32' && {
|
||||
certificateFile: process.env.CERTIFICATE_PATH,
|
||||
certificatePassword: process.env.CERTIFICATE_PASSWORD
|
||||
certificatePassword: process.env.CERTIFICATE_PASSWORD,
|
||||
}),
|
||||
asar: true,
|
||||
ignore: [
|
||||
/^\/src/,
|
||||
/^\/test/,
|
||||
/^\/tools/,
|
||||
/^\/release/,
|
||||
/^\/docs/,
|
||||
/^\/dist/,
|
||||
/^\/assets/,
|
||||
/\.git/,
|
||||
/\.vscode/,
|
||||
/\.idea/,
|
||||
/^\/\.env/,
|
||||
// Config files
|
||||
/\.eslintrc\.json$/,
|
||||
/components\.json$/,
|
||||
/postcss\.config\.js$/,
|
||||
/tailwind\.config\.js$/,
|
||||
/tsconfig\.json$/,
|
||||
/forge\.config\.ts$/,
|
||||
/forge\.env\.d\.ts$/,
|
||||
/vite\.base\.config\.ts$/,
|
||||
/vite\.main\.config\.ts$/,
|
||||
/vite\.renderer\.config\.ts$/,
|
||||
/vite\.preload\.config\.ts$/,
|
||||
// Don't ignore node_modules
|
||||
// /^\/node_modules/,
|
||||
],
|
||||
prune: true,
|
||||
ignore: (path) => {
|
||||
if (!path) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (path === '/package.json') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (path.startsWith('/node_modules')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (path.startsWith('/.vite')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
extraResource: ['assets'],
|
||||
},
|
||||
rebuildConfig: {},
|
||||
@@ -53,8 +46,8 @@ const config: ForgeConfig = {
|
||||
name: 'Colanode',
|
||||
...(process.platform === 'win32' && {
|
||||
certificateFile: process.env.CERTIFICATE_PATH,
|
||||
certificatePassword: process.env.CERTIFICATE_PASSWORD
|
||||
})
|
||||
certificatePassword: process.env.CERTIFICATE_PASSWORD,
|
||||
}),
|
||||
}),
|
||||
new MakerDMG({
|
||||
name: 'Colanode',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { databaseService } from '../data/database-service';
|
||||
import { databaseService } from '@/main/data/database-service';
|
||||
|
||||
class MetadataService {
|
||||
public async get<T>(key: string): Promise<T | null> {
|
||||
|
||||
@@ -7,8 +7,7 @@ import {
|
||||
TransactionsBatchMessage,
|
||||
} from '@colanode/core';
|
||||
|
||||
import { interactionService } from './interaction-service';
|
||||
|
||||
import { interactionService } from '@/main/services/interaction-service';
|
||||
import { nodeService } from '@/main/services/node-service';
|
||||
import { collaborationService } from '@/main/services/collaboration-service';
|
||||
import { socketService } from '@/main/services/socket-service';
|
||||
|
||||
12
package-lock.json
generated
12
package-lock.json
generated
@@ -9044,9 +9044,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/debug": {
|
||||
"version": "4.3.7",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
|
||||
"integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
|
||||
"version": "4.4.0",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
|
||||
"integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"ms": "^2.1.3"
|
||||
@@ -13164,9 +13164,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/kysely": {
|
||||
"version": "0.27.4",
|
||||
"resolved": "https://registry.npmjs.org/kysely/-/kysely-0.27.4.tgz",
|
||||
"integrity": "sha512-dyNKv2KRvYOQPLCAOCjjQuCk4YFd33BvGdf/o5bC7FiW+BB6snA81Zt+2wT9QDFzKqxKa5rrOmvlK/anehCcgA==",
|
||||
"version": "0.27.5",
|
||||
"resolved": "https://registry.npmjs.org/kysely/-/kysely-0.27.5.tgz",
|
||||
"integrity": "sha512-s7hZHcQeSNKpzCkHRm8yA+0JPLjncSWnjb+2TIElwS2JAqYr+Kv3Ess+9KFfJS0C1xcQ1i9NkNHpWwCYpHMWsA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
|
||||
Reference in New Issue
Block a user