🐛 Configure npm for publish, set typescript resolution to node16

main
Shad Amethyst 2 years ago
parent 096a0ebe64
commit 04deb14753

@ -0,0 +1,5 @@
pptk-old.js
tsconfig.json
vite.config.ts
src/
test/

@ -1,6 +1,6 @@
{ {
"name": "pptk", "name": "@shadryx/pptk",
"version": "0.1.0", "version": "0.1.1",
"description": "Pixel-Perfect ToolKit, a library to help make pixel-perfect applications on high-DPI devices", "description": "Pixel-Perfect ToolKit, a library to help make pixel-perfect applications on high-DPI devices",
"keywords": [ "keywords": [
"pixel-perfect", "pixel-perfect",

@ -1,5 +1,5 @@
import { JSX, Component, createEffect, onCleanup } from "solid-js"; 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'; import styles from './PixelPerfectCanvas.module.css';
export type PixelPerfectCanvasProps = { export type PixelPerfectCanvasProps = {

@ -1 +1 @@
export * from "./PixelPerfectCanvas"; export * from "./PixelPerfectCanvas.jsx";

@ -2,7 +2,7 @@
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ESNext",
"module": "ESNext", "module": "ESNext",
"moduleResolution": "node", "moduleResolution": "node16",
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"esModuleInterop": true, "esModuleInterop": true,
"jsx": "preserve", "jsx": "preserve",

Loading…
Cancel
Save