-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
79 lines (79 loc) · 2.71 KB
/
package.json
File metadata and controls
79 lines (79 loc) · 2.71 KB
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
{
"name": "@contentstack/utils",
"version": "1.6.2",
"description": "Contentstack utilities for Javascript",
"main": "dist/index.es.js",
"types": "dist/types/index.d.ts",
"files": [
"dist"
],
"keywords": [
"Contentstack",
"contentstack",
"contentstack javascript",
"Contentstack javascript"
],
"repository": {
"type": "git",
"url": "https://github.com/contentstack/contentstack-utils-javascript.git"
},
"scripts": {
"clear:reports": "rm -rf reports",
"clear:badges": "rm -rf badges",
"pretest": "npm run build",
"test": "npm run clear:reports && pwd && jest --ci --json --coverage --testLocationInResults --outputFile=./reports/report.json",
"test:badges": "npm run clear:badges && npm run test && jest-coverage-badges --input ./reports/coverage/coverage-summary.json --output ./badges",
"test:debug": "jest --watchAll --runInBand",
"prebuild": "rimraf dist && mkdir -p dist/lib && npm run download-regions",
"download-regions": "curl -v --max-time 30 --fail https://artifacts.contentstack.com/regions.json -o dist/lib/regions.json || echo 'Warning: Failed to download regions.json'",
"build": "tsc && rollup -c",
"format": "prettier --write \"src/**/*.ts\"",
"prepare": "husky install && npm run build",
"prepublishOnly": "npm test",
"pre-commit": "husky install && husky && chmod +x .husky/pre-commit && ./.husky/pre-commit",
"version": "npm run format && git add -A src",
"postversion": "git push && git push --tags",
"postinstall": "npm run download-regions",
"postupdate": "npm run download-regions"
},
"author": "Contentstack",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/jest": "^26.0.24",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^8.6.0",
"@typescript-eslint/parser": "^8.6.0",
"commitizen": "^4.3.1",
"eslint": "^9.11.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-coverage-badges": "^1.0.0",
"jest-environment-jsdom": "^29.7.0",
"jest-html-reporters": "^2.1.7",
"jest-junit": "^15.0.0",
"jsdom": "^25.0.0",
"jsdom-global": "^3.0.2",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"rollup": "^4.21.3",
"rollup-plugin-typescript2": "^0.36.0",
"snyk": "^1.1300.2",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"pre-commit": "$TALISMAN_HOME/talisman_hook_script pre-commit && other-scripts"
}
}
}