@stacksjs/utils 0.67.0 → 0.68.1
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/clean.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/equal.d.ts +1 -1
- package/dist/export-size.d.ts +1 -1
- package/dist/find.d.ts +4 -3
- package/dist/fsevents-hj42pnne.node +0 -0
- package/dist/git.d.ts +1 -1
- package/dist/glob.d.ts +1 -1
- package/dist/hash.d.ts +2 -1
- package/dist/helpers.d.ts +6 -36
- package/dist/index.d.ts +11 -11
- package/dist/index.js +71 -66
- package/dist/macroable.d.ts +1 -1
- package/dist/utils.d.ts +2 -1
- package/dist/versions.d.ts +4 -3
- package/package.json +4 -4
package/dist/clean.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function cleanProject(): Promise<void>;
|
|
1
|
+
export declare function cleanProject(): Promise<void>;
|
package/dist/config.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {
|
package/dist/equal.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function isDeepEqual(value1: any, value2: any): boolean;
|
|
1
|
+
export declare function isDeepEqual(value1: any, value2: any): boolean;
|
package/dist/export-size.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getExportsSize } from
|
|
1
|
+
export { getExportsSize } from 'export-size'
|
package/dist/find.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare const targetFileName: unknown;
|
|
2
|
+
declare interface FindStacksProjectsOptions {
|
|
3
|
+
quiet?: boolean
|
|
3
4
|
}
|
|
4
5
|
export declare function findStacksProjects(dir?: string, options?: FindStacksProjectsOptions): Promise<string[]>;
|
|
5
|
-
|
|
6
|
+
declare function searchDirectory(directory: string): Promise<string[]>;
|
|
Binary file
|
package/dist/git.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function isGitClean(): boolean;
|
|
1
|
+
export declare function isGitClean(): boolean;
|
package/dist/glob.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { glob } from
|
|
1
|
+
export { glob } from '@stacksjs/storage'
|
package/dist/hash.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function originRequestFunctionHash(): string | undefined;
|
|
2
|
+
declare const docsSrc: Array<unknown | unknown>;
|
|
2
3
|
export declare function websiteSourceHash(): string | undefined;
|
|
3
|
-
export declare function docsSourceHash(): string | undefined;
|
|
4
|
+
export declare function docsSourceHash(): string | undefined;
|
package/dist/helpers.d.ts
CHANGED
|
@@ -1,50 +1,20 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
|
|
1
|
+
import type { AddressInfo } from 'node:net';
|
|
2
|
+
import type { CliOptions, Manifest, Subprocess } from '@stacksjs/types';
|
|
3
|
+
import type { NpmScript } from '@stacksjs/enums';
|
|
4
|
+
|
|
5
|
+
export { dump as dumpYaml, load as loadYaml } from 'js-yaml'
|
|
5
6
|
export declare function packageManager(): Promise<string>;
|
|
6
7
|
export declare function initProject(): Promise<Result<Subprocess, Error>>;
|
|
7
8
|
export declare function ensureProjectIsInitialized(): Promise<boolean>;
|
|
8
9
|
export declare function installIfVersionMismatch(): Promise<void>;
|
|
9
10
|
export declare function frameworkVersion(): Promise<string>;
|
|
10
11
|
export declare function isAppKeySet(): Promise<boolean>;
|
|
11
|
-
/**
|
|
12
|
-
* Determines the utilized reset preset.
|
|
13
|
-
*
|
|
14
|
-
* @url https://www.npmjs.com/package/@unocss/reset
|
|
15
|
-
* @param preset
|
|
16
|
-
*/
|
|
17
12
|
export declare function determineResetPreset(preset?: string): string[];
|
|
18
|
-
/**
|
|
19
|
-
* Determines whether the specified value is a package manifest.
|
|
20
|
-
*/
|
|
21
13
|
export declare function isManifest(obj: any): obj is Manifest;
|
|
22
|
-
/**
|
|
23
|
-
* Determines whether the specified value is a string, null, or undefined.
|
|
24
|
-
*/
|
|
25
14
|
export declare function isOptionalString(value: any): value is string | undefined;
|
|
26
15
|
export declare function setEnvValue(key: string, value: string): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Runs the specified NPM script in the package.json file.
|
|
29
|
-
*/
|
|
30
16
|
export declare function runNpmScript(script: NpmScript, options?: CliOptions): Promise<Result<Subprocess, Error>>;
|
|
31
|
-
/**
|
|
32
|
-
* Determines whether the specified NPM script exists in the given manifest.
|
|
33
|
-
*/
|
|
34
17
|
export declare function hasScript(manifest: Manifest, script: NpmScript): boolean;
|
|
35
18
|
export declare function parseYaml(content: any): any;
|
|
36
|
-
/**
|
|
37
|
-
* Determines the level of debugging.
|
|
38
|
-
*
|
|
39
|
-
* The debug level is determined by the following:
|
|
40
|
-
* 1. The --verbose flag
|
|
41
|
-
* 2. The debug property in the app configuration
|
|
42
|
-
*
|
|
43
|
-
* Currently, we don't support a custom debug level,
|
|
44
|
-
* though, we would like to in the future.
|
|
45
|
-
*
|
|
46
|
-
* @param options
|
|
47
|
-
*/
|
|
48
19
|
export declare function determineDebugLevel(options?: CliOptions): boolean;
|
|
49
|
-
export declare function isIpv6(address: AddressInfo): boolean;
|
|
50
|
-
export { dump as dumpYaml, load as loadYaml } from "js-yaml";
|
|
20
|
+
export declare function isIpv6(address: AddressInfo): boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
1
|
+
export * from './clean'
|
|
2
|
+
export * from './config'
|
|
3
|
+
export * from './equal'
|
|
4
|
+
export * from './export-size'
|
|
5
|
+
export * from './find'
|
|
6
|
+
export * from './git'
|
|
7
|
+
export * from './hash'
|
|
8
|
+
export * from './helpers'
|
|
9
|
+
export * from './macroable'
|
|
10
|
+
export * from './versions'
|
|
11
|
+
export * from '@stacksjs/browser'
|