Skip to content
Myr

package.json

This file

Path

package.json

86 lines · 2.4 KiB · JSON

Last changed by

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

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–17why, 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",17 "build": "npm-run-all --silent clean -p bundle -s docs size",

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 20
20 "size": "echo \"Gzipped Size: $(strip-json-comments --no-whitespace $npm_package_main | gzip-size | pretty-bytes)\"",

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

Merge branch 'master' into refactorCharlike Mike Reagentbefore adoption70e8ad1

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

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

line 36why, one step back
36 "dist"

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

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

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

update depsJason Millerbefore adoptiondbd661a

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 48–54
48 "env": {
49 "browser": true,50 "mocha": true,51 "es6": true52 },53 "globals": {54 "expect": true

Enforce semicolonsJason Millerbefore adoptionf9c8ea3

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

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

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

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

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

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 69
69 "chai": "^3.5.0",

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

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

update depsJason Millerbefore adoptiondbd661a

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

fix test runnerJason Millerbefore adoption80bbdbe

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 73
73 "gzip-size-cli": "^1.0.0",

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 75–76
75 "mocha": "^3.2.0",
76 "npm-run-all": "^2.1.1",

Merge pull request #7 from svincent/pretty-bytesJason Millerbefore adoption8058961

line 77why, one step back
77 "pretty-bytes-cli": "^2.0.0",

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 78–80
78 "rimraf": "^2.5.2",
79 "sinon": "^1.17.4",80 "sinon-chai": "^2.8.0",

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 82
82 "strip-json-comments-cli": "^1.0.1",

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

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

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 85–86
85 }
86}