@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 +3 -3
- package/dist/lib/commands/init.mjs +5 -4
- package/dist/package.mjs +5 -0
- package/package.json +1 -1
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
|
-
|
|
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
|
|
82
|
-
case "yarn": return
|
|
83
|
-
case "bun": return
|
|
84
|
-
default: return
|
|
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) {
|
package/dist/package.mjs
ADDED