-
Notifications
You must be signed in to change notification settings - Fork 25
/
package.json
97 lines (97 loc) · 4.01 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
94
95
96
97
{
"name": "cancelable-promise",
"version": "4.3.1",
"description": "A simple cancelable promise",
"keywords": [
"promise",
"cancelable",
"cancellable"
],
"main": "umd/CancelablePromise.js",
"browser": "umd/CancelablePromise.js",
"module": "esm/CancelablePromise.mjs",
"types": "esm/CancelablePromise.d.ts",
"files": [
"umd/CancelablePromise.js",
"umd/CancelablePromise.js.map",
"umd/CancelablePromise.min.js",
"umd/CancelablePromise.min.js.map",
"umd/CancelablePromise.d.ts",
"esm/CancelablePromise.mjs",
"esm/CancelablePromise.mjs.map",
"esm/CancelablePromise.min.mjs",
"esm/CancelablePromise.min.mjs.map",
"esm/CancelablePromise.d.ts",
"src/CancelablePromise.ts",
"LICENSE",
"README.md",
"CODE_OF_CONDUCT.md",
"CHANGELOG.md"
],
"scripts": {
"build:babel:umd": "BABEL_ENV=umd babel src/CancelablePromise.ts -x '.ts' -d umd -s",
"build:babel:esm": "BABEL_ENV=esm babel src/CancelablePromise.ts -x '.ts' -d esm -s -f 'CancelablePromise.mjs' --out-file-extension '.mjs'",
"build:type": "tsc --project tsconfig.build.json --declaration --emitDeclarationOnly --outDir umd",
"build:umd": "npm run build:babel:umd && npm run build:type",
"build:esm": "npm run build:babel:esm",
"build": "npm run clean && npm run build:umd && npm run build:esm && npm run copy && npm run uglify",
"clean": "node scripts.js clean",
"copy": "node scripts.js copy",
"cypress:electron": "cypress run --browser electron --headless",
"cypress": "cypress run --browser chrome --headless",
"jest:rc": "BABEL_ENV=test jest --findRelatedTests --passWithNoTests",
"jest": "BABEL_ENV=test jest --ci --maxWorkers 1",
"lint:rc": "eslint --ext .js,.ts --fix",
"lint": "eslint . --ext .js,.ts",
"prepare": "husky install",
"prepublishOnly": "npm run build",
"prettier:rc": "prettier --write",
"prettier": "prettier --write .",
"release:major:nc": "node scripts.js prepare_release major --no-commit",
"release:major": "node scripts.js prepare_release major",
"release:minor:nc": "node scripts.js prepare_release minor --no-commit",
"release:minor": "node scripts.js prepare_release minor",
"release:patch:nc": "node scripts.js prepare_release patch --no-commit",
"release:patch": "node scripts.js prepare_release patch",
"test:e2e": "concurrently 'npm run test:serve' 'wait-on http://localhost:3000/esm.html && npm run cypress' --kill-others --kill-others-on-fail --success first",
"test:serve": "node tests/esm.server.js",
"test": "npm run types && npm run lint && npm run jest",
"types": "tsc --project tsconfig.json --noEmit --pretty",
"uglify:esm": "terser esm/CancelablePromise.mjs -c -m -o esm/CancelablePromise.min.mjs --source-map \"filename='CancelablePromise.min.mjs.map',url='CancelablePromise.min.mjs.map'\"",
"uglify:umd": "terser umd/CancelablePromise.js -c -m -o umd/CancelablePromise.min.js --source-map \"filename='CancelablePromise.min.js.map',url='CancelablePromise.min.js.map'\"",
"uglify": "npm run uglify:umd && npm run uglify:esm"
},
"repository": {
"type": "git",
"url": "git+https://github.com/alkemics/CancelablePromise.git"
},
"author": "Alkemics",
"license": "MIT",
"bugs": {
"url": "https://github.com/alkemics/CancelablePromise/issues"
},
"homepage": "https://github.com/alkemics/CancelablePromise#readme",
"devDependencies": {
"@babel/cli": "~7.25.9",
"@babel/core": "~7.26.0",
"@babel/preset-env": "~7.26.0",
"@babel/preset-typescript": "~7.26.0",
"@types/jest": "~29.5.14",
"@typescript-eslint/eslint-plugin": "~7.18.0",
"@typescript-eslint/parser": "~7.18.0",
"concurrently": "~9.1.0",
"core-js": "~3.39.0",
"cypress": "~13.15.2",
"eslint": "~8.57.1",
"express": "~4.21.1",
"fs-extra": "~11.2.0",
"husky": "~9.1.7",
"jest": "~29.7.0",
"lint-staged": "~15.2.10",
"prettier": "~3.3.3",
"semver": "~7.6.3",
"terser": "~5.36.0",
"typescript": "~5.6.3",
"wait-on": "~8.0.1"
}
}