creatium 0.2.4 → 0.2.6
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/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +42 -42
- package/dist/shared/creatium.DU0m1vqH.mjs +6454 -0
- package/dist/utils.d.mts +13 -11
- package/dist/utils.d.ts +13 -11
- package/dist/utils.mjs +1 -1
- package/package.json +5 -5
- package/dist/shared/creatium.CAW6sFto.mjs +0 -5912
package/dist/utils.d.mts
CHANGED
|
@@ -2,8 +2,10 @@ import { boxen } from '@visulima/boxen';
|
|
|
2
2
|
import { TableConstructorOptions } from 'cli-table3';
|
|
3
3
|
import columnify from 'columnify';
|
|
4
4
|
import * as p from '@clack/prompts';
|
|
5
|
-
import
|
|
5
|
+
import { InspectColor } from 'node:util';
|
|
6
|
+
import * as node_fs from 'node:fs';
|
|
6
7
|
import { readFile as readFile$1, writeFile as writeFile$1 } from 'node:fs/promises';
|
|
8
|
+
import { resolve, basename, dirname, extname, isAbsolute, normalize, relative } from 'node:path';
|
|
7
9
|
import glob from 'tiny-glob';
|
|
8
10
|
import { homedir } from 'node:os';
|
|
9
11
|
export { default as currentProcess } from 'node:process';
|
|
@@ -107,7 +109,7 @@ type GradientOpts = {
|
|
|
107
109
|
* @example
|
|
108
110
|
* console.log(color.green('This text is green'));
|
|
109
111
|
*/
|
|
110
|
-
declare const color: Record<
|
|
112
|
+
declare const color: Record<InspectColor, (v: string) => string>;
|
|
111
113
|
/**
|
|
112
114
|
* Generates a gradient string with the specified colors.
|
|
113
115
|
*
|
|
@@ -477,13 +479,13 @@ declare const object2string: (data: unknown) => string;
|
|
|
477
479
|
*/
|
|
478
480
|
declare const truncate: (text: string, maxLength: number, ellipsis?: string) => string;
|
|
479
481
|
|
|
480
|
-
declare const resolvePath:
|
|
481
|
-
declare const relativePath:
|
|
482
|
-
declare const getExtName:
|
|
483
|
-
declare const getDirName:
|
|
484
|
-
declare const getBaseName:
|
|
485
|
-
declare const isAbsolutePath:
|
|
486
|
-
declare const normalizePath:
|
|
482
|
+
declare const resolvePath: typeof resolve;
|
|
483
|
+
declare const relativePath: typeof relative;
|
|
484
|
+
declare const getExtName: typeof extname;
|
|
485
|
+
declare const getDirName: typeof dirname;
|
|
486
|
+
declare const getBaseName: typeof basename;
|
|
487
|
+
declare const isAbsolutePath: typeof isAbsolute;
|
|
488
|
+
declare const normalizePath: typeof normalize;
|
|
487
489
|
|
|
488
490
|
declare const writeFile: typeof writeFile$1;
|
|
489
491
|
/**
|
|
@@ -533,7 +535,7 @@ declare const ensureDir: (path: string) => Promise<void>;
|
|
|
533
535
|
* @example
|
|
534
536
|
* const dirItems = await readDir('./path/to/directory')
|
|
535
537
|
*/
|
|
536
|
-
declare const readDir: (path: string) => Promise<
|
|
538
|
+
declare const readDir: (path: string) => Promise<node_fs.Dirent<string>[]>;
|
|
537
539
|
/**
|
|
538
540
|
* Gets the file names in a directory and filters them by extension.
|
|
539
541
|
*
|
|
@@ -568,7 +570,7 @@ declare function joinPath(...paths: string[]): string;
|
|
|
568
570
|
* @param {...string} paths - Path segments to resolve.
|
|
569
571
|
* @returns {string} - The resolved absolute path.
|
|
570
572
|
*/
|
|
571
|
-
declare const getAbsolutePath:
|
|
573
|
+
declare const getAbsolutePath: typeof resolve;
|
|
572
574
|
/**
|
|
573
575
|
* Validates and resolves a path with home directory replacement.
|
|
574
576
|
*
|
package/dist/utils.d.ts
CHANGED
|
@@ -2,8 +2,10 @@ import { boxen } from '@visulima/boxen';
|
|
|
2
2
|
import { TableConstructorOptions } from 'cli-table3';
|
|
3
3
|
import columnify from 'columnify';
|
|
4
4
|
import * as p from '@clack/prompts';
|
|
5
|
-
import
|
|
5
|
+
import { InspectColor } from 'node:util';
|
|
6
|
+
import * as node_fs from 'node:fs';
|
|
6
7
|
import { readFile as readFile$1, writeFile as writeFile$1 } from 'node:fs/promises';
|
|
8
|
+
import { resolve, basename, dirname, extname, isAbsolute, normalize, relative } from 'node:path';
|
|
7
9
|
import glob from 'tiny-glob';
|
|
8
10
|
import { homedir } from 'node:os';
|
|
9
11
|
export { default as currentProcess } from 'node:process';
|
|
@@ -107,7 +109,7 @@ type GradientOpts = {
|
|
|
107
109
|
* @example
|
|
108
110
|
* console.log(color.green('This text is green'));
|
|
109
111
|
*/
|
|
110
|
-
declare const color: Record<
|
|
112
|
+
declare const color: Record<InspectColor, (v: string) => string>;
|
|
111
113
|
/**
|
|
112
114
|
* Generates a gradient string with the specified colors.
|
|
113
115
|
*
|
|
@@ -477,13 +479,13 @@ declare const object2string: (data: unknown) => string;
|
|
|
477
479
|
*/
|
|
478
480
|
declare const truncate: (text: string, maxLength: number, ellipsis?: string) => string;
|
|
479
481
|
|
|
480
|
-
declare const resolvePath:
|
|
481
|
-
declare const relativePath:
|
|
482
|
-
declare const getExtName:
|
|
483
|
-
declare const getDirName:
|
|
484
|
-
declare const getBaseName:
|
|
485
|
-
declare const isAbsolutePath:
|
|
486
|
-
declare const normalizePath:
|
|
482
|
+
declare const resolvePath: typeof resolve;
|
|
483
|
+
declare const relativePath: typeof relative;
|
|
484
|
+
declare const getExtName: typeof extname;
|
|
485
|
+
declare const getDirName: typeof dirname;
|
|
486
|
+
declare const getBaseName: typeof basename;
|
|
487
|
+
declare const isAbsolutePath: typeof isAbsolute;
|
|
488
|
+
declare const normalizePath: typeof normalize;
|
|
487
489
|
|
|
488
490
|
declare const writeFile: typeof writeFile$1;
|
|
489
491
|
/**
|
|
@@ -533,7 +535,7 @@ declare const ensureDir: (path: string) => Promise<void>;
|
|
|
533
535
|
* @example
|
|
534
536
|
* const dirItems = await readDir('./path/to/directory')
|
|
535
537
|
*/
|
|
536
|
-
declare const readDir: (path: string) => Promise<
|
|
538
|
+
declare const readDir: (path: string) => Promise<node_fs.Dirent<string>[]>;
|
|
537
539
|
/**
|
|
538
540
|
* Gets the file names in a directory and filters them by extension.
|
|
539
541
|
*
|
|
@@ -568,7 +570,7 @@ declare function joinPath(...paths: string[]): string;
|
|
|
568
570
|
* @param {...string} paths - Path segments to resolve.
|
|
569
571
|
* @returns {string} - The resolved absolute path.
|
|
570
572
|
*/
|
|
571
|
-
declare const getAbsolutePath:
|
|
573
|
+
declare const getAbsolutePath: typeof resolve;
|
|
572
574
|
/**
|
|
573
575
|
* Validates and resolves a path with home directory replacement.
|
|
574
576
|
*
|
package/dist/utils.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { B as arePathsEqual, x as box, _ as cache, $ as catchExecOutput, S as color, M as columns, T as copyDir, R as copyFile, O as createDir, k as createSymlink, I as currentProcess, j as deepmerge, W as deepmergeCustom, L as ensureDir, P as env, N as exec, H as execChild, G as existsDir, V as existsFile, z as existsLocalBin, U as existsLocalBins, q as existsPath, Y as fileURLToPath, K as getAbsolutePath, J as getArch, Z as getBaseName, X as getClosestPackageDir, Q as getClosestPackageJson, t as getContentDir, e as getCurrentDir, u as getDirName, r as getExtName, n as getFilteredFileNames, o as getHomeDir, s as getObjectFromJSONFile, D as getPaths, a as getPlatform, l as getStringType, c as getSystemEnvPaths, h as getTempDir, d as gradient, p as isAbsolutePath, g as isBrowser, F as isBun, m as isDeno, C as isDev, E as isDirectory, b as isJsDom, v as isNode, y as isPath, w as isWebWorker, A as joinPath, f as joinUrl, i as line, a0 as normalizePath, a1 as object2string, a2 as prompt, a3 as readDir, a4 as readFile, a5 as relativePath, a6 as removeDir, a7 as removeDirIfExist, a8 as removeFile, a9 as removeFileIfExist, aa as removePathIfExist, ab as replacePlaceholders, ac as resolvePath, ad as table, ae as truncate, af as validateHomeDir, ag as writeFile, ah as writeFileContent } from './shared/creatium.DU0m1vqH.mjs';
|
|
2
2
|
import 'module';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "creatium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Build your create-bins quickly and easily",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bin",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"dist"
|
|
51
51
|
],
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@clippium/preset-colored": "1.0.2",
|
|
54
|
-
"@clippium/updater": "1.0.2",
|
|
55
|
-
"clippium": "1.0.2"
|
|
53
|
+
"@clippium/preset-colored": "~1.0.2",
|
|
54
|
+
"@clippium/updater": "~1.0.2",
|
|
55
|
+
"clippium": "~1.0.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@creatium-js/repo-config": "0.2.
|
|
58
|
+
"@creatium-js/repo-config": "0.2.6"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public",
|