Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit

Permalink
feat(template): update typescript (#567)
Browse files Browse the repository at this point in the history
- Upgrade typescript packages
- Add `@nuxt/types` in devDependencies since it's required to install it manually now
  • Loading branch information
kevinmarrec authored Jul 7, 2020
1 parent 1c8a91e commit 251c50d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions packages/cna-template/template/nuxt/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ module.exports = {
const typescript = language.includes('ts')

if (!typescript) {
delete pkg.devDependencies['@nuxt/types']
delete pkg.devDependencies['@nuxt/typescript-build']
delete pkg.dependencies['@nuxt/typescript-runtime']
}
Expand Down
5 changes: 3 additions & 2 deletions packages/cna-template/template/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
}
},
"dependencies": {
"@nuxt/typescript-runtime": "^0.4.10",
"@nuxt/typescript-runtime": "^1.0.0",
"@nuxtjs/axios": "^5.11.0",
"@nuxtjs/pwa": "^3.0.0-beta.20",
"@nuxt/content": "^1.3.2",
"nuxt": "^2.13.0"
},
"devDependencies": {
"@nuxt/typescript-build": "^1.0.3",
"@nuxt/types": "^2.13.0",
"@nuxt/typescript-build": "^2.0.0",
"@nuxtjs/eslint-config-typescript": "^2.0.0",
"@nuxtjs/eslint-config": "^3.0.0",
"@nuxtjs/eslint-module": "^2.0.0",
Expand Down
12 changes: 6 additions & 6 deletions packages/cna-template/template/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"compilerOptions": {
"target": "es2018",
"module": "esnext",
"moduleResolution": "node",
"target": "ES2018",
"module": "ESNext",
"moduleResolution": "Node",
"lib": [
"esnext",
"esnext.asynciterable",
"dom"
"ESNext",
"ESNext.AsyncIterable",
"DOM"
],
"esModuleInterop": true,
"allowJs": true,
Expand Down
5 changes: 3 additions & 2 deletions packages/create-nuxt-app/test/snapshots/index.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -1022,11 +1022,12 @@ Generated by [AVA](https://avajs.dev).
{
dependencies: {
'@nuxt/typescript-runtime': '^0.4.10',
'@nuxt/typescript-runtime': '^1.0.0',
nuxt: '^2.13.0',
},
devDependencies: {
'@nuxt/typescript-build': '^1.0.3',
'@nuxt/types': '^2.13.0',
'@nuxt/typescript-build': '^2.0.0',
},
private: true,
scripts: {
Expand Down
Binary file modified packages/create-nuxt-app/test/snapshots/index.test.js.snap
Binary file not shown.

0 comments on commit 251c50d

Please sign in to comment.