Skip to content

Commit

Permalink
updating to support latest yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwray committed Apr 14, 2024
1 parent 6009454 commit ce28cc3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ site-output
# IDEs
.idea/
pnpm-lock.yaml
.pnp.*
.yarn
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,6 @@
},
"files": [
"dist"
]
],
"packageManager": "yarn@4.1.1"
}
2 changes: 1 addition & 1 deletion src/writr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import rehypeKatex from 'rehype-katex';
import remarkGfm from 'remark-gfm';
import remarkEmoji from 'remark-emoji';
import remarkMDX from 'remark-mdx';
import parse, {type HTMLReactParserOptions} from 'html-react-parser';
import type React from 'react';
import parse, {type HTMLReactParserOptions} from 'html-react-parser';

type WritrOptions = {
openai?: string; // Openai api key (default: undefined)
Expand Down
2 changes: 1 addition & 1 deletion test/writr.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import {it, describe, expect} from 'vitest';
import {e} from 'vitest/dist/reporters-1evA5lom.js';
import {Writr} from '../src/writr.js';
import {it, describe, expect} from 'vitest';

describe('writr', () => {
it('should be able to initialize', () => {
Expand Down
2 changes: 2 additions & 0 deletions vitest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export default defineConfig({
exclude: [
'site/docula.config.cjs',
'site-output/**',
'.pnp.*',
'.yarn/**',
],
},
},
Expand Down

0 comments on commit ce28cc3

Please sign in to comment.