Skip to content

Commit 331ad1d

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix/pagination
2 parents a36f951 + cdd8d19 commit 331ad1d

7 files changed

Lines changed: 24 additions & 15 deletions

File tree

app/components/Package/DeprecatedTree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function getDepthStyle(depth: DependencyDepth) {
8888
name: 'package',
8989
params: { package: [...pkg.name.split('/'), 'v', pkg.version] },
9090
}"
91-
class="font-mono text-sm font-medium hover:underline truncate"
91+
class="font-mono text-sm font-medium hover:underline truncate py-4"
9292
:class="getDepthStyle(pkg.depth).text"
9393
>
9494
{{ pkg.name }}@{{ pkg.version }}

app/pages/[...package].vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,12 +735,13 @@ function handleClick(event: MouseEvent) {
735735
<dl
736736
class="grid grid-cols-2 sm:grid-cols-11 gap-3 sm:gap-4 py-4 sm:py-6 mt-4 sm:mt-6 border-t border-b border-border"
737737
>
738-
<div v-if="pkg.license" class="space-y-1 sm:col-span-2">
738+
<div class="space-y-1 sm:col-span-2">
739739
<dt class="text-xs text-fg-subtle uppercase tracking-wider">
740740
{{ $t('package.stats.license') }}
741741
</dt>
742742
<dd class="font-mono text-sm text-fg">
743-
<LicenseDisplay :license="pkg.license" />
743+
<LicenseDisplay v-if="pkg.license" :license="pkg.license" />
744+
<span v-else>{{ $t('package.license.none') }}</span>
744745
</dd>
745746
</div>
746747

@@ -976,7 +977,7 @@ function handleClick(event: MouseEvent) {
976977
<h2 id="readme-heading" class="group text-xs text-fg-subtle uppercase tracking-wider mb-4">
977978
<a
978979
href="#readme"
979-
class="inline-flex items-center gap-1.5 text-fg-subtle hover:text-fg-muted transition-colors duration-200 no-underline"
980+
class="inline-flex py-4 px-2 items-center gap-1.5 text-fg-subtle hover:text-fg-muted transition-colors duration-200 no-underline"
980981
>
981982
{{ $t('package.readme.title') }}
982983
<span

app/pages/about.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const { data: contributors, status: contributorsStatus } = useFetch<GitHubContri
5353

5454
<section class="prose prose-invert max-w-none space-y-8">
5555
<div>
56-
<h2 class="text-xs text-fg-subtle uppercase tracking-wider mb-4">
56+
<h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4">
5757
{{ $t('about.what_we_are.title') }}
5858
</h2>
5959
<p class="text-fg-muted leading-relaxed mb-4">
@@ -82,7 +82,7 @@ const { data: contributors, status: contributorsStatus } = useFetch<GitHubContri
8282
</div>
8383

8484
<div>
85-
<h2 class="text-xs text-fg-subtle uppercase tracking-wider mb-4">
85+
<h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4">
8686
{{ $t('about.what_we_are_not.title') }}
8787
</h2>
8888
<ul class="space-y-3 text-fg-muted list-none p-0">
@@ -167,8 +167,8 @@ const { data: contributors, status: contributorsStatus } = useFetch<GitHubContri
167167
</div>
168168

169169
<div>
170-
<h2 class="text-xs text-fg-subtle uppercase tracking-wider mb-4">
171-
{{ $t('about.contributors.title') }}
170+
<h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4">
171+
{{ contributors?.length ?? 0 }} {{ $t('about.contributors.title') }}
172172
</h2>
173173
<p class="text-fg-muted leading-relaxed mb-6">
174174
{{ $t('about.contributors.description') }}
@@ -205,7 +205,7 @@ const { data: contributors, status: contributorsStatus } = useFetch<GitHubContri
205205

206206
<!-- Get Involved CTAs -->
207207
<div>
208-
<h2 class="text-xs text-fg-subtle uppercase tracking-wider mb-6">
208+
<h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-6">
209209
{{ $t('about.get_involved.title') }}
210210
</h2>
211211

cli/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
],
2828
"scripts": {
2929
"build": "tsdown",
30-
"dev": "NPMX_CLI_DEV=true node --experimental-strip-types src/cli.ts",
30+
"dev": "NPMX_CLI_DEV=true node src/cli.ts",
3131
"test:types": "tsc --noEmit"
3232
},
3333
"dependencies": {
@@ -45,5 +45,8 @@
4545
"@types/validate-npm-package-name": "4.0.2",
4646
"tsdown": "0.20.1",
4747
"typescript": "5.9.3"
48+
},
49+
"engines": {
50+
"node": ">=24"
4851
}
4952
}

i18n/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@
298298
"no_types": "No TypeScript types"
299299
},
300300
"license": {
301-
"view_spdx": "View license text on SPDX"
301+
"view_spdx": "View license text on SPDX",
302+
"none": "None"
302303
},
303304
"vulnerabilities": {
304305
"no_description": "No description available",

lunaria/files/en-US.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@
298298
"no_types": "No TypeScript types"
299299
},
300300
"license": {
301-
"view_spdx": "View license text on SPDX"
301+
"view_spdx": "View license text on SPDX",
302+
"none": "None"
302303
},
303304
"vulnerabilities": {
304305
"no_description": "No description available",

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
},
1212
"scripts": {
1313
"build": "nuxt build",
14-
"build:lunaria": "node --experimental-transform-types ./lunaria/lunaria.ts",
14+
"build:lunaria": "node ./lunaria/lunaria.ts",
1515
"dev": "nuxt dev",
1616
"dev:docs": "pnpm run --filter npmx-docs dev --port=3001",
17-
"i18n:check": "node --experimental-transform-types scripts/compare-translations.ts",
18-
"i18n:check:fix": "node --experimental-transform-types scripts/compare-translations.ts --fix",
17+
"i18n:check": "node scripts/compare-translations.ts",
18+
"i18n:check:fix": "node scripts/compare-translations.ts --fix",
1919
"knip": "knip",
2020
"knip:fix": "knip --fix",
2121
"lint": "vite lint && vite fmt --check",
@@ -113,6 +113,9 @@
113113
"vitest-environment-nuxt": "1.0.1",
114114
"vue-tsc": "3.2.4"
115115
},
116+
"engines": {
117+
"node": ">=24"
118+
},
116119
"simple-git-hooks": {
117120
"pre-commit": "npx lint-staged"
118121
},

0 commit comments

Comments
 (0)