Skip to content
Myr

package.json

This file

Path

package.json

113 lines · 2.9 KiB · JSON

Last changed by

3.0.0Jason Millerbefore adoption13905bd

History of this file

Take it

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

3.0.0Jason Millerbefore adoption13905bd

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

Update docs.Jason Millerbefore adoption07f8819

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

Add Package Exports configuration (#139)Jason Millerbefore adoptionf3990ec

line 5why, one step back
5 "module": "dist/mitt.mjs",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 6
6 "main": "dist/mitt.js",

Add Package Exports configuration (#139)Jason Millerbefore adoptionf3990ec

line 7why, one step back
7 "jsnext:main": "dist/mitt.mjs",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 8
8 "umd:main": "dist/mitt.umd.js",

Add Package Exports configuration (#139)Jason Millerbefore adoptionf3990ec

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

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

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

Add Package Exports configuration (#139)Jason Millerbefore adoptionf3990ec

lines 11–15why, one step back
11 "exports": {
12 "import": "./dist/mitt.mjs",13 "require": "./dist/mitt.js",14 "default": "./dist/mitt.mjs"15 },

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 16
16 "scripts": {

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

lines 17–18why, one step back
17 "test": "npm-run-all --silent typecheck lint mocha test-types",
18 "mocha": "mocha test",

Merge branch 'master' into patch_123Jason Millerbefore adoption53eb689

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

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

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

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

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

Add Package Exports configuration (#139)Jason Millerbefore adoptionf3990ec

line 22why, one step back
22 "bundle": "microbundle -f es,cjs,umd",

remove older gzip size calculationJason Millerbefore adoption34ce9a4

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

Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea

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

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

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

2.1.0Jason Millerbefore adoption22c5dcb

line 26why, one step back
26 "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 27–31
27 },
28 "repository": "developit/mitt",29 "keywords": [30 "events",31 "eventemitter",

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 33–34
33 "pubsub"
34 ],

Merge branch 'master' into refactorCharlike Mike Reagentbefore adoption70e8ad1

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 36–40
36 "authors": [
37 "Jason Miller <jason@developit.ca>"38 ],39 "license": "MIT",40 "files": [

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

lines 41–42why, one step back
41 "dist",
42 "index.d.ts"

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 43
43 ],

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 56
56 "eslintConfig": {

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

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

Use eslint-config-developitJason Millerbefore adoption59cc3d1

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

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

lines 59–62why, one step back
59 "plugin:@typescript-eslint/eslint-recommended",
60 "plugin:@typescript-eslint/recommended"61 ],62 "parser": "@typescript-eslint/parser",

update depsJason Millerbefore adoptiondbd661a

lines 63–65why, one step back
63 "parserOptions": {
64 "sourceType": "module"65 },

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 66–68
66 "env": {
67 "browser": true,68 "mocha": true,

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 70–73
70 "es6": true
71 },72 "globals": {73 "expect": true

Enforce semicolonsJason Millerbefore adoptionf9c8ea3

lines 74–75why, one step back
74 },
75 "rules": {

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

lines 76–78why, one step back
76 "semi": [
77 2,78 "always"

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

line 79why, one step back
79 ],

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

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

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

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

Update all dependenciesJason Millerbefore adoptiondd64eea

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

Merge branch 'master' into patch_123Jason Millerbefore adoption53eb689

lines 84–85why, one step back
84 "@typescript-eslint/no-empty-function": 0,
85 "@typescript-eslint/no-non-null-assertion": 0

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 86–87
86 }
87 },

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

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

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

lines 89–90why, one step back
89 "dist",
90 "index.d.ts"

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

line 91why, one step back
91 ],

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 92
92 "devDependencies": {

Update all dependenciesJason Millerbefore adoptiondd64eea

lines 93–99why, one step back
93 "@types/chai": "^4.2.11",
94 "@types/mocha": "^7.0.2",95 "@types/sinon": "^9.0.4",96 "@types/sinon-chai": "^3.2.4",97 "@typescript-eslint/eslint-plugin": "^3.0.1",98 "@typescript-eslint/parser": "^3.0.1",99 "chai": "^4.2.0",

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

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

Update all dependenciesJason Millerbefore adoptiondd64eea

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

Use eslint-config-developitJason Millerbefore adoption59cc3d1

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

fix test runnerJason Millerbefore adoption80bbdbe

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

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

lines 104–105why, one step back
104 "microbundle": "^0.12.3",
105 "mocha": "^8.0.1",

Update all dependenciesJason Millerbefore adoptiondd64eea

lines 106–109why, one step back
106 "npm-run-all": "^4.1.5",
107 "rimraf": "^3.0.2",108 "sinon": "^9.0.2",109 "sinon-chai": "^3.5.0",

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

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

Merge branch 'master' into patch_123Jason Millerbefore adoption53eb689

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 112–113
112 }
113}