-
Notifications
You must be signed in to change notification settings - Fork 285
/
package.json
87 lines (87 loc) · 3.06 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
{
"name": "@cloud-carbon-footprint/azure",
"version": "1.8.0",
"license": "Apache-2.0",
"description": "The core logic to get cloud usage data and estimate energy and carbon emissions from Microsoft Azure.",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
"main": "dist/index.js"
},
"homepage": "https://www.cloudcarbonfootprint.org/",
"repository": {
"type": "git",
"url": "git+https://github.com/cloud-carbon-footprint/cloud-carbon-footprint.git",
"directory": "packages/azure"
},
"keywords": [
"thoughtworks",
"cloud",
"sustainability",
"climate",
"carbon-emissions",
"carbon-footprint"
],
"scripts": {
"precommit": "lint-staged --no-stash && yarn test --coverage --runInBand --bail",
"test": "jest",
"type-check": "tsc --noEmit",
"sonar:scan": "sonar-scanner",
"test:watch": "yarn test --coverage --watchAll",
"build": "rimraf dist && yarn build:tsc && yarn prepack && cp package.json dist && yarn postpack",
"build:workspace": "mkdir -p ../../dist-workspace/packages/azure/dist && cp -R dist ../../dist-workspace/packages/azure && mv ../../dist-workspace/packages/azure/dist/package.json ../../dist-workspace/packages/azure",
"build:update": "node ../../scripts/update-package-dependencies.js azure core common",
"prepack": "ts-node ../../scripts/prepack.ts",
"postpack": "ts-node ../../scripts/postpack.ts",
"build:tsc": "tsc --build tsconfig.json",
"build:watch": "onchange 'src/**/*.ts' -- yarn build",
"view:coverage": "serve coverage/lcov-report",
"clean": "rimraf dist && rimraf coverage && rimraf logs",
"lint": "eslint '*/**/*.ts' --quiet",
"lint:fix": "eslint '*/**/*.ts' --quiet --fix"
},
"dependencies": {
"@azure/arm-advisor": "^3.1.0",
"@azure/arm-consumption": "^9.2.0",
"@azure/arm-resources-subscriptions": "^2.0.2",
"@azure/identity": "^3.2.2",
"@azure/ms-rest-js": "^2.6.6",
"@azure/ms-rest-nodeauth": "^3.1.1",
"@cloud-carbon-footprint/common": "^1.14.0",
"@cloud-carbon-footprint/core": "^0.17.3",
"@google-cloud/secret-manager": "^3.10.1",
"moment": "^2.29.1"
},
"devDependencies": {
"@types/jest": "^27.4.0",
"@types/jest-when": "^3.5.0",
"@types/node": "^17.0.8",
"@types/source-map-support": "^0.5.3",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"jest": "^27.4.7",
"jest-when": "^3.5.0",
"lint-staged": "^12.1.7",
"onchange": "^7.1.0",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"source-map-support": "^0.5.19",
"ts-jest": "^27.1.2",
"ts-node": "^10.4.0",
"ts-node-dev": "^2.0.0",
"typescript": "^4.6.2"
},
"lint-staged": {
"*.{js,ts}": [
"yarn lint",
"prettier --write --ignore-unknown --config ../../.prettierrc.json"
],
"*.{md}": [
"prettier --write --ignore-unknown --config ../../.prettierrc.json"
]
}
}