kley-cli 0.1.3 → 0.2.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 +7 -0
- package/README.md +21 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [0.2.0] - 2026-03-22
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **`link` Command**: Implemented the `kley link <package-name>` command to create a direct symbolic link from a project's `kley` store to the project's `node_modules` directory. This provides a lightweight alternative to `add` without modifying `package.json`.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
10
17
|
## [0.1.3] - 2026-03-20
|
|
11
18
|
|
|
12
19
|
### Added
|
package/README.md
CHANGED
|
@@ -15,12 +15,12 @@ English | [Русский](./README_RU.md)
|
|
|
15
15
|
- **Node.js Independent**: Publish and install packages even if the library and the host project use different Node.js versions.
|
|
16
16
|
- **Fast, Efficient, and Safe**: Written in Rust for memory safety, security, and maximum performance.
|
|
17
17
|
- **Reliable**: Avoids symlink issues by copying files directly.
|
|
18
|
-
- **Simple API**:
|
|
18
|
+
- **Simple API**: Four core commands to get started: `publish`, `add`, `link`, and `remove`.
|
|
19
19
|
- **Cross-Platform**: Works on macOS, Linux, and Windows.
|
|
20
20
|
|
|
21
21
|
## Installation
|
|
22
22
|
|
|
23
|
-
### Quick Install
|
|
23
|
+
### Quick Install (recommended)
|
|
24
24
|
|
|
25
25
|
You can install `kley` with a single command using the installer script:
|
|
26
26
|
|
|
@@ -41,6 +41,21 @@ Alternatively, you can install `kley` by downloading a pre-compiled binary from
|
|
|
41
41
|
2. Unpack the archive.
|
|
42
42
|
3. Move the `kley` binary to a directory in your system's `PATH` (e.g., `/usr/local/bin` on macOS/Linux).
|
|
43
43
|
|
|
44
|
+
|
|
45
|
+
### Install via Cargo (crates.io)
|
|
46
|
+
If you have Rust and Cargo installed, you can install `kley` directly from crates.io:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
cargo install kley
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Install via npm (kley-cli)
|
|
53
|
+
You can install `kley-cli` globally. Use it only if you have the same Node.js versions for your library and host a project, otherwise you should install it to all Node.js versions:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npm install -g kley-cli
|
|
57
|
+
```
|
|
58
|
+
|
|
44
59
|
## Usage
|
|
45
60
|
|
|
46
61
|
### 1. `kley publish`
|
|
@@ -51,7 +66,10 @@ Run this command in the project where you want to use your local package. Kley c
|
|
|
51
66
|
|
|
52
67
|
- Use the `--dev` flag to add the package to `devDependencies`.
|
|
53
68
|
|
|
54
|
-
### 3. `kley
|
|
69
|
+
### 3. `kley link <package-name>`
|
|
70
|
+
This command provides a lightweight alternative to `add`. It first copies the package to a local `.kley` directory and then creates a symbolic link from `./.kley/<your-package-name>` to your project's `node_modules` directory. This is faster than a full `add` and does **not** modify your `package.json`.
|
|
71
|
+
|
|
72
|
+
### 4. `kley remove <package-name>`
|
|
55
73
|
Run this command to cleanly remove a kley-managed dependency from your project. It will update `package.json` and `kley.lock`, and delete the package files from the `./.kley/` directory.
|
|
56
74
|
|
|
57
75
|
- Use the `--all` flag to remove all kley-managed packages from the project.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"hasInstallScript": true,
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"name": "kley-cli",
|
|
26
|
-
"version": "0.
|
|
26
|
+
"version": "0.2.0"
|
|
27
27
|
},
|
|
28
28
|
"node_modules/@isaacs/cliui": {
|
|
29
29
|
"engines": {
|
|
@@ -542,5 +542,5 @@
|
|
|
542
542
|
}
|
|
543
543
|
},
|
|
544
544
|
"requires": true,
|
|
545
|
-
"version": "0.
|
|
545
|
+
"version": "0.2.0"
|
|
546
546
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"artifactDownloadUrls": [
|
|
3
|
-
"https://github.com/sumbad/kley/releases/download/v0.
|
|
3
|
+
"https://github.com/sumbad/kley/releases/download/v0.2.0"
|
|
4
4
|
],
|
|
5
5
|
"author": "sumbad",
|
|
6
6
|
"bin": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"zipExt": ".tar.xz"
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
|
-
"version": "0.
|
|
89
|
+
"version": "0.2.0",
|
|
90
90
|
"volta": {
|
|
91
91
|
"node": "18.14.1",
|
|
92
92
|
"npm": "9.5.0"
|