@kanonak-protocol/cli 8.3.0 → 8.5.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/dist/commands/install.d.ts +3 -1
- package/dist/commands/lock.d.ts +4 -0
- package/dist/index.js +264 -262
- package/package.json +3 -3
|
@@ -30,7 +30,9 @@ import { FileCache } from '../cache/FileCache.js';
|
|
|
30
30
|
*
|
|
31
31
|
* A refusal throws; the CLI reports it and exits 1.
|
|
32
32
|
*/
|
|
33
|
-
export declare function installCommand(packageRef?: string
|
|
33
|
+
export declare function installCommand(packageRef?: string, options?: {
|
|
34
|
+
frozen?: boolean;
|
|
35
|
+
}): Promise<void>;
|
|
34
36
|
/**
|
|
35
37
|
* Ensure a pinned package is in the cache: a cache hit is verified against the
|
|
36
38
|
* lock's integrity; a miss is fetched through `publisherIndex` (the user's
|
package/dist/commands/lock.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { KanonakParser } from '@kanonak-protocol/sdk';
|
|
2
|
+
import type { KanonakDocument } from '@kanonak-protocol/types/document/models';
|
|
1
3
|
/**
|
|
2
4
|
* `kanonak lock` — write the `kanonak.lock` of the packages in this folder.
|
|
3
5
|
*
|
|
@@ -15,3 +17,5 @@
|
|
|
15
17
|
* it and exits 1.
|
|
16
18
|
*/
|
|
17
19
|
export declare function lockCommand(): Promise<void>;
|
|
20
|
+
/** The Kanonak packages in `folder`, each parsed; one that doesn't parse throws, naming its file. */
|
|
21
|
+
export declare function readPackages(folder: string, parser: KanonakParser): KanonakDocument[];
|