-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
98 lines (98 loc) · 2.57 KB
/
package.json
File metadata and controls
98 lines (98 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"name": "simple-event-handler",
"version": "1.1.0",
"description": "Lightweight, framework-agnostic event handler library for both browser and Node.js environments",
"type": "commonjs",
"main": "dist/simple-event-handler.js",
"module": "dist/simple-event-handler.esm.js",
"types": "src/simple-event-handler.d.ts",
"exports": {
".": {
"types": "./src/simple-event-handler.d.ts",
"import": "./dist/simple-event-handler.esm.js",
"require": "./dist/simple-event-handler.js",
"default": "./dist/simple-event-handler.js"
}
},
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"test": "vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"test:types": "tsc test-types.ts --noEmit",
"lint": "eslint src test",
"lint:fix": "eslint src test --fix",
"format": "prettier --write \"src/**/*.js\" \"test/**/*.js\"",
"format:check": "prettier --check \"src/**/*.js\" \"test/**/*.js\"",
"build": "rollup -c",
"build:watch": "rollup -c --watch",
"clean": "rm -rf dist",
"prebuild": "npm run clean",
"prepare": "husky",
"prepublishOnly": "npm test && npm run test:types && npm run build"
},
"files": [
"src/",
"dist/",
"README.MD",
"API.md",
"EXAMPLES.md",
"CHANGELOG.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "git+https://github.com/vlavrynovych/simple-event-handler.git"
},
"keywords": [
"event",
"handler",
"emitter",
"subscriber",
"subscription",
"pubsub",
"pub-sub",
"event-emitter",
"event-bus",
"observer",
"lightweight",
"zero-dependencies",
"typescript",
"browser",
"nodejs"
],
"author": "Volodymyr Lavrynovych <volodyalavrynovych@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/vlavrynovych/simple-event-handler/issues"
},
"homepage": "https://github.com/vlavrynovych/simple-event-handler#readme",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@vitest/coverage-v8": "^4.0.18",
"@vitest/ui": "^4.0.18",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"happy-dom": "^20.3.4",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"prettier": "^3.8.1",
"rollup": "^4.56.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
"lint-staged": {
"*.js": [
"eslint --fix",
"prettier --write"
]
}
}