Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Update yarn, vite.
Browse files Browse the repository at this point in the history
Fixed vuex type error.
  • Loading branch information
logue committed Dec 13, 2023
1 parent 5767c05 commit da15ce2
Show file tree
Hide file tree
Showing 5 changed files with 868 additions and 786 deletions.
44 changes: 21 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json.schemastore.org/package.json",
"name": "vite-vue2-ts-starter",
"description": "Vue2 TypeScript Startar project for Vite.",
"version": "1.7.1",
"version": "1.8.0",
"license": "MIT",
"type": "module",
"private": true,
Expand Down Expand Up @@ -37,61 +37,63 @@
"test:coverage": "vitest run --coverage",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"postinstall": "patch-package",
"prepare": "husky install"
},
"dependencies": {
"@logue/vue2-helpers": "^2.2.1",
"patch-package": "^8.0.0",
"vue": "^2.7.15",
"vue-router": "^3.6.5",
"vuex": "^3.6.2",
"vuex-persist": "^3.1.3"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.6.0",
"@tsconfig/node-lts": "^18.12.5",
"@tsconfig/node-lts": "^20.1.0",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.10.0",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@types/node": "^20.10.4",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@vitejs/plugin-vue2": "^2.3.1",
"@vitest/coverage-c8": "^0.33.0",
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/test-utils": "^1.3.5",
"@vue/tsconfig": "^0.4.0",
"eslint": "^8.54.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"eslint": "^8.55.0",
"eslint-config-standard-with-typescript": "^42.0.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-n": "^16.4.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-tsdoc": "^0.2.17",
"eslint-plugin-vue": "latest",
"eslint-plugin-vuejs-accessibility": "^2.2.0",
"eslint-plugin-yaml": "^0.5.0",
"husky": "^8.0.3",
"jsdom": "^23.0.0",
"lint-staged": "^15.1.0",
"jsdom": "^23.0.1",
"lint-staged": "^15.2.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.31",
"postcss": "^8.4.32",
"postcss-html": "^1.5.0",
"postcss-scss": "^4.0.9",
"prettier": "^3.1.0",
"prettier": "^3.1.1",
"rimraf": "^5.0.5",
"rollup-plugin-visualizer": "^5.9.3",
"rollup-plugin-visualizer": "^5.11.0",
"sass": "^1.69.5",
"stylelint": "^15.11.0",
"stylelint-config-recommended-scss": "^13.1.0",
"stylelint": "^16.0.2",
"stylelint-config-recommended-scss": "^14.0.0",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-order": "^6.0.3",
"stylelint-order": "^6.0.4",
"typescript": "*",
"vite": "^5.0.2",
"vite": "^5.0.8",
"vite-plugin-checker": "^0.6.2",
"vitest": "^0.34.6",
"vitest": "^1.0.4",
"vue-eslint-parser": "^9.3.2",
"vue-template-compiler": "^2.7.15",
"vue-tsc": "^1.8.22"
"vue-tsc": "^1.8.25"
},
"husky": {
"hooks": {
Expand All @@ -104,13 +106,9 @@
"*": "prettier -w -u"
},
"resolutions": {
"http-cache-semantics": "^4.1.1",
"json5": "^2.2.3",
"postcss": "^8.4.31",
"semver": "^7.5.2",
"tough-cookie": "^4.1.3",
"vite": "^4.3.9",
"word-wrap": "^1.2.4",
"semver": "^7.5.3",
"yaml": "^2.3.2"
},
"stackblitz": {
Expand Down
14 changes: 14 additions & 0 deletions patches/vuex+3.6.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/node_modules/vuex/package.json b/node_modules/vuex/package.json
index e8a851e..4cd1fce 100644
--- a/node_modules/vuex/package.json
+++ b/node_modules/vuex/package.json
@@ -7,7 +7,8 @@
".": {
"module": "./dist/vuex.esm.js",
"require": "./dist/vuex.common.js",
- "import": "./dist/vuex.mjs"
+ "import": "./dist/vuex.mjs",
+ "types": "./types/index.d.ts"
},
"./": "./"
},
2 changes: 0 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { defineConfig, type UserConfig } from 'vite';
import { visualizer } from 'rollup-plugin-visualizer';
import { checker } from 'vite-plugin-checker';

// @ts-nocheck
import pkg from './package.json';

/**
Expand All @@ -22,7 +21,6 @@ export default defineConfig(({ command, mode }): UserConfig => {
plugins: [
// Vue2
// https://github.com/vitejs/vite-plugin-vue2
// @ts-expect-error
vue(),
// vite-plugin-checker
// https://github.com/fi3ework/vite-plugin-checker
Expand Down
1 change: 1 addition & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default defineConfig({
plugins: [
// Vue2
// https://github.com/vitejs/vite-plugin-vue2
// @ts-expect-error
vue(),
],
// Resolver
Expand Down
Loading

0 comments on commit da15ce2

Please sign in to comment.