Skip to content

Commit

Permalink
wrong var name
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj committed Nov 18, 2023
1 parent 094ebef commit e819437
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions config/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,14 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
`;

await fs.promises.writeFile(path.resolve(this.outDir, 'index.html'), indexHtml);
}

if (this.defines.NEUROGLANCER_BUILD_INFO) {
await fs.promises.writeFile(path.resolve(this.outDir, 'version_test.json'), this.defines.NEUROGLANCER_BUILD_INFO);
async writeInfo() {
if (this.define.NEUROGLANCER_BUILD_INFO) {
await fs.promises.writeFile(path.resolve(this.outDir, 'version.json'), this.define.NEUROGLANCER_BUILD_INFO);
}
if (this.defines.STATE_SERVERS) {
await fs.promises.writeFile(path.resolve(this.outDir, 'state_servers.json'), this.defines.STATE_SERVERS);
if (this.define.STATE_SERVERS) {
await fs.promises.writeFile(path.resolve(this.outDir, 'state_servers.json'), this.define.STATE_SERVERS);
}
}

Expand Down Expand Up @@ -194,13 +196,11 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=

async buildNonModule() {
await this.writeIndex();
await this.writeInfo();
if (!this.python) {
await fs.promises.copyFile(
path.resolve(this.srcDir, 'neuroglancer/datasource/boss/bossauth.html'),
path.resolve(this.outDir, 'bossauth.html'));
await fs.promises.copyFile(
path.resolve(this.srcDir, 'version.json'),
path.resolve(this.outDir, 'version.json'));
}
const result = await esbuild.build({
...this.getBaseEsbuildConfig(),
Expand Down

0 comments on commit e819437

Please sign in to comment.