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
|
{
"name": "mitt",
"version": "1.2.0",
"description": "Tiny 200b functional Event Emitter / pubsub.",
"jsnext:main": "dist/mitt.es.js",
"source": "src/index.ts",
"module": "dist/mitt.es.js",
"esmodules": "dist/mitt.modern.js",
"main": "dist/mitt.js",
"umd:main": "dist/mitt.umd.js",
"typings": "dist/index.d.ts",
"scripts": {
"testonly": "mocha --require esm --require ts-node/register test/**/*.js",
"lint": "eslint src test --ext ts --ext js",
"test": "tsc src/index.ts --noEmit && npm run lint && npm run testonly",
"bundle": "microbundle",
"build": "npm-run-all --silent clean -p bundle -s docs",
"clean": "rimraf dist",
"docs": "documentation readme src/index.ts --section API -q --parse-extension ts",
"release": "npm run -s build -s && npm t && git tag $npm_package_version && git push && git push --tags && npm publish"
},
"repository": "developit/mitt",
"keywords": [
"events",
"eventemitter",
"pubsub"
],
"homepage": "https://github.com/developit/mitt",
"authors": [
"Jason Miller <[email protected]>"
],
"license": "MIT",
"files": [
"src",
"dist"
],
"eslintConfig": {
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"env": {
"browser": true,
"mocha": true,
"es6": true
},
"globals": {
"expect": true
},
"rules": {
"semi": [
2,
"always"
],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-empty-function": 0
}
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"chai": "^3.5.0",
"documentation": "^13.0.0",
"eslint": "^6.5.1",
"esm": "^3.2.25",
"microbundle": "^0.12.0",
"mocha": "^3.2.0",
"npm-run-all": "^2.1.1",
"rimraf": "^2.5.2",
"sinon": "^1.17.4",
"sinon-chai": "^2.8.0",
"ts-node": "^8.10.1",
"typescript": "^3.9.3"
}
}
|