Skip to content
Myr

package.json

This file

Path

package.json

109 lines · 2.7 KiB · JSON

Last changed by

Add generic types and update tests (#107)Jack Franklinbefore adoption5116df4

History of this file

Take it

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 1–2
1{
2 "name": "mitt",

2.0.1Jason Millerbefore adoption5959175

line 3why, one step back
3 "version": "2.0.1",

Update docs.Jason Millerbefore adoption07f8819

line 4why, one step back
4 "description": "Tiny 200b functional Event Emitter / pubsub.",

fix(builds): point `jsnext:main` to the ESM build instead of src, which contains things like Flowtype annotations that are not stripped by most build toolsJason Millerbefore adoption0cad092

line 5why, one step back
5 "jsnext:main": "dist/mitt.es.js",

Migrate to TypeScript and use Map (#99)Jack Franklinbefore adoptionbe5237f

line 6why, one step back
6 "source": "src/index.ts",

Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea

line 7why, one step back
7 "module": "dist/mitt.es.js",

simple build scriptJason Millerbefore adoption0ead0ba

line 8why, one step back
8 "esmodules": "dist/mitt.modern.js",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 9–10
9 "main": "dist/mitt.js",
10 "umd:main": "dist/mitt.umd.js",

Add generic types and update tests (#107)Jack Franklinbefore adoption5116df4

line 11why, one step back
11 "typings": "index.d.ts",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 12
12 "scripts": {

Add generic types and update tests (#107)Jack Franklinbefore adoption5116df4

lines 13–15why, one step back
13 "test": "npm-run-all --silent typecheck lint mocha test-types",
14 "mocha": "mocha test",15 "test-types": "tsc test/test-types-compilation.ts --noEmit",

Migrate to TypeScript and use Map (#99)Jack Franklinbefore adoptionbe5237f

line 16why, one step back
16 "lint": "eslint src test --ext ts --ext js",

Add generic types and update tests (#107)Jack Franklinbefore adoption5116df4

line 17why, one step back
17 "typecheck": "tsc --noEmit",

Migrate to TypeScript and use Map (#99)Jack Franklinbefore adoptionbe5237f

line 18why, one step back
18 "bundle": "microbundle",

remove older gzip size calculationJason Millerbefore adoption34ce9a4

line 19why, one step back
19 "build": "npm-run-all --silent clean -p bundle -s docs",

Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea

line 20why, one step back
20 "clean": "rimraf dist",

Migrate to TypeScript and use Map (#99)Jack Franklinbefore adoptionbe5237f

line 21why, one step back
21 "docs": "documentation readme src/index.ts --section API -q --parse-extension ts",

2.0.0Jason Millerbefore adoption4594463

line 22why, one step back
22 "release": "npm run -s build -s && npm t && git commit -m $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 23–27
23 },
24 "repository": "developit/mitt",25 "keywords": [26 "events",27 "eventemitter",

Export Mitt types for TS consumers (#101)Jack Franklinbefore adoptioneb2be7c

line 28why, one step back
28 "emitter",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 29–30
29 "pubsub"
30 ],

Merge branch 'master' into refactorCharlike Mike Reagentbefore adoption70e8ad1

line 31why, one step back
31 "homepage": "https://github.com/developit/mitt",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 32–37
32 "authors": [
33 "Jason Miller <jason@developit.ca>"34 ],35 "license": "MIT",36 "files": [37 "src",

Add generic types and update tests (#107)Jack Franklinbefore adoption5116df4

lines 38–39why, one step back
38 "dist",
39 "index.d.ts"

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 40
40 ],

Add generic types and update tests (#107)Jack Franklinbefore adoption5116df4

lines 41–52why, one step back
41 "mocha": {
42 "extension": [43 "ts"44 ],45 "require": [46 "ts-node/register",47 "esm"48 ],49 "spec": [50 "test/*_test.ts"51 ]52 },

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 53
53 "eslintConfig": {

Migrate to TypeScript and use Map (#99)Jack Franklinbefore adoptionbe5237f

line 54why, one step back
54 "extends": [

Use eslint-config-developitJason Millerbefore adoption59cc3d1

line 55why, one step back
55 "developit",

Migrate to TypeScript and use Map (#99)Jack Franklinbefore adoptionbe5237f

lines 56–59why, one step back
56 "plugin:@typescript-eslint/eslint-recommended",
57 "plugin:@typescript-eslint/recommended"58 ],59 "parser": "@typescript-eslint/parser",

update depsJason Millerbefore adoptiondbd661a

lines 60–62why, one step back
60 "parserOptions": {
61 "sourceType": "module"62 },

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 63–65
63 "env": {
64 "browser": true,65 "mocha": true,

Export Mitt types for TS consumers (#101)Jack Franklinbefore adoptioneb2be7c

line 66why, one step back
66 "jest": false,

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 67–70
67 "es6": true
68 },69 "globals": {70 "expect": true

Enforce semicolonsJason Millerbefore adoptionf9c8ea3

lines 71–72why, one step back
71 },
72 "rules": {

Add Standard Version for Semantic Releases (#43)Abhi Aiyerbefore adoptiond728e90

lines 73–75why, one step back
73 "semi": [
74 2,75 "always"

Migrate to TypeScript and use Map (#99)Jack Franklinbefore adoptionbe5237f

line 76why, one step back
76 ],

Export Mitt types for TS consumers (#101)Jack Franklinbefore adoptioneb2be7c

line 77why, one step back
77 "jest/valid-expect": 0,

Migrate to TypeScript and use Map (#99)Jack Franklinbefore adoptionbe5237f

lines 78–79why, one step back
78 "@typescript-eslint/no-explicit-any": 0,
79 "@typescript-eslint/explicit-function-return-type": 0,

Update all dependenciesJason Millerbefore adoptiondd64eea

line 80why, one step back
80 "@typescript-eslint/explicit-module-boundary-types": 0,

Migrate to TypeScript and use Map (#99)Jack Franklinbefore adoptionbe5237f

line 81why, one step back
81 "@typescript-eslint/no-empty-function": 0

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 82–83
82 }
83 },

Export Mitt types for TS consumers (#101)Jack Franklinbefore adoptioneb2be7c

line 84why, one step back
84 "eslintIgnore": [

Add generic types and update tests (#107)Jack Franklinbefore adoption5116df4

lines 85–86why, one step back
85 "dist",
86 "index.d.ts"

Export Mitt types for TS consumers (#101)Jack Franklinbefore adoptioneb2be7c

line 87why, one step back
87 ],

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 88
88 "devDependencies": {

Update all dependenciesJason Millerbefore adoptiondd64eea

lines 89–95why, one step back
89 "@types/chai": "^4.2.11",
90 "@types/mocha": "^7.0.2",91 "@types/sinon": "^9.0.4",92 "@types/sinon-chai": "^3.2.4",93 "@typescript-eslint/eslint-plugin": "^3.0.1",94 "@typescript-eslint/parser": "^3.0.1",95 "chai": "^4.2.0",

Migrate to TypeScript and use Map (#99)Jack Franklinbefore adoptionbe5237f

line 96why, one step back
96 "documentation": "^13.0.0",

Update all dependenciesJason Millerbefore adoptiondd64eea

line 97why, one step back
97 "eslint": "^7.1.0",

Use eslint-config-developitJason Millerbefore adoption59cc3d1

line 98why, one step back
98 "eslint-config-developit": "^1.2.0",

fix test runnerJason Millerbefore adoption80bbdbe

line 99why, one step back
99 "esm": "^3.2.25",

Add generic types and update tests (#107)Jack Franklinbefore adoption5116df4

lines 100–101why, one step back
100 "microbundle": "^0.12.3",
101 "mocha": "^8.0.1",

Update all dependenciesJason Millerbefore adoptiondd64eea

lines 102–105why, one step back
102 "npm-run-all": "^4.1.5",
103 "rimraf": "^3.0.2",104 "sinon": "^9.0.2",105 "sinon-chai": "^3.5.0",

Add generic types and update tests (#107)Jack Franklinbefore adoption5116df4

line 106why, one step back
106 "ts-node": "^8.10.2",

Migrate to TypeScript and use Map (#99)Jack Franklinbefore adoptionbe5237f

line 107why, one step back
107 "typescript": "^3.9.3"

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 108–109
108 }
109}