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

feat(template): update typescript #567

Merged
merged 2 commits into from
Jul 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.