From 62d7a694182caee919d99f89ba53f69dd08eed38 Mon Sep 17 00:00:00 2001 From: stereobooster Date: Sun, 5 May 2024 16:16:06 +0200 Subject: [PATCH] maybe? --- .github/workflows/ci.yml | 4 ++ packages/rehype-mermaid/test/fixtures/a.html | 2 +- packages/rehype-mermaid/test/index.test.ts | 1 - packages/remark-code-hook/package.json | 2 +- pnpm-lock.yaml | 41 +++++--------------- 5 files changed, 16 insertions(+), 34 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aaa72f7..c91dc00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,8 +42,12 @@ jobs: - name: Install Playwright Browsers run: pnpm exec playwright install chromium + - run: ls -la .turbo || exit 0 + - name: Build run: pnpm build --cache-dir=.turbo + - run: ls -la .turbo || exit 0 + - name: Test run: pnpm test diff --git a/packages/rehype-mermaid/test/fixtures/a.html b/packages/rehype-mermaid/test/fixtures/a.html index 48c35d6..52701ed 100644 --- a/packages/rehype-mermaid/test/fixtures/a.html +++ b/packages/rehype-mermaid/test/fixtures/a.html @@ -1 +1 @@ -
A
\ No newline at end of file +
A
\ No newline at end of file diff --git a/packages/rehype-mermaid/test/index.test.ts b/packages/rehype-mermaid/test/index.test.ts index 9678727..d1d5083 100644 --- a/packages/rehype-mermaid/test/index.test.ts +++ b/packages/rehype-mermaid/test/index.test.ts @@ -31,6 +31,5 @@ it("renders diagram", async () => { .use(rehypeStringify) .process(await fs.readFile(new URL("./fixtures/a.md", import.meta.url))); - console.log(file.toString()); expect(file.toString()).toMatchFileSnapshot("./fixtures/a.html"); }); diff --git a/packages/remark-code-hook/package.json b/packages/remark-code-hook/package.json index 47a776f..a838b60 100644 --- a/packages/remark-code-hook/package.json +++ b/packages/remark-code-hook/package.json @@ -39,6 +39,6 @@ "rehype-raw": "^7.0.0", "remark-parse": "^11.0.0", "remark-rehype": "^11.1.0", - "remark-stringify": "^10.0.0" + "rehype-stringify": "^10.0.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e59413a..8573ec6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -224,15 +224,15 @@ importers: rehype-raw: specifier: ^7.0.0 version: 7.0.0 + rehype-stringify: + specifier: ^10.0.0 + version: 10.0.0 remark-parse: specifier: ^11.0.0 version: 11.0.0 remark-rehype: specifier: ^11.1.0 version: 11.1.0 - remark-stringify: - specifier: ^10.0.0 - version: 10.0.0 packages/sqlitecache: dependencies: @@ -1891,6 +1891,7 @@ packages: resolution: {integrity: sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==} dependencies: '@types/unist': 2.0.10 + dev: false /@types/mdast@4.0.3: resolution: {integrity: sha512-LsjtqsyF+d2/yFOYaN22dHZI1Cpwkrj+g06G8+qtUKlhovPW89YhqSnfKtMbkgmEtYpH2gydRNULd6y8mciAFg==} @@ -4199,13 +4200,6 @@ packages: - supports-color dev: false - /mdast-util-phrasing@3.0.1: - resolution: {integrity: sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg==} - dependencies: - '@types/mdast': 3.0.15 - unist-util-is: 5.2.1 - dev: true - /mdast-util-phrasing@4.1.0: resolution: {integrity: sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==} dependencies: @@ -4225,19 +4219,6 @@ packages: unist-util-visit: 5.0.0 vfile: 6.0.1 - /mdast-util-to-markdown@1.5.0: - resolution: {integrity: sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A==} - dependencies: - '@types/mdast': 3.0.15 - '@types/unist': 2.0.10 - longest-streak: 3.1.0 - mdast-util-phrasing: 3.0.1 - mdast-util-to-string: 3.2.0 - micromark-util-decode-string: 1.1.0 - unist-util-visit: 4.1.2 - zwitch: 2.0.4 - dev: true - /mdast-util-to-markdown@2.1.0: resolution: {integrity: sha512-SR2VnIEdVNCJbP6y7kVTJgPLifdr8WEU440fQec7qHoHOUz/oJ2jmNRqdDQ3rbiStOXb2mCDGTuwsK5OPUgYlQ==} dependencies: @@ -4254,6 +4235,7 @@ packages: resolution: {integrity: sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==} dependencies: '@types/mdast': 3.0.15 + dev: false /mdast-util-to-string@4.0.0: resolution: {integrity: sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==} @@ -4588,6 +4570,7 @@ packages: dependencies: micromark-util-symbol: 1.1.0 micromark-util-types: 1.1.0 + dev: false /micromark-util-character@2.1.0: resolution: {integrity: sha512-KvOVV+X1yLBfs9dCBSopq/+G1PcgT3lAK07mC4BzXi5E7ahzMAF8oIupDDJ6mievI6F+lAATkbQQlQixJfT3aQ==} @@ -4638,6 +4621,7 @@ packages: resolution: {integrity: sha512-m9V0ExGv0jB1OT21mrWcuf4QhP46pH1KkfWy9ZEezqHKAxkj4mPCy3nIH1rkbdMlChLHX531eOrymlwyZIf2iw==} dependencies: micromark-util-symbol: 1.1.0 + dev: false /micromark-util-decode-numeric-character-reference@2.0.1: resolution: {integrity: sha512-bmkNc7z8Wn6kgjZmVHOX3SowGmVdhYS7yBpMnuMnPzDq/6xwVA604DuOXMZTO1lvq01g+Adfa0pE2UKGlxL1XQ==} @@ -4651,6 +4635,7 @@ packages: micromark-util-character: 1.2.0 micromark-util-decode-numeric-character-reference: 1.1.0 micromark-util-symbol: 1.1.0 + dev: false /micromark-util-decode-string@2.0.0: resolution: {integrity: sha512-r4Sc6leeUTn3P6gk20aFMj2ntPwn6qpDZqWvYmAG6NgvFTIlj4WtrAudLi65qYoaGdXYViXYw2pkmn7QnIFasA==} @@ -4743,12 +4728,14 @@ packages: /micromark-util-symbol@1.1.0: resolution: {integrity: sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==} + dev: false /micromark-util-symbol@2.0.0: resolution: {integrity: sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==} /micromark-util-types@1.1.0: resolution: {integrity: sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==} + dev: false /micromark-util-types@2.0.0: resolution: {integrity: sha512-oNh6S2WMHWRZrmutsRmDDfkzKtxF+bc2VxLC9dvtrDIRFln627VsFP6fLMgTryGDljgLPjkrzQSDcPrjPyDJ5w==} @@ -5350,14 +5337,6 @@ packages: retext-smartypants: 5.2.0 unist-util-visit: 5.0.0 - /remark-stringify@10.0.0: - resolution: {integrity: sha512-3LAQqJ/qiUxkWc7fUcVuB7RtIT38rvmxfmJG8z1TiE/D8zi3JGQ2tTcTJu9Tptdpb7gFwU0whRi5q1FbFOb9yA==} - dependencies: - '@types/mdast': 3.0.15 - mdast-util-to-markdown: 1.5.0 - unified: 10.1.2 - dev: true - /remark-stringify@11.0.0: resolution: {integrity: sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==} dependencies: