Skip to content

Commit

Permalink
Bump canvas to v3.0.1 and update packages (#339)
Browse files Browse the repository at this point in the history
* Bump canvas to v3.0.1 and update packages

* feat: add engine node 20.18.1 + restore types/node to v18.0.0

* add change as #342

* fix: remove engine node
  • Loading branch information
clabnet authored Jan 12, 2025
1 parent c8e0d64 commit 0cab833
Show file tree
Hide file tree
Showing 4 changed files with 6,297 additions and 4,982 deletions.
8 changes: 4 additions & 4 deletions packages/pintora-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@
"@pintora/core": "workspace:^0.8.0-alpha.0",
"@pintora/renderer": "workspace:^0.8.0-alpha.0",
"@pintora/standalone": "workspace:^0.8.0-alpha.0",
"canvas": "^2.11.2",
"canvas": "^3.0.1",
"consola": "^3.0.0",
"jsdom": "^25.0.0",
"mime-types": "^2.1.31",
"yargs": "^16.2.0"
"yargs": "^17.7.2"
},
"devDependencies": {
"@pintora/test-shared": "workspace:^0.5.2-alpha.0",
"@types/jsdom": "^21.0.0",
"@types/mime-types": "^2.1.0",
"@types/node": "^16.11.7",
"@types/yargs": "^16.0.0",
"@types/node": "^18.0.0",
"@types/yargs": "^17.0.33",
"typescript": "^5.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/pintora-cli/src/__tests__/render-cases.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ describe('render cases', () => {
mimeType: PNG_MIME_TYPE,
})

// console.log(svgString)
console.log(svgString)
})
})
3 changes: 2 additions & 1 deletion packages/pintora-cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ type CliRenderArgs = {
width?: number
}

// eslint-disable-next-line @typescript-eslint/no-unused-expressions
yargs
.command({
.command<CliRenderArgs>({
command: 'render',
describe: 'Render DSL to diagram image',
builder: {
Expand Down
Loading

0 comments on commit 0cab833

Please sign in to comment.