@junobuild/cli-tools 0.0.6 → 0.0.8

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,2 +1,7 @@
1
1
  export * from './configs/juno.config';
2
2
  export type * from './types/config';
3
+ export * from './utils/args.utils';
4
+ export * from './utils/cmd.utils';
5
+ export * from './utils/compress.utils';
6
+ export * from './utils/download.utils';
7
+ export * from './utils/fs.utils';
@@ -0,0 +1,8 @@
1
+ export declare const hasArgs: ({ args, options }: {
2
+ args?: string[] | undefined;
3
+ options: string[];
4
+ }) => boolean;
5
+ export declare const nextArg: ({ args, option }: {
6
+ args?: string[] | undefined;
7
+ option: string;
8
+ }) => string | undefined;
@@ -0,0 +1,12 @@
1
+ export declare const spawn: ({ command, cwd, args, stdout, silentOut, silentErrors }: {
2
+ command: string;
3
+ cwd?: string | undefined;
4
+ args?: readonly string[] | undefined;
5
+ stdout?: ((output: string) => void) | undefined;
6
+ silentOut?: boolean | undefined;
7
+ silentErrors?: boolean | undefined;
8
+ }) => Promise<number | null>;
9
+ export declare const execute: ({ command, args }: {
10
+ command: string;
11
+ args?: readonly string[] | undefined;
12
+ }) => Promise<number | null>;
@@ -0,0 +1,4 @@
1
+ /// <reference types="node" />
2
+ export declare const gunzipFile: ({ source }: {
3
+ source: Buffer;
4
+ }) => Promise<Buffer>;
@@ -0,0 +1,4 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import { type RequestOptions } from 'https';
4
+ export declare const downloadFromURL: (url: string | RequestOptions) => Promise<Buffer>;
@@ -0,0 +1,2 @@
1
+ export declare const files: (source: string) => string[];
2
+ export declare const fileExists: (path: string) => Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/cli-tools",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
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",