-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
43 lines (43 loc) · 1.03 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
{
"name": "poll",
"version": "1.0.0",
"license": "MIT",
"description": "A simple poll function based on async, await, and an infinite loop",
"keywords": [
"poll",
"async",
"await"
],
"repository": "kleinfreund/poll",
"bugs": {
"url": "https://github.com/kleinfreund/poll/issues"
},
"author": {
"name": "Philipp Rudloff",
"url": "https://kleinfreund.de"
},
"engines": {
"node": ">=8"
},
"main": "dist/cjs/poll",
"module": "dist/esm/poll.mjs",
"sideEffects": false,
"files": [
"cjs",
"dist"
],
"scripts": {
"prepublishOnly": "npm test",
"prepack": "npm run build",
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc --module esnext --outDir dist/esm && npm run rename-to-mjs",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"test": "jest --collect-coverage",
"rename-to-mjs": "mv dist/esm/poll.js dist/esm/poll.mjs"
},
"devDependencies": {
"@types/jest": "^24.0.16",
"jest": "^24.8.0",
"typescript": "^3.5.3"
}
}