Update dependencies and simplify predeploy (#723)

This commit is contained in:
Fred Tingaud 2022-01-18 16:30:19 +01:00 committed by GitHub
parent aa10281f1b
commit ecea86e876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26309 additions and 9580 deletions

View File

@ -23,15 +23,6 @@ See the section about [running tests](https://facebook.github.io/create-react-ap
Custom command to build the search index.
**Note:** For this command to work on Windows, you would need to replace in `package.json`
```json
"prepare-rules": "ts-node -O '{\"module\":\"commonjs\"}' ./src/deployment/index.ts"
```
with
```json
"prepare-rules": "ts-node -O {\"\"\"module\"\"\":\"\"\"commonjs\"\"\"} ./src/deployment/index.ts"
```
### `npm run build`
Builds the app for production to the `build` folder.\

35866
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -22,13 +22,14 @@
"react-dom": "^17.0.1",
"react-highlight": "^0.14.0",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.1",
"react-scripts": "^5.0.0",
"setimmediate": "^1.0.5",
"string-strip-html": "^8.0.1",
"ts-node": "^9.1.1",
"typescript": "^4.1.3",
"verror": "^1.10.0",
"web-vitals": "^0.2.4",
"winston": "^3.3.3",
"winston": "^3.4.0",
"yargs": "^16.2.0"
},
"scripts": {
@ -36,7 +37,7 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"prepare-rules": "ts-node -O '{\"module\":\"commonjs\"}' ./src/deployment/index.ts",
"prepare-rules": "ts-node -P tsconfig-rules.json ./src/deployment/index.ts",
"predeploy": "npm run prepare-rules && npm run build",
"deploy": "gh-pages -d build"
},

View File

@ -1,6 +1,7 @@
import fs from 'fs';
import { process_incomplete_rspecs, PullRequest } from '../pullRequestIndexing';
import Git from 'nodegit';
import 'setimmediate';
jest.mock('@octokit/rest', () => {
let mockModule = {Octokit: function() {

View File

@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs"
}
}