Compare commits

..

5 Commits

Author SHA1 Message Date
Rafal Chlodnicki
2b29d98448 no need 2023-09-03 22:57:01 +02:00
Rafal Chlodnicki
dd4736b5c7 ci 2023-09-03 22:55:13 +02:00
Rafal Chlodnicki
ad9c598769 Merge branch '2.x' into fix/define-component 2023-09-03 22:53:52 +02:00
Rafal Chlodnicki
a074048746 add vue-tsc and test 2023-09-03 22:52:53 +02:00
renovate[bot]
b381000de6
chore(deps): update all non-major dependencies (2.x) (#22706)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-08-25 19:55:58 +01:00
20 changed files with 860 additions and 457 deletions

View File

@ -12,6 +12,9 @@ examples/pug-stylus-coffee/**/*.*
examples/web-worker/**/*.*
examples/vue-class-component/**/*.*
## vue with typescript
test/fixtures/vue-tsc/**/*.vue
# Packages
# vue-app

View File

@ -29,7 +29,7 @@ jobs:
node: [16]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0 # All history
- run: corepack enable
@ -63,7 +63,7 @@ jobs:
node: [16]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: corepack enable
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
@ -85,6 +85,9 @@ jobs:
- name: test types
run: yarn test:types
- name: test types with vue-tsc
run: yarn test:vue-types
needs: setup
audit:
@ -96,7 +99,7 @@ jobs:
node: [16]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: corepack enable
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
@ -127,7 +130,7 @@ jobs:
node: [16]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: corepack enable
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
@ -167,7 +170,7 @@ jobs:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: corepack enable
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
@ -203,7 +206,7 @@ jobs:
node: [16]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: corepack enable
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
@ -240,7 +243,7 @@ jobs:
node: [16]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: corepack enable
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
@ -277,7 +280,7 @@ jobs:
node: [16]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: corepack enable
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
@ -315,7 +318,7 @@ jobs:
node: [16]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
ref: "refs/heads/dev"
fetch-depth: 0 # All history

View File

@ -28,7 +28,7 @@ jobs:
node: [16]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: corepack enable
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
@ -60,7 +60,7 @@ jobs:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: corepack enable
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
@ -94,7 +94,7 @@ jobs:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: corepack enable
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
@ -133,7 +133,7 @@ jobs:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: corepack enable
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:

View File

@ -33,7 +33,7 @@
"@nuxt/telemetry": "^1.4.1",
"@nuxt/utils": "2.17.1",
"@nuxt/vue-renderer": "2.17.1",
"node-fetch-native": "^1.2.0",
"node-fetch-native": "^1.4.0",
"vue": "^2.7.10",
"vue-client-only": "^2.1.0",
"vue-meta": "^2.4.0",

View File

@ -24,16 +24,17 @@
"ls-lint": "npx @ls-lint/ls-lint",
"nuxt": "jiti ./packages/cli/bin/nuxt-cli.js",
"pkg": "jiti ./scripts/pkg.js",
"test": "yarn test:fixtures && yarn test:dev && yarn test:unit && yarn test:types",
"test": "yarn test:fixtures && yarn test:dev && yarn test:unit && yarn test:types && yarn test:vue-types",
"test:dev": "jest test/dev --forceExit --runInBand",
"test:e2e": "jest -i test/e2e --forceExit",
"test:fixtures": "jest test/fixtures --forceExit",
"test:lint": "yarn lint && yarn ls-lint",
"test:types": "tsc -p packages/types/test",
"test:unit": "jest packages --forceExit"
"test:unit": "jest packages --forceExit",
"test:vue-types": "vue-tsc -p ./test/fixtures/vue-tsc/tsconfig.json"
},
"devDependencies": {
"@babel/core": "7.22.10",
"@babel/core": "7.22.11",
"@babel/preset-env": "7.22.10",
"@ls-lint/ls-lint": "2.0.1",
"@nuxtjs/eslint-config": "12.0.0",
@ -41,15 +42,15 @@
"@rollup/plugin-alias": "5.0.0",
"@rollup/plugin-commonjs": "25.0.4",
"@rollup/plugin-json": "6.0.0",
"@rollup/plugin-node-resolve": "15.2.0",
"@rollup/plugin-node-resolve": "15.2.1",
"@rollup/plugin-replace": "5.0.2",
"@types/jest": "29.5.3",
"@typescript-eslint/eslint-plugin": "6.4.0",
"@typescript-eslint/parser": "6.4.0",
"@types/jest": "29.5.4",
"@typescript-eslint/eslint-plugin": "6.4.1",
"@typescript-eslint/parser": "6.4.1",
"@vue/server-test-utils": "1.3.0",
"@vue/test-utils": "1.3.6",
"@vue/vue2-jest": "29.2.5",
"babel-jest": "29.6.2",
"babel-jest": "29.6.4",
"chrome-launcher": "0.15.2",
"consola": "3.2.3",
"create-require": "1.1.1",
@ -66,27 +67,28 @@
"glob": "8.1.0",
"got": "13.0.0",
"improved-yarn-audit": "3.0.0",
"jest": "29.6.2",
"jest-environment-jsdom": "29.6.2",
"jest-util": "29.6.2",
"jest": "29.6.4",
"jest-environment-jsdom": "29.6.4",
"jest-util": "29.6.3",
"jiti": "1.19.3",
"jsdom": "22.1.0",
"jsonfile": "6.1.0",
"klaw-sync": "6.0.0",
"lerna": "7.1.5",
"lodash": "4.17.21",
"node-fetch-native": "1.2.0",
"node-fetch-native": "1.4.0",
"puppeteer-core": "21.1.0",
"request": "2.88.2",
"rimraf": "4.4.1",
"rollup": "3.28.0",
"rollup": "3.28.1",
"rollup-plugin-esbuild": "5.0.0",
"rollup-plugin-license": "3.0.1",
"sass": "1.66.0",
"sass": "1.66.1",
"sass-loader": "^10.1.1",
"sort-package-json": "2.5.1",
"typescript": "5.1.6",
"vue-jest": "4.0.1"
"typescript": "5.2.2",
"vue-jest": "4.0.1",
"vue-tsc": "^1.8.8"
},
"packageManager": "yarn@1.22.19"
}

View File

@ -11,7 +11,7 @@
"main": "src/index.js",
"dependencies": {
"@babel/compat-data": "^7.22.9",
"@babel/core": "^7.22.10",
"@babel/core": "^7.22.11",
"@babel/helper-compilation-targets": "^7.22.10",
"@babel/helper-module-imports": "^7.22.5",
"@babel/plugin-proposal-class-properties": "^7.18.6",
@ -22,10 +22,10 @@
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/plugin-transform-runtime": "^7.22.10",
"@babel/preset-env": "^7.22.10",
"@babel/runtime": "^7.22.10",
"@babel/runtime": "^7.22.11",
"@vue/babel-preset-jsx": "^1.4.0",
"core-js": "^3.32.0",
"core-js-compat": "^3.32.0",
"core-js": "^3.32.1",
"core-js-compat": "^3.32.1",
"regenerator-runtime": "^0.14.0"
},
"engines": {

View File

@ -33,7 +33,7 @@
"pretty-bytes": "^5.6.0",
"semver": "^7.5.4",
"serve-static": "^1.15.0",
"std-env": "^3.4.0",
"std-env": "^3.4.3",
"upath": "^2.0.1",
"wrap-ansi": "^7.0.0"
},

View File

@ -359,6 +359,10 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-trigonometric-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-exponential-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-clamp",
@ -379,6 +383,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"browsers": undefined,
"info": [Function info],
"options": Object {
"env": undefined,
"overrideBrowserslist": undefined,
},
"postcssPlugin": "autoprefixer",
@ -514,7 +519,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"postcssPlugin": "cssnano-util-raw-cache",
},
],
"version": "8.4.25",
"version": "8.4.28",
},
],
},
@ -794,6 +799,10 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-trigonometric-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-exponential-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-clamp",
@ -814,6 +823,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"browsers": undefined,
"info": [Function info],
"options": Object {
"env": undefined,
"overrideBrowserslist": undefined,
},
"postcssPlugin": "autoprefixer",
@ -949,7 +959,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"postcssPlugin": "cssnano-util-raw-cache",
},
],
"version": "8.4.25",
"version": "8.4.28",
},
],
},
@ -1235,6 +1245,10 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-trigonometric-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-exponential-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-clamp",
@ -1255,6 +1269,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"browsers": undefined,
"info": [Function info],
"options": Object {
"env": undefined,
"overrideBrowserslist": undefined,
},
"postcssPlugin": "autoprefixer",
@ -1390,7 +1405,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"postcssPlugin": "cssnano-util-raw-cache",
},
],
"version": "8.4.25",
"version": "8.4.28",
},
],
},
@ -1670,6 +1685,10 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-trigonometric-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-exponential-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-clamp",
@ -1690,6 +1709,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"browsers": undefined,
"info": [Function info],
"options": Object {
"env": undefined,
"overrideBrowserslist": undefined,
},
"postcssPlugin": "autoprefixer",
@ -1825,7 +1845,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"postcssPlugin": "cssnano-util-raw-cache",
},
],
"version": "8.4.25",
"version": "8.4.28",
},
],
},
@ -2111,6 +2131,10 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-trigonometric-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-exponential-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-clamp",
@ -2131,6 +2155,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"browsers": undefined,
"info": [Function info],
"options": Object {
"env": undefined,
"overrideBrowserslist": undefined,
},
"postcssPlugin": "autoprefixer",
@ -2266,7 +2291,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"postcssPlugin": "cssnano-util-raw-cache",
},
],
"version": "8.4.25",
"version": "8.4.28",
},
],
},
@ -2552,6 +2577,10 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-trigonometric-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-exponential-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-clamp",
@ -2572,6 +2601,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"browsers": undefined,
"info": [Function info],
"options": Object {
"env": undefined,
"overrideBrowserslist": undefined,
},
"postcssPlugin": "autoprefixer",
@ -2707,7 +2737,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"postcssPlugin": "cssnano-util-raw-cache",
},
],
"version": "8.4.25",
"version": "8.4.28",
},
],
},
@ -2999,6 +3029,10 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-trigonometric-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-exponential-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-clamp",
@ -3019,6 +3053,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"browsers": undefined,
"info": [Function info],
"options": Object {
"env": undefined,
"overrideBrowserslist": undefined,
},
"postcssPlugin": "autoprefixer",
@ -3154,7 +3189,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"postcssPlugin": "cssnano-util-raw-cache",
},
],
"version": "8.4.25",
"version": "8.4.28",
},
],
},
@ -3443,6 +3478,10 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-trigonometric-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-exponential-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-clamp",
@ -3463,6 +3502,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"browsers": undefined,
"info": [Function info],
"options": Object {
"env": undefined,
"overrideBrowserslist": undefined,
},
"postcssPlugin": "autoprefixer",
@ -3598,7 +3638,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"postcssPlugin": "cssnano-util-raw-cache",
},
],
"version": "8.4.25",
"version": "8.4.28",
},
],
},
@ -3893,6 +3933,10 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-trigonometric-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-exponential-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-clamp",
@ -3913,6 +3957,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"browsers": undefined,
"info": [Function info],
"options": Object {
"env": undefined,
"overrideBrowserslist": undefined,
},
"postcssPlugin": "autoprefixer",
@ -4048,7 +4093,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"postcssPlugin": "cssnano-util-raw-cache",
},
],
"version": "8.4.25",
"version": "8.4.28",
},
],
},
@ -4334,6 +4379,10 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-trigonometric-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-exponential-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-clamp",
@ -4354,6 +4403,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"browsers": undefined,
"info": [Function info],
"options": Object {
"env": undefined,
"overrideBrowserslist": undefined,
},
"postcssPlugin": "autoprefixer",
@ -4489,7 +4539,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"postcssPlugin": "cssnano-util-raw-cache",
},
],
"version": "8.4.25",
"version": "8.4.28",
},
],
},
@ -4781,6 +4831,10 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-trigonometric-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-exponential-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-clamp",
@ -4801,6 +4855,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"browsers": undefined,
"info": [Function info],
"options": Object {
"env": undefined,
"overrideBrowserslist": undefined,
},
"postcssPlugin": "autoprefixer",
@ -4936,7 +4991,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"postcssPlugin": "cssnano-util-raw-cache",
},
],
"version": "8.4.25",
"version": "8.4.28",
},
],
},
@ -5222,6 +5277,10 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-trigonometric-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-exponential-functions",
},
Object {
"Declaration": [Function Declaration],
"postcssPlugin": "postcss-clamp",
@ -5242,6 +5301,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"browsers": undefined,
"info": [Function info],
"options": Object {
"env": undefined,
"overrideBrowserslist": undefined,
},
"postcssPlugin": "autoprefixer",
@ -5377,7 +5437,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
"postcssPlugin": "cssnano-util-raw-cache",
},
],
"version": "8.4.25",
"version": "8.4.28",
},
],
},

View File

@ -17,8 +17,8 @@
"dotenv": "^16.3.1",
"lodash": "^4.17.21",
"rc9": "^2.1.1",
"std-env": "^3.4.0",
"ufo": "^1.2.0"
"std-env": "^3.4.3",
"ufo": "^1.3.0"
},
"engines": {
"node": "^14.18.0 || >=16.10.0"

View File

@ -16,7 +16,7 @@
"fs-extra": "^10.1.0",
"html-minifier": "^4.0.0",
"node-html-parser": "^6.1.6",
"ufo": "^1.2.0"
"ufo": "^1.3.0"
},
"engines": {
"node": "^14.18.0 || >=16.10.0"

View File

@ -24,7 +24,7 @@
"serve-placeholder": "^2.0.1",
"serve-static": "^1.15.0",
"server-destroy": "^1.0.1",
"ufo": "^1.2.0"
"ufo": "^1.3.0"
},
"engines": {
"node": "^14.18.0 || >=16.10.0"

View File

@ -19,7 +19,7 @@
"serialize-javascript": "^6.0.1",
"signal-exit": "^4.1.0",
"ua-parser-js": "^1.0.35",
"ufo": "^1.2.0"
"ufo": "^1.3.0"
},
"engines": {
"node": "^14.18.0 || >=16.10.0"

View File

@ -13,8 +13,8 @@
"index.d.ts"
],
"dependencies": {
"node-fetch-native": "^1.2.0",
"ufo": "^1.2.0",
"node-fetch-native": "^1.4.0",
"ufo": "^1.3.0",
"unfetch": "^5.0.0",
"vue": "^2.7.10",
"vue-client-only": "^2.1.0",

View File

@ -15,7 +15,7 @@
"fs-extra": "^10.1.0",
"lodash": "^4.17.21",
"lru-cache": "^5.1.1",
"ufo": "^1.2.0",
"ufo": "^1.3.0",
"vue": "^2.7.10",
"vue-meta": "^2.4.0",
"vue-server-renderer": "^2.7.14"

View File

@ -8,13 +8,13 @@
"dist"
],
"dependencies": {
"@babel/core": "^7.22.10",
"@babel/core": "^7.22.11",
"@nuxt/babel-preset-app": "2.17.1",
"@nuxt/friendly-errors-webpack-plugin": "^2.5.2",
"@nuxt/utils": "2.17.1",
"babel-loader": "^8.3.0",
"cache-loader": "^4.1.0",
"caniuse-lite": "^1.0.30001521",
"caniuse-lite": "^1.0.30001523",
"consola": "^3.2.3",
"css-loader": "^5.2.7",
"cssnano": "^6.0.1",
@ -37,15 +37,15 @@
"postcss-preset-env": "^9.1.1",
"postcss-url": "^10.1.3",
"semver": "^7.5.4",
"std-env": "^3.4.0",
"std-env": "^3.4.3",
"style-resources-loader": "^1.5.0",
"terser-webpack-plugin": "^4.2.3",
"thread-loader": "^3.0.4",
"time-fix-plugin": "^2.0.7",
"ufo": "^1.2.0",
"ufo": "^1.3.0",
"upath": "^2.0.1",
"url-loader": "^4.1.1",
"vue-loader": "^15.10.1",
"vue-loader": "^15.10.2",
"vue-style-loader": "^4.1.3",
"vue-template-compiler": "^2.7.14",
"watchpack": "^2.4.0",

View File

@ -0,0 +1,18 @@
<template>
<div>
My Component
</div>
</template>
<script lang="ts">
import { defineComponent, PropType } from 'vue'
export default defineComponent({
props: {
stringItems: {
type: Array as PropType<string[]>,
required: true,
}
}
})
</script>

6
test/fixtures/vue-tsc/pages/index.vue vendored Normal file
View File

@ -0,0 +1,6 @@
<template>
<div>
<!-- @vue-expect-error -->
<my-component :string-items="[1]" />
</div>
</template>

23
test/fixtures/vue-tsc/tsconfig.json vendored Normal file
View File

@ -0,0 +1,23 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"module": "ES2022",
"moduleResolution": "Node",
"noEmit": true,
"target": "ES2022",
"types": [
"../../../packages/types",
"./types/vue",
],
"strict": true,
},
"include": [
"./components/*.vue",
"./pages/*.vue",
],
"vueCompilerOptions": {
"strictTemplates": true,
"target": 2.7
}
}

7
test/fixtures/vue-tsc/types/vue.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
import 'vue';
declare module 'vue' {
export interface GlobalComponents {
MyComponent: typeof import('../components/my-component.vue').default;
}
}

1075
yarn.lock

File diff suppressed because it is too large Load Diff