diff options
Diffstat (limited to 'dom/webgpu/tests/cts/checkout/tools/gen_version')
-rwxr-xr-x | dom/webgpu/tests/cts/checkout/tools/gen_version | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/dom/webgpu/tests/cts/checkout/tools/gen_version b/dom/webgpu/tests/cts/checkout/tools/gen_version index 53128ca2a0..2c17db1454 100755 --- a/dom/webgpu/tests/cts/checkout/tools/gen_version +++ b/dom/webgpu/tests/cts/checkout/tools/gen_version @@ -1,6 +1,6 @@ #!/usr/bin/env node -// Get the current git hash, and save (overwrite) it into out/framework/version.js +// Get the current git hash, and save (overwrite) it into gen/.../version.js // so it can be read when running inside the browser. /* eslint-disable no-console */ @@ -16,18 +16,13 @@ if (!fs.existsSync(myself)) { const { version } = require('../src/common/tools/version.ts'); -fs.mkdirSync('./out/common/internal', { recursive: true }); -// Overwrite the version.js generated by TypeScript compilation. +fs.mkdirSync('./gen/common/internal', { recursive: true }); +// This will be copied into the various other build directories. fs.writeFileSync( - './out/common/internal/version.js', + './gen/common/internal/version.js', `\ // AUTO-GENERATED - DO NOT EDIT. See ${myself}. export const version = '${version}'; ` ); - -// Since the generated version.js was overwritten, its source map is no longer relevant. -try { - fs.unlinkSync('./out/common/internal/version.js.map'); -} catch (ex) { } |