1 | {
|
2 | "name": "signature_pad",
|
3 | "description": "Library for drawing smooth signatures.",
|
4 | "version": "5.0.2",
|
5 | "homepage": "https://github.com/szimek/signature_pad",
|
6 | "author": {
|
7 | "name": "Szymon Nowak",
|
8 | "email": "szimek@gmail.com",
|
9 | "url": "https://github.com/szimek"
|
10 | },
|
11 | "license": "MIT",
|
12 | "source": "src/signature_pad.ts",
|
13 | "main": "dist/signature_pad.umd.js",
|
14 | "module": "dist/signature_pad.js",
|
15 | "types": "dist/types/signature_pad.d.ts",
|
16 | "scripts": {
|
17 | "build": "yarn run lint && yarn run clean && rollup --config && yarn run emit-types && yarn run update-docs",
|
18 | "clean": "yarn run del dist",
|
19 | "emit-types": "yarn run del dist/types && yarn run tsc src/signature_pad.ts --lib DOM,ES2015 --declaration --declarationDir dist/types --emitDeclarationOnly",
|
20 | "format": "prettier --write {src,tests}/**/*.{js,ts}",
|
21 | "lint": "eslint {src,tests}/**/*.ts",
|
22 | "prepublishOnly": "yarn run build",
|
23 | "serve": "serve -l 9000 docs",
|
24 | "start": "yarn run build && yarn run serve",
|
25 | "test": "jest --coverage",
|
26 | "update-docs": "yarn run cpy 'dist/signature_pad.umd.min.*' docs/js",
|
27 | "prepare": "husky install"
|
28 | },
|
29 | "repository": {
|
30 | "type": "git",
|
31 | "url": "https://github.com/szimek/signature_pad.git"
|
32 | },
|
33 | "files": [
|
34 | "src",
|
35 | "dist",
|
36 | "docs"
|
37 | ],
|
38 | "devDependencies": {
|
39 | "@rollup/plugin-terser": "^0.4.4",
|
40 | "@rollup/plugin-typescript": "^11.1.6",
|
41 | "@semantic-release/changelog": "^6.0.3",
|
42 | "@semantic-release/commit-analyzer": "^12.0.0",
|
43 | "@semantic-release/git": "^10.0.1",
|
44 | "@semantic-release/github": "^10.0.3",
|
45 | "@semantic-release/npm": "^12.0.0",
|
46 | "@semantic-release/release-notes-generator": "^13.0.0",
|
47 | "@types/jest": "^29.5.12",
|
48 | "@types/node": "^20.12.8",
|
49 | "@typescript-eslint/eslint-plugin": "^7.8.0",
|
50 | "@typescript-eslint/parser": "^7.8.0",
|
51 | "cpy-cli": "^5.0.0",
|
52 | "del": "^7.1.0",
|
53 | "del-cli": "^5.1.0",
|
54 | "eslint": "^8.57.0",
|
55 | "eslint-config-prettier": "^9.1.0",
|
56 | "husky": "^9.0.11",
|
57 | "jest": "^29.7.0",
|
58 | "jest-canvas-mock": "^2.5.2",
|
59 | "jest-environment-jsdom": "^29.7.0",
|
60 | "lint-staged": "^15.2.2",
|
61 | "prettier": "^3.2.5",
|
62 | "rollup": "^4.17.2",
|
63 | "semantic-release": "^23.0.8",
|
64 | "serve": "^14.2.3",
|
65 | "ts-jest": "^29.1.2",
|
66 | "tslib": "^2.6.2",
|
67 | "typescript": "~5.4.5"
|
68 | },
|
69 | "lint-staged": {
|
70 | "*.ts": "prettier --write"
|
71 | },
|
72 | "jest": {
|
73 | "moduleFileExtensions": [
|
74 | "ts",
|
75 | "js"
|
76 | ],
|
77 | "testEnvironment": "jsdom",
|
78 | "testEnvironmentOptions": {
|
79 | "resources": "usable",
|
80 | "url": "http://localhost:3000/"
|
81 | },
|
82 | "testMatch": [
|
83 | "<rootDir>/tests/**/*.test.ts"
|
84 | ],
|
85 | "transform": {
|
86 | "^.+\\.tsx?$": "ts-jest"
|
87 | },
|
88 | "setupFiles": [
|
89 | "jest-canvas-mock"
|
90 | ]
|
91 | },
|
92 | "release": {
|
93 | "plugins": [
|
94 | "@semantic-release/commit-analyzer",
|
95 | "@semantic-release/release-notes-generator",
|
96 | "@semantic-release/changelog",
|
97 | "@semantic-release/npm",
|
98 | "@semantic-release/github",
|
99 | "@semantic-release/git"
|
100 | ]
|
101 | },
|
102 | "packageManager": "yarn@4.2.1"
|
103 | }
|