@junobuild/cli-tools 0.4.1 → 0.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.
@@ -1,5 +1,5 @@
1
1
  import type { CliConfig, EncodingType } from '@junobuild/config';
2
- import type { Blob } from 'buffer';
2
+ import type { Asset } from '@junobuild/storage';
3
3
  export type MimeType = string;
4
4
  export type FileExtension = string;
5
5
  export interface FileDetails {
@@ -15,13 +15,6 @@ export interface FileAndPaths {
15
15
  file: FileDetails;
16
16
  paths: FilePaths;
17
17
  }
18
- export interface AssetEncoding {
19
- sha256: string;
20
- }
21
- export interface Asset {
22
- fullPath: string;
23
- encodings: Record<EncodingType, AssetEncoding>;
24
- }
25
18
  export type ListAssets = ({ startAfter }: {
26
19
  startAfter?: string;
27
20
  }) => Promise<Asset[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/cli-tools",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "A collection of tools for Juno CLIs and Plugins.",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -54,8 +54,9 @@
54
54
  "homepage": "https://juno.build",
55
55
  "peerDependencies": {
56
56
  "@dfinity/utils": "^2",
57
- "@junobuild/cdn": "*",
57
+ "@junobuild/cdn": "^1",
58
58
  "@junobuild/config": "*",
59
+ "@junobuild/storage": "^1",
59
60
  "esbuild": "^0.25.1"
60
61
  },
61
62
  "dependencies": {