Skip to content

Commit

Permalink
chore: get ready for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
2xAA committed Jul 7, 2024
1 parent 68840a8 commit da968e1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> A wrapper around CanvasRenderingContext2D to handle HiDPI scaling
```JavaScript
import { HighResCanvasRenderingContext2D } from "hires-2d";
import { HighResCanvasRenderingContext2D } from "hires-canvas2d";

const canvas = document.querySelector("canvas");
const context = new HighResCanvasRenderingContext2D(canvas.getContext("2d"), window.devicePixelRatio);
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"name": "hires-canvas2d",
"name": "@vcync/hires-canvas2d",
"version": "1.0.0",
"description": "Gracefully handle Canvas2D drawing for HiDPI displays",
"main": "src/HiresCanvasRenderingContext2D.js",
"types": "types/HiresCanvasRenderingContext2D.d.ts",
"main": "src/HighResCanvasRenderingContext2D.js",
"types": "types/HighResCanvasRenderingContext2D.d.ts",
"author": "Sam Wray",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/vcync/hires-canvas2d.git"
"url": "git+https://github.com/vcync/hires-canvas2d.git"
},
"homepage": "https://github.com/vcync/hires-canvas2d",
"bugs": "https://github.com/vcync/hires-canvas2d/issues",
"bugs": {
"url": "https://github.com/vcync/hires-canvas2d/issues"
},
"keywords": [
"canvas",
"canvas2d",
Expand All @@ -25,7 +27,7 @@
"typescript": "^5.5.3"
},
"scripts": {
"prepack": "npx tsc",
"prepublishOnly": "npx tsc",
"dev": "npx http-server ./ -o /example -c -1",
"lint": "yarn prettier src example --write"
},
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

prettier@3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.2.tgz#03ff86dc7c835f2d2559ee76876a3914cec4a90a"
resolved "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz"
integrity sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==

typescript@^5.5.3:
version "5.5.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.3.tgz#e1b0a3c394190838a0b168e771b0ad56a0af0faa"
resolved "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz"
integrity sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==

0 comments on commit da968e1

Please sign in to comment.