@junobuild/cli-tools 0.13.3 → 0.14.0-next-2026-04-13

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,4 +1,4 @@
1
- import type { CliConfig } from '@junobuild/config';
1
+ import type { DeployConfig } from '../types/config';
2
2
  import type { DeployParams, DeployResult, DeployResultWithProposal, UploadFilesWithProposal, UploadFileWithProposal, UploadIndividually, UploadWithBatch } from '../types/deploy';
3
3
  import type { ProposeChangesParams } from '../types/proposal';
4
4
  /**
@@ -8,11 +8,11 @@ import type { ProposeChangesParams } from '../types/proposal';
8
8
  * perform validations, code generation, or other preparatory tasks.
9
9
  *
10
10
  * @param {Object} options - The function parameters.
11
- * @param {CliConfig} options.config - The full configuration object containing hook definitions.
11
+ * @param {DeployConfig} options.config - The configuration object containing hook definitions.
12
12
  * @returns {Promise<void>} Resolves once all predeploy hooks have been executed.
13
13
  */
14
14
  export declare const preDeploy: ({ config: { predeploy } }: {
15
- config: CliConfig;
15
+ config: DeployConfig;
16
16
  }) => Promise<void>;
17
17
  /**
18
18
  * Executes all configured post-deploy hooks defined in the Juno configuration.
@@ -21,11 +21,11 @@ export declare const preDeploy: ({ config: { predeploy } }: {
21
21
  * logging, or integration tasks (e.g., sending Slack notifications).
22
22
  *
23
23
  * @param {Object} options - The function parameters.
24
- * @param {CliConfig} options.config - The full configuration object containing hook definitions.
24
+ * @param {DeployConfig} options.config - The full configuration object containing hook definitions.
25
25
  * @returns {Promise<void>} Resolves once all postdeploy hooks have been executed.
26
26
  */
27
27
  export declare const postDeploy: ({ config: { postdeploy } }: {
28
- config: CliConfig;
28
+ config: DeployConfig;
29
29
  }) => Promise<void>;
30
30
  /**
31
31
  * Prepares and uploads dapp assets to a satellite.
@@ -6,6 +6,7 @@ export * from './commands/publish';
6
6
  export * from './constants/deploy.constants';
7
7
  export * from './constants/storage.constants';
8
8
  export { ListAssets } from './types/assets';
9
+ export type * from './types/config';
9
10
  export type * from './types/deploy';
10
11
  export type * from './types/pkg';
11
12
  export type * from './types/proposal';
@@ -1,8 +1,8 @@
1
- import type { CliConfig } from '@junobuild/config';
2
1
  import type { ListAssets } from '../types/assets';
2
+ import type { DeployConfig } from '../types/config';
3
3
  import type { FileDetails, PrepareDeployOptions } from '../types/deploy';
4
4
  export declare const prepareDeploy: ({ config, listAssets, assertSourceDirExists, includeAllFiles }: {
5
- config: CliConfig;
5
+ config: DeployConfig;
6
6
  listAssets: ListAssets;
7
7
  } & PrepareDeployOptions) => Promise<{
8
8
  files: FileDetails[];
@@ -1,8 +1,8 @@
1
- import type { CliConfig } from '@junobuild/config';
2
1
  import type { ListAssets } from '../types/assets';
2
+ import type { DeployConfig } from '../types/config';
3
3
  import type { PreparePruneOptions, PruneFileStorage } from '../types/prune';
4
4
  export declare const preparePrune: ({ config, listAssets, assertSourceDirExists }: {
5
- config: CliConfig;
5
+ config: DeployConfig;
6
6
  listAssets: ListAssets;
7
7
  } & PreparePruneOptions) => Promise<{
8
8
  files: PruneFileStorage[];
@@ -1,5 +1,5 @@
1
- import type { CliConfig } from '@junobuild/config';
2
1
  import type { Asset } from '@junobuild/storage';
2
+ import type { DeployConfig } from './config';
3
3
  export interface PrepareAssetsOptions {
4
4
  assertSourceDirExists?: (source: string) => void;
5
5
  }
@@ -7,6 +7,6 @@ export type ListAssets = ({ startAfter }: {
7
7
  startAfter?: string;
8
8
  }) => Promise<Asset[]>;
9
9
  export interface AssetsParams {
10
- config: CliConfig;
10
+ config: DeployConfig;
11
11
  listAssets: ListAssets;
12
12
  }
@@ -0,0 +1,2 @@
1
+ import type { CliConfig, HostingConfig } from '@junobuild/config';
2
+ export type DeployConfig = Partial<HostingConfig> | CliConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/cli-tools",
3
- "version": "0.13.3",
3
+ "version": "0.14.0-next-2026-04-13",
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",
@@ -46,13 +46,13 @@
46
46
  ],
47
47
  "homepage": "https://juno.build",
48
48
  "peerDependencies": {
49
- "@junobuild/cdn": "^2.4",
50
- "@junobuild/config": "^2.14",
51
- "@junobuild/functions-tools": "^0.6",
52
- "@junobuild/storage": "^2.4",
53
- "@junobuild/utils": "^1.0.2",
54
- "esbuild": "^0.27.0",
55
- "ora": "^9"
49
+ "@junobuild/cdn": "*",
50
+ "@junobuild/config": "*",
51
+ "@junobuild/functions-tools": "*",
52
+ "@junobuild/storage": "*",
53
+ "@junobuild/utils": "*",
54
+ "esbuild": "*",
55
+ "ora": "*"
56
56
  },
57
57
  "dependencies": {
58
58
  "file-type": "^22.0.0",
@@ -64,4 +64,4 @@
64
64
  "@types/mime-types": "^3.0.1",
65
65
  "@types/minimatch": "^6.0.0"
66
66
  }
67
- }
67
+ }