Skip to content

Commit

Permalink
chore(deps): update to vite@4 (#257)
Browse files Browse the repository at this point in the history
* chore(deps): update to `vite@4`

* fmt and changefile

* revert preact changes

* fmt
  • Loading branch information
amrbashir committed Dec 10, 2022
1 parent 5a552a3 commit c9e5fd5
Show file tree
Hide file tree
Showing 23 changed files with 75 additions and 93 deletions.
7 changes: 7 additions & 0 deletions .changes/vite@4.md
@@ -0,0 +1,7 @@
---
"create-tauri-app": "patch"
"create-tauri-app-js": "patch"
---

Update `vanilla-ts`, `vue`, `vue-ts`, `solid`, `solid-ts`, `svelte`, `svelte-ts`, `react`, `react-ts` templates to use `vite@4.0.0`.

4 changes: 2 additions & 2 deletions packages/cli/fragments/fragment-angular/package.json
Expand Up @@ -11,7 +11,7 @@
"watch": "ng build --watch --configuration development"
},
"dependencies": {
"@tauri-apps/api": "^1.1.0",
"@tauri-apps/api": "^1.2.0",
"@angular/animations": "^14.2.0",
"@angular/common": "^14.2.0",
"@angular/compiler": "^14.2.0",
Expand All @@ -25,7 +25,7 @@
"zone.js": "~0.11.4"
},
"devDependencies": {
"@tauri-apps/cli": "^1.1.0",
"@tauri-apps/cli": "^1.2.2",
"@angular-devkit/build-angular": "^14.2.2",
"@angular/cli": "~14.2.2",
"@angular/compiler-cli": "^14.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/fragments/fragment-clojurescript/package.json
Expand Up @@ -9,11 +9,11 @@
"tauri": "tauri"
},
"devDependencies": {
"@tauri-apps/cli": "^1.1.1",
"@tauri-apps/cli": "^1.2.2",
"shadow-cljs": "^2.20.2"
},
"dependencies": {
"@tauri-apps/api": "^1.1.0",
"@tauri-apps/api": "^1.2.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/fragments/fragment-next-ts/package.json
Expand Up @@ -8,13 +8,13 @@
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^1.1.0",
"@tauri-apps/api": "^1.2.0",
"next": "^12.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@tauri-apps/cli": "^1.1.0",
"@tauri-apps/cli": "^1.2.2",
"@types/node": "^18.7.11",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/fragments/fragment-next/package.json
Expand Up @@ -8,12 +8,12 @@
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^1.1.0",
"@tauri-apps/api": "^1.2.0",
"next": "^12.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@tauri-apps/cli": "^1.1.0"
"@tauri-apps/cli": "^1.2.2"
}
}
8 changes: 4 additions & 4 deletions packages/cli/fragments/fragment-preact-ts/package.json
Expand Up @@ -10,14 +10,14 @@
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^1.1.0",
"preact": "^10.10.1"
"@tauri-apps/api": "^1.2.0",
"preact": "^10.11.3"
},
"devDependencies": {
"@types/node": "^18.7.14",
"@babel/core": "^7.12.10",
"@preact/preset-vite": "^2.3.0",
"@tauri-apps/cli": "^1.1.0",
"@preact/preset-vite": "^2.4.0",
"@tauri-apps/cli": "^1.2.2",
"typescript": "^4.6.4",
"vite": "^3.0.7"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/fragments/fragment-preact/package.json
Expand Up @@ -10,13 +10,13 @@
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^1.1.0",
"preact": "^10.10.1"
"@tauri-apps/api": "^1.2.0",
"preact": "^10.11.3"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@preact/preset-vite": "^2.3.0",
"@tauri-apps/cli": "^1.1.0",
"@preact/preset-vite": "^2.4.0",
"@tauri-apps/cli": "^1.2.2",
"vite": "^3.0.7"
}
}
8 changes: 4 additions & 4 deletions packages/cli/fragments/fragment-react-ts/package.json
Expand Up @@ -12,15 +12,15 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@tauri-apps/api": "^1.1.0"
"@tauri-apps/api": "^1.2.0"
},
"devDependencies": {
"@types/node": "^18.7.10",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react": "^2.0.0",
"@vitejs/plugin-react": "^3.0.0",
"typescript": "^4.6.4",
"vite": "^3.0.2",
"@tauri-apps/cli": "^1.1.0"
"vite": "^4.0.0",
"@tauri-apps/cli": "^1.2.2"
}
}
8 changes: 4 additions & 4 deletions packages/cli/fragments/fragment-react/package.json
Expand Up @@ -12,13 +12,13 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@tauri-apps/api": "^1.1.0"
"@tauri-apps/api": "^1.2.0"
},
"devDependencies": {
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react": "^2.0.0",
"vite": "^3.0.2",
"@tauri-apps/cli": "^1.1.0"
"@vitejs/plugin-react": "^3.0.0",
"vite": "^4.0.0",
"@tauri-apps/cli": "^1.2.2"
}
}
6 changes: 3 additions & 3 deletions packages/cli/fragments/fragment-solid-ts/package.json
Expand Up @@ -13,12 +13,12 @@
"devDependencies": {
"@types/node": "^18.7.10",
"typescript": "^4.7.4",
"vite": "^3.0.0",
"vite": "^4.0.0",
"vite-plugin-solid": "^2.3.0",
"@tauri-apps/cli": "^1.1.0"
"@tauri-apps/cli": "^1.2.2"
},
"dependencies": {
"solid-js": "^1.4.7",
"@tauri-apps/api": "^1.1.0"
"@tauri-apps/api": "^1.2.0"
}
}
6 changes: 3 additions & 3 deletions packages/cli/fragments/fragment-solid/package.json
Expand Up @@ -11,12 +11,12 @@
},
"license": "MIT",
"devDependencies": {
"vite": "^3.0.0",
"vite": "^4.0.0",
"vite-plugin-solid": "^2.3.0",
"@tauri-apps/cli": "^1.1.0"
"@tauri-apps/cli": "^1.2.2"
},
"dependencies": {
"solid-js": "^1.4.7",
"@tauri-apps/api": "^1.1.0"
"@tauri-apps/api": "^1.2.0"
}
}
13 changes: 6 additions & 7 deletions packages/cli/fragments/fragment-svelte-kit-ts/package.json
Expand Up @@ -12,17 +12,16 @@
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^1.1.0"
"@tauri-apps/api": "^1.2.0"
},
"devDependencies": {
"@sveltejs/kit": "next",
"@sveltejs/adapter-static": "next",
"svelte": "^3.49.0",
"svelte-check": "^2.7.1",
"svelte-preprocess": "^4.10.6",
"@tauri-apps/cli": "^1.1.0",
"tslib": "^2.3.1",
"svelte": "^3.54.0",
"svelte-check": "^2.9.2",
"@tauri-apps/cli": "^1.2.2",
"tslib": "^2.4.1",
"typescript": "^4.8.4",
"vite": "^3.1.0"
"vite": "^4.0.0"
}
}
@@ -1,12 +1,7 @@
import staticAdapter from "@sveltejs/adapter-static";
import preprocess from "svelte-preprocess";

/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),

kit: {
adapter: staticAdapter(),
},
Expand Down
11 changes: 5 additions & 6 deletions packages/cli/fragments/fragment-svelte-kit/package.json
Expand Up @@ -12,16 +12,15 @@
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^1.1.0"
"@tauri-apps/api": "^1.2.0"
},
"devDependencies": {
"@sveltejs/kit": "next",
"@sveltejs/adapter-static": "next",
"svelte-preprocess": "^4.10.6",
"svelte": "^3.49.0",
"svelte-check": "^2.7.1",
"@tauri-apps/cli": "^1.1.0",
"svelte": "^3.54.0",
"svelte-check": "^2.9.2",
"@tauri-apps/cli": "^1.2.2",
"typescript": "^4.8.4",
"vite": "^3.1.0"
"vite": "^4.0.0"
}
}
5 changes: 0 additions & 5 deletions packages/cli/fragments/fragment-svelte-kit/svelte.config.js
@@ -1,12 +1,7 @@
import staticAdapter from "@sveltejs/adapter-static";
import preprocess from "svelte-preprocess";

/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),

kit: {
adapter: staticAdapter(),
},
Expand Down
15 changes: 7 additions & 8 deletions packages/cli/fragments/fragment-svelte-ts/package.json
Expand Up @@ -11,18 +11,17 @@
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^1.1.0"
"@tauri-apps/api": "^1.2.0"
},
"devDependencies": {
"@types/node": "^18.7.10",
"@sveltejs/vite-plugin-svelte": "^1.0.1",
"@sveltejs/vite-plugin-svelte": "^2.0.0",
"@tsconfig/svelte": "^3.0.0",
"svelte": "^3.49.0",
"svelte-check": "^2.8.0",
"svelte-preprocess": "^4.10.7",
"tslib": "^2.4.0",
"svelte": "^3.54.0",
"svelte-check": "^2.10.0",
"tslib": "^2.4.1",
"typescript": "^4.6.4",
"vite": "^3.0.2",
"@tauri-apps/cli": "^1.1.0"
"vite": "^4.0.0",
"@tauri-apps/cli": "^1.2.2"
}
}
7 changes: 0 additions & 7 deletions packages/cli/fragments/fragment-svelte-ts/svelte.config.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/cli/fragments/fragment-svelte/jsconfig.json
Expand Up @@ -3,11 +3,6 @@
"moduleResolution": "Node",
"target": "ESNext",
"module": "ESNext",
/**
* svelte-preprocess cannot figure out whether you have
* a value or a type, so tell TypeScript to enforce using
* `import type` instead of `import` for Types.
*/
"importsNotUsedAsValues": "error",
"isolatedModules": true,
"resolveJsonModule": true,
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/fragments/fragment-svelte/package.json
Expand Up @@ -10,12 +10,12 @@
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^1.1.0"
"@tauri-apps/api": "^1.2.0"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^1.0.1",
"svelte": "^3.49.0",
"vite": "^3.0.2",
"@tauri-apps/cli": "^1.1.0"
"@sveltejs/vite-plugin-svelte": "^2.0.0",
"svelte": "^3.54.0",
"vite": "^4.0.0",
"@tauri-apps/cli": "^1.2.2"
}
}
6 changes: 3 additions & 3 deletions packages/cli/fragments/fragment-vanilla-ts/package.json
Expand Up @@ -10,11 +10,11 @@
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^1.1.0"
"@tauri-apps/api": "^1.2.0"
},
"devDependencies": {
"@tauri-apps/cli": "^1.1.0",
"vite": "^3.0.2",
"@tauri-apps/cli": "^1.2.2",
"vite": "^4.0.0",
"typescript": "^4.8.2"
}
}
Expand Up @@ -7,6 +7,6 @@
"tauri": "tauri"
},
"devDependencies": {
"@tauri-apps/cli": "^1.1.0"
"@tauri-apps/cli": "^1.2.2"
}
}
12 changes: 6 additions & 6 deletions packages/cli/fragments/fragment-vue-ts/package.json
Expand Up @@ -10,15 +10,15 @@
"tauri": "tauri"
},
"dependencies": {
"vue": "^3.2.37",
"@tauri-apps/api": "^1.1.0"
"vue": "^3.2.45",
"@tauri-apps/api": "^1.2.0"
},
"devDependencies": {
"@types/node": "^18.7.10",
"@vitejs/plugin-vue": "^3.0.1",
"@vitejs/plugin-vue": "^4.0.0",
"typescript": "^4.6.4",
"vite": "^3.0.2",
"vue-tsc": "^1.0.0",
"@tauri-apps/cli": "^1.1.0"
"vite": "^4.0.0",
"vue-tsc": "^1.0.11",
"@tauri-apps/cli": "^1.2.2"
}
}
10 changes: 5 additions & 5 deletions packages/cli/fragments/fragment-vue/package.json
Expand Up @@ -10,12 +10,12 @@
"tauri": "tauri"
},
"dependencies": {
"vue": "^3.2.37",
"@tauri-apps/api": "^1.1.0"
"vue": "^3.2.45",
"@tauri-apps/api": "^1.2.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^3.0.1",
"vite": "^3.0.2",
"@tauri-apps/cli": "^1.1.0"
"@vitejs/plugin-vue": "^4.0.0",
"vite": "^4.0.0",
"@tauri-apps/cli": "^1.2.2"
}
}

0 comments on commit c9e5fd5

Please sign in to comment.