Merge pull request #1 from carlosms/upgrade
Upgrade dependencies to fix vulnerabilities
This commit is contained in:
commit
b29ece8904
3
images.d.ts
vendored
3
images.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
declare module '*.svg'
|
||||
declare module '*.png'
|
||||
declare module '*.jpg'
|
35
package.json
35
package.json
@ -21,22 +21,33 @@
|
||||
"dependencies": {
|
||||
"react": "^16.3.2",
|
||||
"react-dom": "^16.3.2",
|
||||
"react-scripts-ts": "2.16.0",
|
||||
"vscode": "^1.1.17"
|
||||
"terser": "3.16.0",
|
||||
"vscode": "^1.1.17"
|
||||
},
|
||||
"resolutions": {
|
||||
"terser": "3.14.1"
|
||||
},
|
||||
"scripts": {
|
||||
"vscode:prepublish": "react-scripts-ts build && tsc -p tsconfig.extension.json",
|
||||
"vscode:prepublish": "./scripts/build-non-split.js && tsc -p tsconfig.extension.json",
|
||||
"postinstall": "node ./node_modules/vscode/bin/install",
|
||||
"start": "react-scripts-ts start",
|
||||
"build": "react-scripts-ts build && tsc -p tsconfig.extension.json",
|
||||
"test": "react-scripts-ts test --env=jsdom",
|
||||
"eject": "react-scripts-ts eject"
|
||||
"start": "react-scripts start",
|
||||
"build": "./scripts/build-non-split.js && tsc -p tsconfig.extension.json",
|
||||
"test": "react-scripts test --env=jsdom",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^22.2.3",
|
||||
"@types/node": "^10.1.2",
|
||||
"typescript": "^2.8.3",
|
||||
"@types/jest": "^23.3.13",
|
||||
"@types/node": "^10.1.2",
|
||||
"@types/react": "^16.3.14",
|
||||
"@types/react-dom": "^16.0.5"
|
||||
}
|
||||
"@types/react-dom": "^16.0.5",
|
||||
"react-scripts": "^2.1.3",
|
||||
"rewire": "^4.0.1",
|
||||
"typescript": "^3.3.1"
|
||||
},
|
||||
"browserslist": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not ie <= 11",
|
||||
"not op_mini all"
|
||||
]
|
||||
}
|
||||
|
16
scripts/build-non-split.js
Executable file
16
scripts/build-non-split.js
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
// Disables code splitting into chunks
|
||||
// See https://github.com/facebook/create-react-app/issues/5306#issuecomment-433425838
|
||||
|
||||
const rewire = require("rewire");
|
||||
const defaults = rewire("react-scripts/scripts/build.js");
|
||||
let config = defaults.__get__("config");
|
||||
|
||||
config.optimization.splitChunks = {
|
||||
cacheGroups: {
|
||||
default: false
|
||||
}
|
||||
};
|
||||
|
||||
config.optimization.runtimeChunk = false;
|
1
src/react-app-env.d.ts
vendored
Normal file
1
src/react-app-env.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
/// <reference types="react-scripts" />
|
@ -1,31 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"outDir": "build/dist",
|
||||
"module": "esnext",
|
||||
"target": "es5",
|
||||
"lib": ["es6", "dom"],
|
||||
"sourceMap": true,
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"allowJs": true,
|
||||
"jsx": "react",
|
||||
"moduleResolution": "node",
|
||||
"rootDir": "src",
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noImplicitReturns": true,
|
||||
"noImplicitThis": true,
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"suppressImplicitAnyIndexErrors": true,
|
||||
"noUnusedLocals": true
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"jsx": "preserve"
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"build",
|
||||
"scripts",
|
||||
"acceptance-tests",
|
||||
"webpack",
|
||||
"jest",
|
||||
"src/setupTests.ts",
|
||||
".vscode-test"
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": "./tsconfig.json"
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user