diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..23ea241 --- /dev/null +++ b/.npmignore @@ -0,0 +1,5 @@ +pptk-old.js +tsconfig.json +vite.config.ts +src/ +test/ diff --git a/package.json b/package.json index efd96db..2775d76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "pptk", - "version": "0.1.0", + "name": "@shadryx/pptk", + "version": "0.1.1", "description": "Pixel-Perfect ToolKit, a library to help make pixel-perfect applications on high-DPI devices", "keywords": [ "pixel-perfect", diff --git a/src/solid/PixelPerfectCanvas.tsx b/src/solid/PixelPerfectCanvas.tsx index 7ce654b..e44bb8c 100644 --- a/src/solid/PixelPerfectCanvas.tsx +++ b/src/solid/PixelPerfectCanvas.tsx @@ -1,5 +1,5 @@ import { JSX, Component, createEffect, onCleanup } from "solid-js"; -import { attachCanvas, AttachCanvasOptions } from '../index'; +import { attachCanvas, AttachCanvasOptions } from '../index.js'; import styles from './PixelPerfectCanvas.module.css'; export type PixelPerfectCanvasProps = { diff --git a/src/solid/index.tsx b/src/solid/index.tsx index 58ce508..17d0d10 100644 --- a/src/solid/index.tsx +++ b/src/solid/index.tsx @@ -1 +1 @@ -export * from "./PixelPerfectCanvas"; +export * from "./PixelPerfectCanvas.jsx"; diff --git a/tsconfig.json b/tsconfig.json index b2da6da..b5edd76 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ESNext", "module": "ESNext", - "moduleResolution": "node", + "moduleResolution": "node16", "allowSyntheticDefaultImports": true, "esModuleInterop": true, "jsx": "preserve",