1
0
Fork 0
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:
Luke Barton 2018-05-25 10:28:35 +01:00 committed by Tim Neutkens
parent 0330962618
commit cbfdcce32d
7 changed files with 19 additions and 7 deletions

View file

@ -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"]
}
}
}

View file

@ -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",

View file

@ -0,0 +1,6 @@
{
"presets": [
"next/babel",
"@zeit/next-typescript/babel"
]
}

View file

@ -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",

View file

@ -0,0 +1,6 @@
{
"presets": [
"next/babel",
"@zeit/next-typescript/babel"
]
}

View file

@ -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",

View file

@ -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"