Skip to content

Commit d93d0c9

Browse files
committed
update deps, type fixes
1 parent 4141734 commit d93d0c9

File tree

4 files changed

+40
-6
lines changed

4 files changed

+40
-6
lines changed

package-lock.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@
5050
"scripts": {
5151
"build": "vite build && npm run tsc",
5252
"test": "vitest",
53-
"tsc": "tsc src/index.ts --declaration --emitDeclarationOnly --outDir ./dist --declarationDir ./dist"
53+
"tsc": "tsc --project tsconfig.json"
5454
},
5555
"peerDependencies": {
5656
"konva": ">7",
5757
"vue": "^3"
5858
},
5959
"devDependencies": {
60+
"@types/node": "^22.9.0",
6061
"@vue/test-utils": "^2.4.6",
6162
"canvas": "^2.11.2",
6263
"jsdom": "^25.0.1",

src/utils/applyNodeProps.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// adapted FROM: https://github.com/lavrton/react-konva/blob/master/src/react-konva-fiber.js
2+
import '../../index.d.ts';
23
import type { ComponentInternalInstance } from 'vue';
34
import updatePicture from './updatePicture';
45

tsconfig.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
{
22
"compilerOptions": {
3-
"target": "ESNext",
4-
"module": "commonjs",
3+
"target": "ES2020",
4+
"useDefineForClassFields": true,
5+
"module": "ESNext",
6+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
7+
"skipLibCheck": true,
8+
"declaration": true,
9+
"emitDeclarationOnly": true,
10+
"outDir": "./dist",
11+
"declarationDir": "./dist",
12+
"moduleResolution": "bundler",
13+
"allowImportingTsExtensions": true,
14+
"resolveJsonModule": true,
15+
"isolatedModules": true,
516
"esModuleInterop": true,
6-
"forceConsistentCasingInFileNames": true,
717
"strict": true,
8-
"skipLibCheck": true
9-
}
18+
"noUnusedLocals": true,
19+
"noUnusedParameters": true,
20+
"noFallthroughCasesInSwitch": true
21+
},
22+
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"],
23+
"exclude": ["node_modules"]
1024
}

0 commit comments

Comments
 (0)