Skip to content

Commit a0ddfdd

Browse files
committed
fixes
1 parent ffacacb commit a0ddfdd

File tree

3 files changed

+691
-325
lines changed

3 files changed

+691
-325
lines changed

.erb/scripts/fix-header-generator.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@ const find = ` this.headersOrder = JSON.parse((0, fs_1.readFileSync)(\`\$
1212
this.uniqueBrowsers.push(this.prepareHttpBrowserObject(browserString));
1313
}
1414
}
15-
this.inputGeneratorNetwork = new generative_bayesian_network_1.BayesianNetwork({ path: \`\$\{__dirname}/data_files/input-network-definition.zip\` });
16-
this.headerGeneratorNetwork = new generative_bayesian_network_1.BayesianNetwork({ path: \`\$\{__dirname}/data_files/header-network-definition.zip\` });`
17-
const replacement = `
15+
this.inputGeneratorNetwork = new generative_bayesian_network_1.BayesianNetwork({
16+
path: \`\$\{__dirname}/data_files/input-network-definition.zip\`,
17+
});
18+
this.headerGeneratorNetwork = new generative_bayesian_network_1.BayesianNetwork({
19+
path: \`\$\{__dirname}/data_files/header-network-definition.zip\`,
20+
});`
21+
22+
23+
const replacement = `
1824
function isRunningInErbDll() {
1925
const currentDir = __dirname;
2026
const dirName = path.basename(currentDir);
@@ -66,7 +72,6 @@ function replaceAppWithSrc() {
6672
try {
6773
// Read the file synchronously
6874
let content = fs.readFileSync(filePath, 'utf8');
69-
7075
// Replace the specified content
7176
content = content.replace(find, replacement)
7277
if (!content.includes(`const path = require('path');`)) {

0 commit comments

Comments
 (0)