Skip to content
Myr

package.json

This file

Path

package.json

82 lines · 2.2 KiB · JSON

Last changed by

remove older gzip size calculationJason Millerbefore adoption34ce9a4

History of this file

Take it

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

1.2.0Jason Millerbefore adoptiona4e20b1

line 3why, one step back
3 "version": "1.2.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",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 11
11 "scripts": {

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

line 12why, one step back
12 "bump": "standard-version",

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

lines 13–16why, one step back
13 "testonly": "mocha --require esm --require ts-node/register test/**/*.js",
14 "lint": "eslint src test --ext ts --ext js",15 "test": "tsc src/index.ts --noEmit && npm run lint && npm run testonly",16 "bundle": "microbundle",

remove older gzip size calculationJason Millerbefore adoption34ce9a4

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

Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea

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

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

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

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

line 20why, one step back
20 "release": "npm run build -s && npm run bump && git push --follow-tags origin master && npm publish"

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

Merge branch 'master' into refactorCharlike Mike Reagentbefore adoption70e8ad1

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

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

line 35why, one step back
35 "dist"

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 36–37
36 ],
37 "eslintConfig": {

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

lines 38–43why, one step back
38 "extends": [
39 "eslint:recommended",40 "plugin:@typescript-eslint/eslint-recommended",41 "plugin:@typescript-eslint/recommended"42 ],43 "parser": "@typescript-eslint/parser",

update depsJason Millerbefore adoptiondbd661a

lines 44–46why, one step back
44 "parserOptions": {
45 "sourceType": "module"46 },

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 47–53
47 "env": {
48 "browser": true,49 "mocha": true,50 "es6": true51 },52 "globals": {53 "expect": true

Enforce semicolonsJason Millerbefore adoptionf9c8ea3

lines 54–55why, one step back
54 },
55 "rules": {

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

lines 56–58why, one step back
56 "semi": [
57 2,58 "always"

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

lines 59–62why, one step back
59 ],
60 "@typescript-eslint/no-explicit-any": 0,61 "@typescript-eslint/explicit-function-return-type": 0,62 "@typescript-eslint/no-empty-function": 0

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 63–65
63 }
64 },65 "devDependencies": {

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

lines 66–67why, one step back
66 "@typescript-eslint/eslint-plugin": "^2.34.0",
67 "@typescript-eslint/parser": "^2.34.0",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 68
68 "chai": "^3.5.0",

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

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

update depsJason Millerbefore adoptiondbd661a

line 70why, one step back
70 "eslint": "^6.5.1",

fix test runnerJason Millerbefore adoption80bbdbe

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

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 73–77
73 "mocha": "^3.2.0",
74 "npm-run-all": "^2.1.1",75 "rimraf": "^2.5.2",76 "sinon": "^1.17.4",77 "sinon-chai": "^2.8.0",

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

line 78why, one step back
78 "standard-version": "^4.0.0",

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 81–82
81 }
82}