Update dependencies and simplify predeploy (#723)
This commit is contained in:
parent
aa10281f1b
commit
ecea86e876
@ -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.\
|
||||
|
35844
frontend/package-lock.json
generated
35844
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||
},
|
||||
|
@ -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() {
|
||||
|
6
frontend/tsconfig-rules.json
Normal file
6
frontend/tsconfig-rules.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user