feat(server): added in update server as well as get serverdata
This commit is contained in:
@@ -9,6 +9,7 @@ import {getAppInfo} from "../globalUtils/appInfo.js";
|
||||
const ignoreList = [
|
||||
".git",
|
||||
"builds",
|
||||
"server",
|
||||
"node_modules",
|
||||
"apiDocsLSTV2",
|
||||
"testFiles",
|
||||
@@ -19,7 +20,7 @@ const ignoreList = [
|
||||
"nssm.exe",
|
||||
"postgresql-17.2-3-windows-x64.exe",
|
||||
// front end ignore
|
||||
"/frontend/node_modules",
|
||||
"frontend/node_modules",
|
||||
"fonrtend/.env",
|
||||
"frontend/public",
|
||||
"frontend/src",
|
||||
@@ -33,6 +34,7 @@ const ignoreList = [
|
||||
"frontend/tsconfig.app.json",
|
||||
"frontend/tsconfig.node.json",
|
||||
"frontend/vite.config.ts",
|
||||
"frontend/components.json",
|
||||
];
|
||||
|
||||
const shouldIgnore = (itemPath: any) => {
|
||||
@@ -40,7 +42,10 @@ const shouldIgnore = (itemPath: any) => {
|
||||
|
||||
return ignoreList.some((ignorePattern) => {
|
||||
const normalizedIgnorePatther = ignorePattern.replace(/\\/g, "/");
|
||||
return normalizedItemPath.includes(normalizedIgnorePatther);
|
||||
return (
|
||||
normalizedItemPath === normalizedIgnorePatther ||
|
||||
normalizedItemPath.startsWith(`${normalizedIgnorePatther}/`)
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user