Skip to content
Myr

package.json

This file

Path

package.json

109 lines · 2.8 KiB · JSON

Last changed by

Remove "src" from published files list (fixes #128)Jason Millerbefore adoption62a2351

History of this file

Take it

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

2.1.0Jason Millerbefore adoption22c5dcb

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

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–14why, one step back
13 "test": "npm-run-all --silent typecheck lint mocha test-types",
14 "mocha": "mocha test",

Stronger typing (#114)iyegoroffbefore adoption8f439b8

line 15why, one step back
15 "test-types": "tsc test/test-types-compilation.ts --noEmit --strict",

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.1.0Jason Millerbefore adoption22c5dcb

line 22why, one step back
22 "release": "npm run -s build -s && npm t && git commit -am $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–36
32 "authors": [
33 "Jason Miller <jason@developit.ca>"34 ],35 "license": "MIT",36 "files": [

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 39
39 ],

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 52
52 "eslintConfig": {

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

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

Use eslint-config-developitJason Millerbefore adoption59cc3d1

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

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

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

update depsJason Millerbefore adoptiondbd661a

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

Enforce semicolonsJason Millerbefore adoptionf9c8ea3

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

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

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

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

line 75why, one step back
75 ],

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

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

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

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

Update all dependenciesJason Millerbefore adoptiondd64eea

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

Stronger typing (#114)iyegoroffbefore adoption8f439b8

lines 80–81why, one step back
80 "@typescript-eslint/no-empty-function": 0,
81 "@typescript-eslint/no-non-null-assertion": 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",

Stronger typing (#114)iyegoroffbefore adoption8f439b8

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 108–109
108 }
109}