mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 15:49:01 +02:00
Rename files
GitOrigin-RevId: 5308845fa2a76342dc395ee4d4fcc94cdf03cb3b
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user