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

Commit 251c50d

Browse files
authored
feat(template): update typescript (#567)
- Upgrade typescript packages - Add `@nuxt/types` in devDependencies since it's required to install it manually now
1 parent 1c8a91e commit 251c50d

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

packages/cna-template/template/nuxt/package.js

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ module.exports = {
7272
const typescript = language.includes('ts')
7373

7474
if (!typescript) {
75+
delete pkg.devDependencies['@nuxt/types']
7576
delete pkg.devDependencies['@nuxt/typescript-build']
7677
delete pkg.dependencies['@nuxt/typescript-runtime']
7778
}

packages/cna-template/template/nuxt/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@
1818
}
1919
},
2020
"dependencies": {
21-
"@nuxt/typescript-runtime": "^0.4.10",
21+
"@nuxt/typescript-runtime": "^1.0.0",
2222
"@nuxtjs/axios": "^5.11.0",
2323
"@nuxtjs/pwa": "^3.0.0-beta.20",
2424
"@nuxt/content": "^1.3.2",
2525
"nuxt": "^2.13.0"
2626
},
2727
"devDependencies": {
28-
"@nuxt/typescript-build": "^1.0.3",
28+
"@nuxt/types": "^2.13.0",
29+
"@nuxt/typescript-build": "^2.0.0",
2930
"@nuxtjs/eslint-config-typescript": "^2.0.0",
3031
"@nuxtjs/eslint-config": "^3.0.0",
3132
"@nuxtjs/eslint-module": "^2.0.0",

packages/cna-template/template/tsconfig.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"compilerOptions": {
3-
"target": "es2018",
4-
"module": "esnext",
5-
"moduleResolution": "node",
3+
"target": "ES2018",
4+
"module": "ESNext",
5+
"moduleResolution": "Node",
66
"lib": [
7-
"esnext",
8-
"esnext.asynciterable",
9-
"dom"
7+
"ESNext",
8+
"ESNext.AsyncIterable",
9+
"DOM"
1010
],
1111
"esModuleInterop": true,
1212
"allowJs": true,

packages/create-nuxt-app/test/snapshots/index.test.js.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1022,11 +1022,12 @@ Generated by [AVA](https://avajs.dev).
10221022
10231023
{
10241024
dependencies: {
1025-
'@nuxt/typescript-runtime': '^0.4.10',
1025+
'@nuxt/typescript-runtime': '^1.0.0',
10261026
nuxt: '^2.13.0',
10271027
},
10281028
devDependencies: {
1029-
'@nuxt/typescript-build': '^1.0.3',
1029+
'@nuxt/types': '^2.13.0',
1030+
'@nuxt/typescript-build': '^2.0.0',
10301031
},
10311032
private: true,
10321033
scripts: {
Binary file not shown.

0 commit comments

Comments
 (0)