starlight-package-managers 0.8.1 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/package.json +1 -1
  3. package/pkg.ts +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # starlight-package-managers
2
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
+
3
13
  ## 0.8.1
4
14
 
5
15
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starlight-package-managers",
3
- "version": "0.8.1",
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)",
package/pkg.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
2
  const pkgManagers = ['npm', 'yarn', 'pnpm', 'bun', 'ni'] as const
3
3
 
4
- const defaultPkgManagers: PackageManager[] = ['npm', 'yarn', 'pnpm']
4
+ const defaultPkgManagers: PackageManager[] = ['npm', 'pnpm', 'yarn']
5
5
 
6
6
  const commands: Commands = {
7
7
  npm: {
@@ -26,7 +26,7 @@ const commands: Commands = {
26
26
  add: 'pnpm add',
27
27
  create: 'pnpm create',
28
28
  devOption: '-D',
29
- dlx: 'pnpm dlx',
29
+ dlx: 'pnpx',
30
30
  exec: 'pnpm',
31
31
  run: 'pnpm run',
32
32
  remove: 'pnpm remove',