-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
93 lines (93 loc) · 2.44 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"name": "@github/memoize",
"version": "0.0.0-dev",
"description": "A simple Memoize helper, with TypeScript decorator support!",
"repository": {
"type": "git",
"url": "git+https://github.com/github/memoize"
},
"license": "MIT",
"author": "GitHub Inc. (https://github.com)",
"type": "module",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
".": {
"module": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/esm/index.d.ts"
},
"./decorator": {
"module": "./dist/esm/decorator.js",
"import": "./dist/esm/decorator.js",
"require": "./dist/cjs/decorator.js",
"types": "./dist/esm/decorator.d.ts"
}
},
"types": "./dist/esm/index.d.ts",
"files": [
"dist",
"decorator"
],
"scripts": {
"prebuild": "npm run clean && npm run lint && mkdir dist",
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir dist/cjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
"clean": "rm -rf dist",
"lint": "eslint --report-unused-disable-directives . --color --ext .js,.ts,.tsx && tsc --noEmit",
"prepublishOnly": "npm run build",
"test": "node --loader ts-node/esm.mjs node_modules/mocha/lib/cli/cli.js"
},
"prettier": "@github/prettier-config",
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"github"
],
"extends": [
"plugin:github/browser",
"plugin:github/recommended",
"plugin:github/typescript",
"plugin:escompat/recommended"
],
"rules": {
"no-invalid-this": "off",
"no-shadow": "off"
},
"overrides": [
{
"files": "test/*",
"rules": {
"no-shadow": "off"
}
}
]
},
"eslintIgnore": [
"dist/"
],
"mocha": {
"extension": [
"ts"
]
},
"devDependencies": {
"@github/prettier-config": "0.0.4",
"@types/chai": "^4.2.11",
"@types/chai-spies": "^1.0.1",
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.19",
"@typescript-eslint/parser": "^3.6.0",
"chai": "^4.2.0",
"chai-spies": "^1.0.0",
"eslint": "^6.0.0",
"eslint-plugin-compat": "^3.5.1",
"eslint-plugin-escompat": "^3.1.0",
"eslint-plugin-github": "^4.0.1",
"mocha": "^10.2.0",
"ts-node": "^10.9.1",
"typescript": "^4.6.4"
}
}