diff --git a/README.md b/README.md index c81f6bc..b946ef2 100644 --- a/README.md +++ b/README.md @@ -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); diff --git a/package.json b/package.json index a8e8c91..d5e60d9 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" }, diff --git a/yarn.lock b/yarn.lock index 5b3abe4..17c8a38 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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==