-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
56 lines (56 loc) · 1.72 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
{
"name": "cosmokit",
"description": "A collection of common utilities",
"version": "1.7.2",
"sideEffects": false,
"type": "module",
"main": "lib/index.cjs",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./lib/index.cjs",
"import": "./lib/index.mjs"
},
"./package.json": "./package.json"
},
"files": [
"lib",
"src"
],
"repository": {
"type": "git",
"url": "git+https://github.com/shigma/cosmokit.git"
},
"bugs": {
"url": "https://github.com/shigma/cosmokit/issues"
},
"homepage": "https://github.com/shigma/cosmokit",
"author": "Shigma <[email protected]>",
"license": "MIT",
"scripts": {
"compile:cjs": "esbuild src/index.ts --outfile=lib/index.cjs --bundle --sourcemap --sources-content=false --platform=node --target=es2022",
"compile:esm": "esbuild src/index.ts --outfile=lib/index.mjs --bundle --sourcemap --sources-content=false --platform=neutral --target=es2022",
"build": "yarn compile:cjs && yarn compile:esm && yarn dtsc",
"test": "mocha -r esbuild-register tests/*.spec.ts",
"test:text": "shx rm -rf coverage && c8 -r text yarn test",
"test:json": "shx rm -rf coverage && c8 -r json yarn test",
"test:html": "shx rm -rf coverage && c8 -r html yarn test"
},
"devDependencies": {
"@sinonjs/fake-timers": "^6.0.1",
"@types/chai": "^4.3.16",
"@types/mocha": "^9.1.1",
"@types/node": "^22.7.5",
"@types/sinonjs__fake-timers": "^6.0.4",
"c8": "^7.14.0",
"chai": "^5.1.2",
"dtsc": "^3.0.4",
"esbuild": "^0.24.2",
"esbuild-register": "^3.6.0",
"mocha": "^9.2.2",
"shx": "^0.3.4",
"typescript": "^5.7.3"
}
}