-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
75 lines (75 loc) · 2.14 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
{
"name": "sleep-please",
"version": "1.0.5",
"description": "Pause execution (sleep)",
"exports": {
".": {
"import": {
"types": "./lib/esm/types/index.d.ts",
"default": "./lib/esm/index.mjs"
},
"require": {
"types": "./lib/cjs/types/index.d.ts",
"default": "./lib/cjs/index.js"
}
}
},
"types": "./lib/cjs/types/index.d.ts",
"main": "./lib/cjs/index.js",
"files": [
"lib/**/*"
],
"scripts": {
"rename-esm": "renamer --find js --replace mjs ./lib/esm/*",
"add-file-ending-to-esm-imports": "node addFileEndingToEsmImports.js",
"clean": "rimraf lib",
"build": "npm run clean && npm run build:esm && npm run build:cjs",
"build:esm": "tsc -p ./configs/tsconfig.esm.json && npm run rename-esm && npm run add-file-ending-to-esm-imports",
"build:cjs": "tsc -p ./configs/tsconfig.cjs.json",
"test": "mocha --config test/runners/mocha/.mocharc.jsonc",
"semantic-release": "semantic-release",
"prepack": "npm run build",
"start": "node lib/cjs/index.js | pino-pretty",
"pub": "npm version patch --force && npm publish",
"pub-npmjs": "shx cp .npmrc-npmjs .npmrc && npm run pub",
"pub-private": "shx cp .npmrc-private .npmrc && npm run pub",
"typedoc": "typedoc --tsconfig ./configs/tsconfig.esm.json src/sleep.ts "
},
"release": {
"branches": [
"main"
]
},
"repository": {
"type": "git",
"url": "https://github.com/sasuw/sleep-please"
},
"keywords": [
"sleep",
"wait",
"pause"
],
"author": "Sasu Welling",
"license": "BSD 0-clause",
"bugs": {
"url": "https://github.com/sasuw/sleep-please/issues"
},
"homepage": "https://github.com/sasuw/sleep-please#readme",
"devDependencies": {
"@types/chai": "^4.3.3",
"@types/expect": "^24.3.0",
"@types/mocha": "^9.1.1",
"chai": "^4.3.6",
"mocha": "^10.0.0",
"pino-pretty": "^9.1.0",
"renamer": "^4.0.0",
"replace-in-file": "^6.3.5",
"rimraf": "^3.0.2",
"semantic-release": "^19.0.3",
"shx": "^0.3.4",
"ts-mockito": "^2.6.1",
"ts-node": "^10.9.1",
"typedoc": "^0.23.15",
"typescript": "^4.7.4"
}
}