@duonghieu0712z/create-tauri-vue-template 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duonghieu0712z/create-tauri-vue-template",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "Create a Tauri 2 + Vue 3 desktop app from the tauri-vue-template starter.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -72,23 +72,29 @@ jobs:
72
72
  $version = node -p "require('./package.json').version"
73
73
  }
74
74
 
75
- $content = Get-Content CHANGELOG.md -Raw
76
- $escapedVersion = [regex]::Escape($version)
77
- $pattern = "(?ms)^##\s+(?<heading>\[?v?$escapedVersion\]?(?:\s+-[^\r\n]*)?)\r?\n(?<body>.*?)(?=^##\s+|\z)"
78
- $match = [regex]::Match($content, $pattern)
79
-
80
- if (!$match.Success -or [string]::IsNullOrWhiteSpace($match.Groups["body"].Value)) {
81
- Write-Error "No changelog entry found for version $version"
82
- exit 1
75
+ $body = "Version $version release artifacts."
76
+
77
+ if (Test-Path -LiteralPath CHANGELOG.md) {
78
+ try {
79
+ $content = Get-Content CHANGELOG.md -Raw -ErrorAction Stop
80
+ $escapedVersion = [regex]::Escape($version)
81
+ $pattern = "(?ms)^##\s+(?<heading>\[?v?$escapedVersion\]?(?:\s+-[^\r\n]*)?)\r?\n(?<body>.*?)(?=^##\s+|\z)"
82
+ $match = [regex]::Match($content, $pattern)
83
+
84
+ if ($match.Success -and ![string]::IsNullOrWhiteSpace($match.Groups["body"].Value)) {
85
+ $ref = $env:GITHUB_REF_NAME
86
+ $anchor = $match.Groups["heading"].Value.Trim().ToLowerInvariant()
87
+ $anchor = $anchor -replace '[\[\]\.]', ''
88
+ $anchor = $anchor -replace '[^a-z0-9 _-]', ''
89
+ $anchor = $anchor -replace '\s+', '-'
90
+ $changelogUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/blob/$ref/CHANGELOG.md#$anchor"
91
+ $body = $match.Groups["body"].Value.Trim() + "`n`n[See full changelog]($changelogUrl)"
92
+ }
93
+ } catch {
94
+ Write-Warning "Failed to read release changelog. Using fallback release body."
95
+ }
83
96
  }
84
97
 
85
- $ref = $env:GITHUB_REF_NAME
86
- $anchor = $match.Groups["heading"].Value.Trim().ToLowerInvariant()
87
- $anchor = $anchor -replace '[\[\]\.]', ''
88
- $anchor = $anchor -replace '[^a-z0-9 _-]', ''
89
- $anchor = $anchor -replace '\s+', '-'
90
- $changelogUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/blob/$ref/CHANGELOG.md#$anchor"
91
- $body = $match.Groups["body"].Value.Trim() + "`n`n[See full changelog]($changelogUrl)"
92
98
  $delimiter = [guid]::NewGuid().ToString()
93
99
 
94
100
  "body<<$delimiter" >> $env:GITHUB_OUTPUT
@@ -6,19 +6,27 @@
6
6
  @custom-variant dark (&:is(.dark *));
7
7
 
8
8
  @theme {
9
- --font-ui: 'Geist', ui-sans-serif, system-ui, sans-serif;
9
+ --font-ui: 'Geist', var(--font-sans);
10
10
  }
11
11
 
12
12
  @layer base {
13
13
  * {
14
- @apply border-border outline-ring/50 select-none;
14
+ @apply border-border outline-ring/50;
15
15
  }
16
+
17
+ html {
18
+ font-synthesis: none;
19
+ text-rendering: optimizeLegibility;
20
+ -webkit-text-size-adjust: 100%;
21
+ }
22
+
16
23
  body {
17
- @apply bg-background text-foreground font-ui cursor-default;
24
+ @apply bg-background text-foreground font-ui cursor-default antialiased select-none;
18
25
  }
26
+
19
27
  button:not(:disabled),
20
28
  [role='button']:not(:disabled) {
21
- cursor: pointer;
29
+ @apply cursor-pointer;
22
30
  }
23
31
  }
24
32