Skip to content
Myr

package.json

This file

Path

package.json

94 lines · 2.5 KiB · JSON

Last changed by

2.0.1Jason Millerbefore adoption5959175

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",

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 12
12 "scripts": {

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

lines 13–14why, one step back
13 "test": "npm-run-all --silent typecheck lint testonly",
14 "testonly": "mocha --require esm test/**/*.js",

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

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

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

line 16why, one step back
16 "typecheck": "tsc **/*.ts --noEmit",

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

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

remove older gzip size calculationJason Millerbefore adoption34ce9a4

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

Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea

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

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

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

2.0.0Jason Millerbefore adoption4594463

line 21why, one step back
21 "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 22–26
22 },
23 "repository": "developit/mitt",24 "keywords": [25 "events",26 "eventemitter",

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 28–29
28 "pubsub"
29 ],

Merge branch 'master' into refactorCharlike Mike Reagentbefore adoption70e8ad1

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

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

line 37why, one step back
37 "dist"

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 38–39
38 ],
39 "eslintConfig": {

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

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

Use eslint-config-developitJason Millerbefore adoption59cc3d1

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

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

lines 42–45why, one step back
42 "plugin:@typescript-eslint/eslint-recommended",
43 "plugin:@typescript-eslint/recommended"44 ],45 "parser": "@typescript-eslint/parser",

update depsJason Millerbefore adoptiondbd661a

lines 46–48why, one step back
46 "parserOptions": {
47 "sourceType": "module"48 },

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 49–51
49 "env": {
50 "browser": true,51 "mocha": true,

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 53–56
53 "es6": true
54 },55 "globals": {56 "expect": true

Enforce semicolonsJason Millerbefore adoptionf9c8ea3

lines 57–58why, one step back
57 },
58 "rules": {

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

lines 59–61why, one step back
59 "semi": [
60 2,61 "always"

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

line 62why, one step back
62 ],

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

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

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

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

Update all dependenciesJason Millerbefore adoptiondd64eea

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

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 68–69
68 }
69 },

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

lines 70–72why, one step back
70 "eslintIgnore": [
71 "dist"72 ],

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 73
73 "devDependencies": {

Update all dependenciesJason Millerbefore adoptiondd64eea

lines 74–80why, one step back
74 "@types/chai": "^4.2.11",
75 "@types/mocha": "^7.0.2",76 "@types/sinon": "^9.0.4",77 "@types/sinon-chai": "^3.2.4",78 "@typescript-eslint/eslint-plugin": "^3.0.1",79 "@typescript-eslint/parser": "^3.0.1",80 "chai": "^4.2.0",

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

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

Update all dependenciesJason Millerbefore adoptiondd64eea

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

Use eslint-config-developitJason Millerbefore adoption59cc3d1

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

fix test runnerJason Millerbefore adoption80bbdbe

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

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

line 85why, one step back
85 "microbundle": "^0.12.0",

Update all dependenciesJason Millerbefore adoptiondd64eea

lines 86–90why, one step back
86 "mocha": "^7.2.0",
87 "npm-run-all": "^4.1.5",88 "rimraf": "^3.0.2",89 "sinon": "^9.0.2",90 "sinon-chai": "^3.5.0",

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

lines 91–92why, one step back
91 "ts-node": "^8.10.1",
92 "typescript": "^3.9.3"

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 93–94
93 }
94}