@afoures/auto-release 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -17,11 +17,11 @@ Release management should be simple. `auto-release` lets you focus on building f
17
17
  ## Quick Start
18
18
 
19
19
  ```bash
20
- npx auto-release init
20
+ npx --package=@afoures/auto-release@latest auto-release init
21
21
  # or
22
- pnpm dlx auto-release init
22
+ pnpx --package=@afoures/auto-release@latest auto-release init
23
23
  # or
24
- bunx auto-release init
24
+ bunx --package=@afoures/auto-release@latest auto-release init
25
25
  ```
26
26
 
27
27
  This creates `auto-release.config.ts` and sets up the `.changes` directory.
@@ -1,5 +1,6 @@
1
1
  import { create_command } from "../cli.mjs";
2
2
  import { exec } from "../utils/exec.mjs";
3
+ import { name } from "../../package.mjs";
3
4
  import { cancel, confirm, intro, isCancel, log, outro, select, spinner, text } from "@clack/prompts";
4
5
  import { basename, dirname, join } from "node:path";
5
6
  import { constants } from "node:fs";
@@ -78,10 +79,10 @@ async function detect_package_manager(cwd, package_json) {
78
79
  }
79
80
  function get_install_command(package_manager) {
80
81
  switch (package_manager) {
81
- case "pnpm": return "pnpm add -D auto-release";
82
- case "yarn": return "yarn add -D auto-release";
83
- case "bun": return "bun add -d auto-release";
84
- default: return "npm install --save-dev auto-release";
82
+ case "pnpm": return `pnpm add -D ${name}`;
83
+ case "yarn": return `yarn add -D ${name}`;
84
+ case "bun": return `bun add -d ${name}`;
85
+ default: return `npm install --save-dev ${name}`;
85
86
  }
86
87
  }
87
88
  async function ensure_package_json(path) {
@@ -0,0 +1,5 @@
1
+ //#region package.json
2
+ var name = "@afoures/auto-release";
3
+
4
+ //#endregion
5
+ export { name };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afoures/auto-release",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "A file based release management tool for monorepos",
5
5
  "homepage": "https://github.com/afoures/auto-release#readme",
6
6
  "bugs": {