Merge pull request #1 from carlosms/upgrade
Upgrade dependencies to fix vulnerabilities
This commit is contained in:
		
							
								
								
									
										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": { |   "dependencies": { | ||||||
|     "react": "^16.3.2", |     "react": "^16.3.2", | ||||||
|     "react-dom": "^16.3.2", |     "react-dom": "^16.3.2", | ||||||
| 	"react-scripts-ts": "2.16.0", |     "terser": "3.16.0", | ||||||
| 	"vscode": "^1.1.17" |     "vscode": "^1.1.17" | ||||||
|  |   }, | ||||||
|  |   "resolutions": { | ||||||
|  |     "terser": "3.14.1" | ||||||
|   }, |   }, | ||||||
|   "scripts": { |   "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", |     "postinstall": "node ./node_modules/vscode/bin/install", | ||||||
|     "start": "react-scripts-ts start", |     "start": "react-scripts start", | ||||||
|     "build": "react-scripts-ts build && tsc -p tsconfig.extension.json", |     "build": "./scripts/build-non-split.js && tsc -p tsconfig.extension.json", | ||||||
|     "test": "react-scripts-ts test --env=jsdom", |     "test": "react-scripts test --env=jsdom", | ||||||
|     "eject": "react-scripts-ts eject" |     "eject": "react-scripts eject" | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "@types/jest": "^22.2.3", |     "@types/jest": "^23.3.13", | ||||||
| 	"@types/node": "^10.1.2", |     "@types/node": "^10.1.2", | ||||||
|     "typescript": "^2.8.3", |  | ||||||
|     "@types/react": "^16.3.14", |     "@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": { |   "compilerOptions": { | ||||||
|     "baseUrl": ".", |  | ||||||
|     "outDir": "build/dist", |  | ||||||
|     "module": "esnext", |  | ||||||
|     "target": "es5", |     "target": "es5", | ||||||
|     "lib": ["es6", "dom"], |     "lib": [ | ||||||
|     "sourceMap": true, |       "dom", | ||||||
|  |       "dom.iterable", | ||||||
|  |       "esnext" | ||||||
|  |     ], | ||||||
|     "allowJs": true, |     "allowJs": true, | ||||||
|     "jsx": "react", |     "skipLibCheck": true, | ||||||
|     "moduleResolution": "node", |     "esModuleInterop": true, | ||||||
|     "rootDir": "src", |     "allowSyntheticDefaultImports": true, | ||||||
|  |     "strict": true, | ||||||
|     "forceConsistentCasingInFileNames": true, |     "forceConsistentCasingInFileNames": true, | ||||||
|     "noImplicitReturns": true, |     "module": "esnext", | ||||||
|     "noImplicitThis": true, |     "moduleResolution": "node", | ||||||
|     "noImplicitAny": true, |     "resolveJsonModule": true, | ||||||
|     "strictNullChecks": true, |     "isolatedModules": true, | ||||||
|     "suppressImplicitAnyIndexErrors": true, |     "noEmit": true, | ||||||
|     "noUnusedLocals": true |     "jsx": "preserve" | ||||||
|   }, |   }, | ||||||
|   "exclude": [ |   "include": [ | ||||||
|     "node_modules", |     "src" | ||||||
|     "build", |  | ||||||
|     "scripts", |  | ||||||
|     "acceptance-tests", |  | ||||||
|     "webpack", |  | ||||||
|     "jest", |  | ||||||
| 	"src/setupTests.ts", |  | ||||||
| 	".vscode-test" |  | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
|  | |||||||
| @ -1,3 +0,0 @@ | |||||||
| { |  | ||||||
|   "extends": "./tsconfig.json" |  | ||||||
| } |  | ||||||
| @ -1,6 +0,0 @@ | |||||||
| { |  | ||||||
|   "extends": "./tsconfig.json", |  | ||||||
|   "compilerOptions": { |  | ||||||
|     "module": "commonjs" |  | ||||||
|   } |  | ||||||
| } |  | ||||||
		Reference in New Issue
	
	Block a user