starlight-package-managers 0.8.0 → 0.9.0
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/CHANGELOG.md +17 -0
- package/package.json +10 -11
- package/pkg.ts +3 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# starlight-package-managers
|
|
2
|
+
|
|
3
|
+
## 0.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#25](https://github.com/HiDeoo/starlight-package-managers/pull/25) [`05d78f0`](https://github.com/HiDeoo/starlight-package-managers/commit/05d78f06318357821f5dff0ea159261ed9294611) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Changes the default order of default package managers to be alphabetical (`npm`, `pnpm`, and `yarn` instead of `npm`, `yarn`, and `pnpm`).
|
|
8
|
+
|
|
9
|
+
If you want to preserve the previous behaviour, you can check the [“Global Customization” guide](https://starlight-package-managers.vercel.app/guides/package-managers#global-customization) and manually specify the package managers order you want.
|
|
10
|
+
|
|
11
|
+
- [#27](https://github.com/HiDeoo/starlight-package-managers/pull/27) [`de20d7e`](https://github.com/HiDeoo/starlight-package-managers/commit/de20d7ec1988573ae0501b2537b32ed380d4b550) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Uses the `pnpx` command instead of `pnpm dlx` for the [`dlx` command type](https://starlight-package-managers.vercel.app/usage/#dlx) which is a [shorter alias](https://pnpm.io/cli/dlx) available since [`pnpm@7.0.0`](https://github.com/pnpm/pnpm/releases/tag/v7.0.0).
|
|
12
|
+
|
|
13
|
+
## 0.8.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#18](https://github.com/HiDeoo/starlight-package-managers/pull/18) [`777e8ff`](https://github.com/HiDeoo/starlight-package-managers/commit/777e8ff307cfa876a5f84ef2c05018e5c5e93a4a) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Adds support for Astro v5.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "starlight-package-managers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Quickly display npm related commands for multiple package managers in your Starlight documentation site.",
|
|
6
6
|
"author": "HiDeoo <github@hideoo.dev> (https://hideoo.dev)",
|
|
@@ -10,21 +10,19 @@
|
|
|
10
10
|
"./package.json": "./package.json"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@
|
|
14
|
-
"
|
|
15
|
-
"astro": "4.11.0",
|
|
16
|
-
"vitest": "0.33.0"
|
|
13
|
+
"@playwright/test": "^1.49.1",
|
|
14
|
+
"vitest": "2.1.6"
|
|
17
15
|
},
|
|
18
16
|
"peerDependencies": {
|
|
19
|
-
"@astrojs/starlight": ">=0.22.0"
|
|
20
|
-
"astro": ">=4.2.7"
|
|
17
|
+
"@astrojs/starlight": ">=0.22.0"
|
|
21
18
|
},
|
|
22
19
|
"engines": {
|
|
23
|
-
"node": ">=18.
|
|
20
|
+
"node": ">=18.17.1"
|
|
24
21
|
},
|
|
25
22
|
"packageManager": "pnpm@8.6.10",
|
|
26
23
|
"publishConfig": {
|
|
27
|
-
"access": "public"
|
|
24
|
+
"access": "public",
|
|
25
|
+
"provenance": true
|
|
28
26
|
},
|
|
29
27
|
"sideEffects": false,
|
|
30
28
|
"keywords": [
|
|
@@ -38,13 +36,14 @@
|
|
|
38
36
|
"homepage": "https://github.com/HiDeoo/starlight-package-managers",
|
|
39
37
|
"repository": {
|
|
40
38
|
"type": "git",
|
|
41
|
-
"url": "https://github.com/HiDeoo/starlight-package-managers.git"
|
|
39
|
+
"url": "https://github.com/HiDeoo/starlight-package-managers.git",
|
|
40
|
+
"directory": "packages/starlight-package-managers"
|
|
42
41
|
},
|
|
43
42
|
"bugs": "https://github.com/HiDeoo/starlight-package-managers/issues",
|
|
44
43
|
"scripts": {
|
|
45
44
|
"test": "pnpm test:unit && pnpm test:e2e",
|
|
46
45
|
"test:unit": "vitest",
|
|
47
46
|
"test:e2e": "playwright install --with-deps chromium && playwright test",
|
|
48
|
-
"lint": "
|
|
47
|
+
"lint": "eslint . --cache --max-warnings=0"
|
|
49
48
|
}
|
|
50
49
|
}
|
package/pkg.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1
2
|
const pkgManagers = ['npm', 'yarn', 'pnpm', 'bun', 'ni'] as const
|
|
2
3
|
|
|
3
|
-
const defaultPkgManagers: PackageManager[] = ['npm', '
|
|
4
|
+
const defaultPkgManagers: PackageManager[] = ['npm', 'pnpm', 'yarn']
|
|
4
5
|
|
|
5
6
|
const commands: Commands = {
|
|
6
7
|
npm: {
|
|
@@ -25,7 +26,7 @@ const commands: Commands = {
|
|
|
25
26
|
add: 'pnpm add',
|
|
26
27
|
create: 'pnpm create',
|
|
27
28
|
devOption: '-D',
|
|
28
|
-
dlx: '
|
|
29
|
+
dlx: 'pnpx',
|
|
29
30
|
exec: 'pnpm',
|
|
30
31
|
run: 'pnpm run',
|
|
31
32
|
remove: 'pnpm remove',
|