Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit e7a8320

Browse files
authored
Merge pull request #181 from ianschmitz/ts-devdep
Include TypeScript as devDependency in boilerplate output
2 parents d5e5bb5 + 3a40ac0 commit e7a8320

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/react-scripts/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"tslint": "^5.7.0",
4848
"tslint-loader": "^3.5.3",
4949
"tslint-react": "^3.2.0",
50-
"typescript": "^2.6.2",
5150
"url-loader": "0.6.2",
5251
"webpack": "3.8.1",
5352
"webpack-dev-server": "2.9.4",
@@ -58,6 +57,9 @@
5857
"react": "^15.5.4",
5958
"react-dom": "^15.5.4"
6059
},
60+
"peerDependencies": {
61+
"typescript": "2.x"
62+
},
6163
"optionalDependencies": {
6264
"fsevents": "1.1.2"
6365
}

packages/react-scripts/scripts/init.js

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ module.exports = function(
109109
'@types/react',
110110
'@types/react-dom',
111111
'@types/jest',
112+
'typescript',
112113
];
113114

114115
console.log(

0 commit comments

Comments
 (0)