Skip to content

Commit

Permalink
move canvas to dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gugu committed Mar 1, 2024
1 parent de8ba19 commit 8da9659
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@
"size-limit": "^11.0.2",
"svg-path-parser": "^1.1.0",
"typescript": "^5.3.3",
"xml-formatter": "^3.6.2"
"xml-formatter": "^3.6.2",
"canvas": "npm:@napi-rs/canvas@^0.1.50"
},
"dependencies": {
"canvas": "npm:@napi-rs/canvas@^0.1.50",
"color-string": "^1.9.1",
"js-base64": "^3.7.6",
"pdf-lib": "^1.17.1",
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ interface TestParams {
params: { logo: await readFile(`${goldenDir}/logo.png`) },
},
] as TestParams[]).forEach((testData) => {
test(testData.name, async (t) => {
test.serial(testData.name, async (t) => {
const image = await testData.fn(text, {
...defaultParams,
...testData.params,
Expand Down

0 comments on commit 8da9659

Please sign in to comment.