-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
package.json
130 lines (130 loc) · 4.21 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
124
125
126
127
128
129
130
{
"name": "opencollective-rest",
"version": "2.2.0",
"repository": {
"type": "git",
"url": "https://github.com/opencollective/opencollective-rest.git"
},
"private": true,
"engines": {
"node": "20.x",
"npm": "10.x"
},
"dependencies": {
"@apollo/client": "3.10.1",
"@babel/core": "7.25.2",
"@babel/plugin-transform-typescript": "7.25.2",
"@babel/preset-env": "7.25.4",
"@hyperwatch/hyperwatch": "4.0.0",
"@json2csv/plainjs": "7.0.6",
"babel-plugin-add-module-exports": "1.0.4",
"cloudflare-ip": "0.0.7",
"cookie-parser": "^1.4.6",
"cors": "2.8.5",
"debug": "4.3.4",
"dotenv": "16.4.5",
"express": "4.19.2",
"express-basic-auth": "1.2.1",
"express-winston": "4.2.0",
"express-ws": "5.0.2",
"graphql": "16.8.1",
"graphql-request": "6.1.0",
"graphql-tag": "2.12.6",
"lodash": "4.17.21",
"moment": "2.30.1",
"node-fetch": "2.7.0",
"omit-deep-lodash": "1.1.7",
"react": "18.3.1",
"winston": "3.13.0"
},
"scripts": {
"build:clean": "rm -rf dist && mkdir dist",
"build:server": "babel ./src --copy-files --extensions .js,.ts -d ./dist",
"build:updates": "npm --prefix node_modules/cloudflare-ip run update-list",
"build": "npm run build:clean && npm run build:updates && npm run build:server",
"commit": "git-cz",
"depcheck": "npx @opencollective/depcheck .",
"deploy:production": "./scripts/pre-deploy.sh production && git push production main",
"deploy:staging": "./scripts/pre-deploy.sh staging && git push -f staging main",
"dev": "nodemon src/server/index.ts -x \"babel-node --extensions .js,.ts\" . -e js,ts",
"git:clean": "./scripts/git_clean.sh",
"graphql:update:local": "cp ../frontend/lib/graphql/*.graphql src/graphql/ && prettier src/graphql/*.graphql --write",
"graphql:update": "npm-run-all graphql:updateV1 graphql:updateV2",
"graphql:updateV1": "curl https://raw.githubusercontent.com/opencollective/opencollective-frontend/main/lib/graphql/schema.graphql --output src/graphql/schema.graphql && prettier src/graphql/schema.graphql --write",
"graphql:updateV2": "curl https://raw.githubusercontent.com/opencollective/opencollective-frontend/main/lib/graphql/schemaV2.graphql --output src/graphql/schemaV2.graphql && prettier src/graphql/schemaV2.graphql --write",
"lint-staged": "lint-staged",
"lint:fix": "npm run lint -- --fix",
"lint:quiet": "npm run lint -- --quiet",
"lint": "eslint . --ext='js,ts,graphql'",
"prepare": "husky",
"prettier:check": "npm run prettier -- --list-different",
"prettier:write": "npm run prettier -- --write",
"prettier": "prettier \"**/*.@(js|ts|json|md)\" --ignore-path .eslintignore",
"start": "node dist/server",
"test:server": "TZ=UTC ./scripts/run_test.sh",
"type:check": "tsc"
},
"devDependencies": {
"@babel/cli": "^7.23.4",
"@babel/node": "^7.25.7",
"@graphql-eslint/eslint-plugin": "^3.20.1",
"@types/express": "^5.0.0",
"@types/lodash": "^4.17.9",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0",
"eslint-config-opencollective": "^4.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^17.7.0",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-simple-import-sort": "^12.1.0",
"husky": "^9.0.7",
"jest": "^29.7.0",
"lint-staged": "^15.1.0",
"nodemon": "^3.0.1",
"npm-run-all2": "^6.0.0",
"prettier": "^3.1.0",
"typescript": "5.5.4"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"jest": {
"testPathIgnorePatterns": [
"opencollective-api/"
]
},
"lint-staged": {
"*.{js,json,md,graphql}": [
"prettier --write"
]
},
"cacheDirectories": [
"node_modules"
],
"@opencollective/depcheck": {
"ignoreDirs": [
"dist"
],
"specials": [
"babel",
"bin",
"commitizen",
"eslint",
"husky",
"lint-staged",
"typescript",
"jest"
],
"ignores": [
"jest",
"typescript",
"@babel/node"
]
},
"heroku-run-build-script": true
}