Skip to content

Commit

Permalink
update deps, type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Nov 17, 2024
1 parent 4141734 commit d93d0c9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 6 deletions.
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@
"scripts": {
"build": "vite build && npm run tsc",
"test": "vitest",
"tsc": "tsc src/index.ts --declaration --emitDeclarationOnly --outDir ./dist --declarationDir ./dist"
"tsc": "tsc --project tsconfig.json"
},
"peerDependencies": {
"konva": ">7",
"vue": "^3"
},
"devDependencies": {
"@types/node": "^22.9.0",
"@vue/test-utils": "^2.4.6",
"canvas": "^2.11.2",
"jsdom": "^25.0.1",
Expand Down
1 change: 1 addition & 0 deletions src/utils/applyNodeProps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// adapted FROM: https://github.com/lavrton/react-konva/blob/master/src/react-konva-fiber.js
import '../../index.d.ts';
import type { ComponentInternalInstance } from 'vue';
import updatePicture from './updatePicture';

Expand Down
24 changes: 19 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "commonjs",
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "./dist",
"declarationDir": "./dist",
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"],
"exclude": ["node_modules"]
}

0 comments on commit d93d0c9

Please sign in to comment.