-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
123 lines (123 loc) · 3.11 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"name": "solarnetwork-control-toggler",
"version": "2.1.1",
"description": "SolarNetwork Control Toggler",
"keywords": [
"solarnetwork"
],
"homepage": "https://github.com/SolarNetwork/sn-control-toggler-js",
"license": "Apache-2.0",
"author": {
"name": "SolarNetwork Foundation",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/SolarNetwork/sn-control-toggler-js.git"
},
"type": "module",
"main": "lib/index.js",
"engines": {
"node": ">=18"
},
"files": [
"lib"
],
"sideEffects": false,
"ava": {
"files": [
"src/test/**/*Tests.ts"
],
"typescript": {
"rewritePaths": {
"src/": "build/"
},
"compile": "tsc"
}
},
"c8": {
"exclude": [
"src/test/**"
],
"exclude-after-remap": true,
"reporter": [
"text",
"html"
]
},
"config": {
"generateRelease": {
"no_confirm": false,
"remote": "origin",
"pre_commit_commands": [
"npm run prettier:write",
"npm run lint",
"npm run build",
"npm run build:dist",
"npm run build:bundle"
],
"post_commit_commands": [
"npm test"
],
"post_complete_commands": [
"npm publish",
"npmversion --increment prepatch --preid dev --nogit-tag"
],
"files_to_commit": [
"./lib/*"
]
}
},
"scripts": {
"build": "tsc",
"build:dist": "tsc --build tsconfig.dist.json",
"build:bundle": "rollup --config rollup.config.mjs --banner \"$(preamble)\" -m -o lib/solarnetwork-control-toggler.es.js",
"pretest": "npm run build",
"test": "c8 ava",
"coverage": "c8 --reporter=lcov ava",
"preapidoc": "npm run build",
"apidoc": "typedoc",
"release": "generate-release --current-version \"$(bin/remove-preid.cjs)\"",
"lint": "eslint --ext .ts --fix src/main",
"prettier": "prettier --config .prettierrc.json \"src/**/*.ts\" --check",
"prettier:write": "prettier --config .prettierrc.json \"src/**/*.ts\" --write"
},
"dependencies": {
"solarnetwork-api-core": "^2.2.2"
},
"devDependencies": {
"@ava/typescript": "^5.0.0",
"@rollup/plugin-typescript": "^11.1.6",
"@tsconfig/node18": "^18.2.4",
"@types/crypto-js": "^4.2.2",
"@types/d3-array": "^3.2.1",
"@types/d3-collection": "^1.0.13",
"@types/d3-queue": "^3.0.10",
"@types/d3-time": "^3.0.3",
"@types/d3-time-format": "^4.0.3",
"@types/node": "^20.12.8",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"ava": "^6.1.3",
"c8": "^9.1.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"generate-release": "^1.1.1",
"moment": "^2.30.1",
"npmversion": "^1.7.0",
"package-preamble": "^0.1.0",
"rollup": "^4.17.2",
"semver": "^7.6.0",
"tslib": "^2.6.2",
"typedoc": "^0.25.13",
"typescript": "^5.4.5",
"undici": "^6.19.2"
},
"overrides": {
"json5": "2.2.3",
"lodash": "4.17.21",
"minimist": "1.2.8",
"semver": "$semver"
}
}