Skip to content

Commit

Permalink
fix: integ test failures in tauri prod builds
Browse files Browse the repository at this point in the history
  • Loading branch information
abose committed Nov 11, 2023
1 parent eea54d6 commit 82b8e9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gulpfile.js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ function listAllJsFilesRecursively(dirPath) {
function makeBracketsConcatJS() {
return new Promise((resolve)=>{
const srcDir = "src/";
const DO_NOT_CONCATENATE = [
`${srcDir}preferences/PreferencesImpl.js` // tests does require magic on prefs, so exclude
];
const pathsToMerge = [];
const PathsToIgnore = ["assets", "thirdparty", "extensions"];
for(let dir of fs.readdirSync(srcDir, {withFileTypes: true})){
Expand All @@ -420,7 +423,7 @@ function makeBracketsConcatJS() {
const requirePath = file.replace(srcDir, "").replace(".js", "");
let content = fs.readFileSync(file, "utf8");
const count = content.split("define(").length - 1;
if(count === 0) {
if(count === 0 || DO_NOT_CONCATENATE.includes(file)) {
notConcatenatedJS.push(file);
continue;
}
Expand Down

0 comments on commit 82b8e9c

Please sign in to comment.