mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Update typescript examples to use 1.0.1 of next-typescript (#4472)
* Update typescript examples to use 1.0.1 of next-typescript * Add .babelrc modifications to upgraded typescript examples
This commit is contained in:
parent
0330962618
commit
cbfdcce32d
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"env": {
|
||||
"development": {
|
||||
"presets": ["next/babel"]
|
||||
"presets": ["next/babel", "@zeit/next-typescript/babel"]
|
||||
},
|
||||
"production": {
|
||||
"presets": ["next/babel"]
|
||||
"presets": ["next/babel", "@zeit/next-typescript/babel"]
|
||||
},
|
||||
"test": {
|
||||
"presets": [["next/babel", { "preset-env": { "modules": "commonjs" } }]]
|
||||
"presets": [["next/babel", { "preset-env": { "modules": "commonjs" } }], "@zeit/next-typescript/babel"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.0.0-beta.48",
|
||||
"@zeit/next-typescript": "0.1.1",
|
||||
"@zeit/next-typescript": "1.0.1",
|
||||
"babel-loader": "^7.1.4",
|
||||
"next": "latest",
|
||||
"react": "^16.4.0",
|
||||
|
|
6
examples/with-firebase-hosting-and-typescript/.babelrc
Normal file
6
examples/with-firebase-hosting-and-typescript/.babelrc
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"presets": [
|
||||
"next/babel",
|
||||
"@zeit/next-typescript/babel"
|
||||
]
|
||||
}
|
|
@ -17,7 +17,7 @@
|
|||
"install-deps": "cd \"dist/functions\" && npm i"
|
||||
},
|
||||
"dependencies": {
|
||||
"@zeit/next-typescript": "^1.0.0",
|
||||
"@zeit/next-typescript": "1.0.1",
|
||||
"firebase-admin": "~5.12.1",
|
||||
"firebase-functions": "^1.0.1",
|
||||
"next": "^6.0.3",
|
||||
|
|
6
examples/with-jest-typescript/.babelrc
Normal file
6
examples/with-jest-typescript/.babelrc
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"presets": [
|
||||
"next/babel",
|
||||
"@zeit/next-typescript/babel"
|
||||
]
|
||||
}
|
|
@ -17,7 +17,7 @@
|
|||
"@types/next": "^2.4.8",
|
||||
"@types/react": "^16.0.41",
|
||||
"@types/react-dom": "^16.0.4",
|
||||
"@zeit/next-typescript": "^0.0.11",
|
||||
"@zeit/next-typescript": "1.0.1",
|
||||
"enzyme": "^3.3.0",
|
||||
"enzyme-adapter-react-16": "^1.1.1",
|
||||
"jest": "^22.4.3",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"start": "next start"
|
||||
},
|
||||
"dependencies": {
|
||||
"@zeit/next-typescript": "1.0.0",
|
||||
"@zeit/next-typescript": "1.0.1",
|
||||
"next": "latest",
|
||||
"react": "^16.2.0",
|
||||
"react-dom": "^16.2.0"
|
||||
|
|
Loading…
Reference in a new issue