From b17ff8be4653adf748ba37e6c331b17dfdc3c25b Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Wed, 3 Jul 2024 09:20:41 -0500 Subject: [PATCH] chore: fix rules scripts (#3358) --- test/recheck.js | 5 +++-- test/rules.js | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/recheck.js b/test/recheck.js index be6e6b99f2..35deec9190 100644 --- a/test/recheck.js +++ b/test/recheck.js @@ -1,6 +1,7 @@ -import { inline, block } from '../src/rules.js'; +import { Lexer } from '../lib/marked.esm.js'; import { check } from 'recheck'; +const { inline, block } = Lexer.rules; function checkRegexp(obj, name) { return Promise.all(Object.keys(obj).map(async(prop) => { const item = obj[prop]; @@ -26,7 +27,7 @@ function checkRegexp(obj, name) { } console.log(` -import { marked } from './src/marked.js'; +import { marked } from '../lib/marked.esm.js'; const start = Date.now(); `); diff --git a/test/rules.js b/test/rules.js index 8aff3f75af..930edf706c 100644 --- a/test/rules.js +++ b/test/rules.js @@ -1,5 +1,5 @@ -import { inline, block } from '../src/rules.js'; -const rules = { inline, block }; +import { Lexer } from '../lib/marked.esm.js'; +const rules = Lexer.rules; const COLOR = { reset: '\x1b[0m',