Skip to content

Commit

Permalink
Merge pull request #1 from carlosms/upgrade
Browse files Browse the repository at this point in the history
Upgrade dependencies to fix vulnerabilities
rebornix authored Jul 22, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 6a8ae17 + eb34f0b commit b29ece8
Showing 8 changed files with 6,226 additions and 3,298 deletions.
3 changes: 0 additions & 3 deletions images.d.ts

This file was deleted.

35 changes: 23 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -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 changes: 16 additions & 0 deletions scripts/build-non-split.js
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions src/react-app-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="react-scripts" />
40 changes: 17 additions & 23 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
3 changes: 0 additions & 3 deletions tsconfig.prod.json

This file was deleted.

6 changes: 0 additions & 6 deletions tsconfig.test.json

This file was deleted.

Loading

0 comments on commit b29ece8

Please sign in to comment.