Skip to content

Commit

Permalink
Fixes missing example images in the built version of Sandcastle
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Jun 3, 2024
1 parent 082d5e3 commit 7d2396e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export const buildWatch = gulp.series(build, async function buildWatch() {
}

specs.dispose();
// eslint-disable-next-line n/no-process-exit

process.exit(0);
});
});
Expand Down Expand Up @@ -1163,7 +1163,7 @@ function generateTypeScriptDefinitions(
const regex = /^declare[ const ]*(function|class|namespace|enum) (.+)/gm;
let matches;
let publicModules = new Set();
//eslint-disable-next-line no-cond-assign

while ((matches = regex.exec(source))) {
const moduleName = matches[2].match(/([^<\s|\(]+)/);
publicModules.add(moduleName[1]);
Expand Down Expand Up @@ -1370,7 +1370,7 @@ function createTypeScriptDefinitions() {
const regex = /^declare (function|class|namespace|enum) (.+)/gm;
let matches;
const publicModules = new Set();
//eslint-disable-next-line no-cond-assign

while ((matches = regex.exec(source))) {
const moduleName = matches[2].match(/([^<\s|\(]+)/);
publicModules.add(moduleName[1]);
Expand Down Expand Up @@ -1671,7 +1671,6 @@ async function buildSandcastle() {
["Apps/Sandcastle/gallery/**.jpg", "Apps/Sandcastle/images/**"],
{
base: "Apps/Sandcastle",
buffer: false,
encoding: false,
}
);
Expand Down

0 comments on commit 7d2396e

Please sign in to comment.