docs: change WASM/wasm to Wasm

That is the official capitalisation.
This commit is contained in:
ObserverOfTime 2025-08-19 12:32:46 +03:00
parent 7bc8f76667
commit 88e0b4cea4
36 changed files with 122 additions and 122 deletions

View file

@ -6,7 +6,7 @@ const format = process.env.CJS ? 'cjs' : 'esm';
const debug = process.argv.includes('--debug');
const outfile = `${debug ? 'debug/' : ''}web-tree-sitter.${format === 'esm' ? 'js' : 'cjs'}`;
// Copy source files to lib directory - we'll map the wasm's sourecmap to these files.
// Copy source files to lib directory - we'll map the Wasm's sourcemap to these files.
async function copySourceFiles() {
const sourceDir = '../src';
const files = await fs.readdir(sourceDir);
@ -58,7 +58,7 @@ async function build() {
resolveExtensions: ['.ts', '.js', format === 'esm' ? '.mjs' : '.cjs'],
});
// Copy the WASM files to the appropriate spot, as esbuild doesn't "bundle" WASM files
// Copy the Wasm files to the appropriate spot, as esbuild doesn't "bundle" Wasm files
const outputWasmName = `${debug ? 'debug/' : ''}web-tree-sitter.wasm`;
await fs.copyFile('lib/web-tree-sitter.wasm', outputWasmName);