-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from Fractal-Tess/dev
Version
- Loading branch information
Showing
10 changed files
with
137 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import fs from 'node:fs' | ||
import toml from '@iarna/toml' | ||
|
||
import nodePkg from './package.json' | ||
import tauriPkg from './src-tauri/tauri.conf.json' | ||
import path from 'node:path' | ||
import { spawnSync } from 'node:child_process' | ||
|
||
const tauriPath = new URL( | ||
path.dirname(import.meta.url) + '/src-tauri/tauri.conf.json' | ||
).pathname | ||
tauriPkg.package.version = nodePkg.version | ||
fs.writeFileSync(tauriPath, JSON.stringify(tauriPkg, null, 2)) | ||
|
||
const cargoPath = new URL( | ||
path.dirname(import.meta.url) + '/src-tauri/Cargo.toml' | ||
).pathname | ||
const cargoPkg = toml.parse(fs.readFileSync(cargoPath, 'utf-8')) | ||
cargoPkg['package']['version'] = nodePkg.version | ||
fs.writeFileSync(cargoPath, toml.stringify(cargoPkg)) | ||
|
||
const child = spawnSync('pnpm', ['prettier', '--write', 'src-tauri/Cargo.toml']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "svelte-tauri", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"private": true, | ||
"license": "MIT", | ||
"repository": { | ||
|
@@ -22,7 +22,7 @@ | |
"check": "svelte-check --tsconfig ./tsconfig.json", | ||
"svelte:build": "vite build", | ||
"svelte:dev": "vite dev", | ||
"changeset:version": "changeset version" | ||
"changeset:version": "changeset version && tsx SyncVersion.ts" | ||
}, | ||
"lint-staged": { | ||
"*.{ts,svelte}": [ | ||
|
@@ -37,6 +37,8 @@ | |
"@fortawesome/free-brands-svg-icons": "^6.5.1", | ||
"@fortawesome/free-regular-svg-icons": "^6.5.1", | ||
"@fortawesome/free-solid-svg-icons": "^6.5.1", | ||
"@iarna/toml": "^2.2.5", | ||
"@internationalized/date": "^3.5.1", | ||
"@sveltejs/vite-plugin-svelte": "^3.0.1", | ||
"@tauri-apps/api": "^1.5.3", | ||
"@tauri-apps/cli": "^1.5.9", | ||
|
@@ -45,42 +47,44 @@ | |
"@typescript-eslint/eslint-plugin": "^6.19.1", | ||
"@typescript-eslint/parser": "^6.19.1", | ||
"autoprefixer": "^10.4.17", | ||
"bits-ui": "^0.15.1", | ||
"clsx": "^2.1.0", | ||
"cmdk-sv": "^0.0.13", | ||
"embla-carousel-svelte": "8.0.0-rc20", | ||
"eslint": "^8.56.0", | ||
"eslint-plugin-svelte": "2.35.1", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-json": "^3.1.0", | ||
"eslint-plugin-svelte": "2.35.1", | ||
"eslint-plugin-svelte3": "^4.0.0", | ||
"eslint-plugin-unused-imports": "^3.0.0", | ||
"formsnap": "^0.4.2", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^15.2.0", | ||
"lucide-svelte": "^0.314.0", | ||
"mode-watcher": "^0.1.2", | ||
"postcss": "^8.4.33", | ||
"postcss-load-config": "^5.0.2", | ||
"prettier": "^3.2.4", | ||
"prettier-plugin-svelte": "^3.1.2", | ||
"prettier-plugin-tailwindcss": "^0.5.11", | ||
"prettier-plugin-toml": "^2.0.1", | ||
"svelte": "^4.2.9", | ||
"svelte-check": "^3.6.3", | ||
"svelte-fa": "^4.0.2", | ||
"svelte-preprocess": "^5.1.3", | ||
"svelte-sonner": "^0.3.11", | ||
"svelte-spa-router": "^4.0.1", | ||
"sveltekit-superforms": "^1.13.4", | ||
"tailwind-merge": "^2.2.1", | ||
"tailwind-variants": "^0.1.20", | ||
"tailwindcss": "^3.4.1", | ||
"tailwindcss-hero-patterns": "^0.1.2", | ||
"toml": "^3.0.0", | ||
"tslib": "^2.6.2", | ||
"tsx": "^4.7.0", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.12", | ||
"@internationalized/date": "^3.5.1", | ||
"bits-ui": "^0.15.1", | ||
"clsx": "^2.1.0", | ||
"cmdk-sv": "^0.0.13", | ||
"embla-carousel-svelte": "8.0.0-rc20", | ||
"formsnap": "^0.4.2", | ||
"lucide-svelte": "^0.314.0", | ||
"mode-watcher": "^0.1.2", | ||
"svelte-sonner": "^0.3.11", | ||
"sveltekit-superforms": "^1.13.4", | ||
"tailwind-merge": "^2.2.1", | ||
"tailwind-variants": "^0.1.20", | ||
"vaul-svelte": "^0.1.0", | ||
"vite": "^5.0.12", | ||
"zod": "^3.22.4" | ||
}, | ||
"packageManager": "[email protected]", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters