Rename files

GitOrigin-RevId: 5308845fa2a76342dc395ee4d4fcc94cdf03cb3b
This commit is contained in:
Andrew Rumble
2025-10-15 13:40:06 +01:00
committed by Copybot
parent 1a94ebca8e
commit bdf47f7a78
10 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -45,7 +45,7 @@
"cypress:run-ct": "OVERLEAF_CONFIG=$PWD/config/settings.webpack.js cypress run --component --browser chrome",
"cypress:docker:open-ct": "DOCKER_USER=\"$(id -u):$(id -g)\" docker compose -f docker-compose.cypress.yml run --rm cypress run cypress:open-ct",
"cypress:docker:run-ct": "DOCKER_USER=\"$(id -u):$(id -g)\" docker compose -f docker-compose.cypress.yml run --rm cypress run cypress:run-ct --browser chrome",
"lezer-latex:generate": "node scripts/lezer-latex/generate.js",
"lezer-latex:generate": "node scripts/lezer-latex/generate.mjs",
"lezer-latex:run": "node scripts/lezer-latex/run.mjs",
"lezer-latex:benchmark": "node scripts/lezer-latex/benchmark.mjs",
"lezer-latex:benchmark-incremental": "node scripts/lezer-latex/test-incremental-parser.mjs",
@@ -6,7 +6,7 @@ import cheerio from 'cheerio'
// eslint-disable-next-line import/no-extraneous-dependencies
import prettier from 'prettier'
import sanitizeHtml from 'sanitize-html'
import { sanitizeOptions } from '../../../modules/learn/app/src/sanitizeOptions.js'
import { sanitizeOptions } from '../../../modules/learn/app/src/sanitizeOptions.mjs'
import { fileURLToPath } from 'node:url'
const __dirname = Path.dirname(fileURLToPath(import.meta.url))
@@ -1,10 +1,13 @@
const fs = require('fs')
const path = require('path')
const modulePath = path.resolve(__dirname, '../scripts/lezer-latex/generate.js')
const modulePath = path.resolve(
__dirname,
'../scripts/lezer-latex/generate.mjs'
)
try {
fs.accessSync(modulePath, fs.constants.W_OK)
const { compile, grammars } = require(modulePath)
const { compile, grammars } = require(modulePath).default
const PLUGIN_NAME = 'lezer-grammar-compiler'
class LezerGrammarCompilerPlugin {
apply(compiler) {