Skip to content

Commit

Permalink
fix: ts parser (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilevyor authored Mar 25, 2024
1 parent 61241d6 commit bd62cf9
Show file tree
Hide file tree
Showing 39 changed files with 1,019,287 additions and 573,720 deletions.
5 changes: 2 additions & 3 deletions crates/cli_bin/tests/snapshots/apply__output_jsonl.snap

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file modified crates/wasm-bindings/wasm_parsers/tree-sitter-javascript.wasm
Binary file not shown.
Binary file modified crates/wasm-bindings/wasm_parsers/tree-sitter-tsx.wasm
Binary file not shown.
Binary file modified crates/wasm-bindings/wasm_parsers/tree-sitter-typescript.wasm
Binary file not shown.
12 changes: 6 additions & 6 deletions resources/edit_grammars.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,16 @@ async function buildLanguage(language) {
await execPromise(
`cd ${tsLangDir} && yarn && yarn build && echo "Generated grammar for ${language}"`,
);
await Promise.all([
execPromise(`cd ${tsLangDir}/tsx && npx tree-sitter build-wasm`),
execPromise(`cd ${tsLangDir}/typescript && npx tree-sitter build-wasm`),
]);
// await Promise.all([
// execPromise(`cd ${tsLangDir}/tsx && npx tree-sitter build-wasm`),
// execPromise(`cd ${tsLangDir}/typescript && npx tree-sitter build-wasm`),
// ]);

await copyNodeTypes('typescript/typescript', 'typescript');
await copyNodeTypes('typescript/tsx', 'tsx');

await copyWasmParser('typescript', 'tree-sitter-typescript/');
await copyWasmParser('tsx', 'tree-sitter-typescript/');
// await copyWasmParser('typescript', 'tree-sitter-typescript/');
// await copyWasmParser('tsx', 'tree-sitter-typescript/');
} else if (language === 'vue') {
log(`Copying files`);
await fs.copyFile(
Expand Down
Loading

0 comments on commit bd62cf9

Please sign in to comment.