Commit cbfdcce3 authored by Luke Barton's avatar Luke Barton Committed by Tim Neutkens

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
parent 03309626
{ {
"env": { "env": {
"development": { "development": {
"presets": ["next/babel"] "presets": ["next/babel", "@zeit/next-typescript/babel"]
}, },
"production": { "production": {
"presets": ["next/babel"] "presets": ["next/babel", "@zeit/next-typescript/babel"]
}, },
"test": { "test": {
"presets": [["next/babel", { "preset-env": { "modules": "commonjs" } }]] "presets": [["next/babel", { "preset-env": { "modules": "commonjs" } }], "@zeit/next-typescript/babel"]
} }
} }
} }
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
}, },
"dependencies": { "dependencies": {
"@babel/core": "^7.0.0-beta.48", "@babel/core": "^7.0.0-beta.48",
"@zeit/next-typescript": "0.1.1", "@zeit/next-typescript": "1.0.1",
"babel-loader": "^7.1.4", "babel-loader": "^7.1.4",
"next": "latest", "next": "latest",
"react": "^16.4.0", "react": "^16.4.0",
......
{
"presets": [
"next/babel",
"@zeit/next-typescript/babel"
]
}
\ No newline at end of file
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"install-deps": "cd \"dist/functions\" && npm i" "install-deps": "cd \"dist/functions\" && npm i"
}, },
"dependencies": { "dependencies": {
"@zeit/next-typescript": "^1.0.0", "@zeit/next-typescript": "1.0.1",
"firebase-admin": "~5.12.1", "firebase-admin": "~5.12.1",
"firebase-functions": "^1.0.1", "firebase-functions": "^1.0.1",
"next": "^6.0.3", "next": "^6.0.3",
......
{
"presets": [
"next/babel",
"@zeit/next-typescript/babel"
]
}
\ No newline at end of file
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"@types/next": "^2.4.8", "@types/next": "^2.4.8",
"@types/react": "^16.0.41", "@types/react": "^16.0.41",
"@types/react-dom": "^16.0.4", "@types/react-dom": "^16.0.4",
"@zeit/next-typescript": "^0.0.11", "@zeit/next-typescript": "1.0.1",
"enzyme": "^3.3.0", "enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1", "enzyme-adapter-react-16": "^1.1.1",
"jest": "^22.4.3", "jest": "^22.4.3",
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"start": "next start" "start": "next start"
}, },
"dependencies": { "dependencies": {
"@zeit/next-typescript": "1.0.0", "@zeit/next-typescript": "1.0.1",
"next": "latest", "next": "latest",
"react": "^16.2.0", "react": "^16.2.0",
"react-dom": "^16.2.0" "react-dom": "^16.2.0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment