@storm-software/config-tools 1.190.119 → 1.190.121
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/README.md +1 -1
- package/bin/config.cjs +1213 -1558
- package/bin/config.mjs +1271 -0
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/config-file/get-config-file.cjs +67 -28
- package/dist/config-file/get-config-file.d.cts +5 -5
- package/dist/config-file/{get-config-file.d.ts → get-config-file.d.mts} +7 -5
- package/dist/config-file/get-config-file.mjs +66 -0
- package/dist/config-file/index.cjs +4 -29
- package/dist/config-file/index.d.cts +2 -3
- package/dist/config-file/index.d.mts +4 -0
- package/dist/config-file/index.mjs +5 -0
- package/dist/create-storm-config.cjs +115 -34
- package/dist/create-storm-config.d.cts +5 -5
- package/dist/{create-storm-config.d.ts → create-storm-config.d.mts} +7 -5
- package/dist/create-storm-config.mjs +113 -0
- package/dist/env/get-env.cjs +202 -11
- package/dist/env/get-env.d.cts +5 -5
- package/dist/env/{get-env.d.ts → get-env.d.mts} +7 -5
- package/dist/env/get-env.mjs +203 -0
- package/dist/env/index.cjs +7 -18
- package/dist/env/index.d.cts +3 -4
- package/dist/env/index.d.mts +5 -0
- package/dist/env/index.mjs +6 -0
- package/dist/env/set-env.cjs +230 -11
- package/dist/env/set-env.d.cts +8 -8
- package/dist/env/{set-env.d.ts → set-env.d.mts} +10 -8
- package/dist/env/set-env.mjs +231 -0
- package/dist/get-config.cjs +46 -34
- package/dist/get-config.d.cts +18 -18
- package/dist/{get-config.d.ts → get-config.d.mts} +20 -18
- package/dist/get-config.mjs +46 -0
- package/dist/index.cjs +98 -201
- package/dist/index.d.cts +27 -28
- package/dist/index.d.mts +29 -0
- package/dist/index.mjs +26 -0
- package/dist/logger/chalk.cjs +43 -6
- package/dist/logger/chalk.d.cts +18 -17
- package/dist/logger/chalk.d.mts +37 -0
- package/dist/logger/chalk.mjs +43 -0
- package/dist/logger/console-icons.cjs +18 -8
- package/dist/logger/console-icons.d.cts +5 -8
- package/dist/logger/console-icons.d.mts +7 -0
- package/dist/logger/console-icons.mjs +20 -0
- package/dist/logger/console.cjs +195 -37
- package/dist/logger/console.d.cts +25 -25
- package/dist/logger/{console.d.ts → console.d.mts} +27 -25
- package/dist/logger/console.mjs +185 -0
- package/dist/logger/create-logger.cjs +34 -14
- package/dist/logger/create-logger.d.cts +5 -6
- package/dist/logger/{create-logger.d.ts → create-logger.d.mts} +7 -6
- package/dist/logger/create-logger.mjs +34 -0
- package/dist/logger/format-timestamp.cjs +14 -6
- package/dist/logger/format-timestamp.d.cts +3 -2
- package/dist/logger/{format-timestamp.d.ts → format-timestamp.d.mts} +5 -2
- package/dist/logger/format-timestamp.mjs +16 -0
- package/dist/logger/get-log-level.cjs +54 -11
- package/dist/logger/get-log-level.d.cts +4 -5
- package/dist/logger/{get-log-level.d.ts → get-log-level.d.mts} +6 -5
- package/dist/logger/get-log-level.mjs +54 -0
- package/dist/logger/index.cjs +29 -61
- package/dist/logger/index.d.cts +8 -10
- package/dist/logger/index.d.mts +10 -0
- package/dist/logger/index.mjs +11 -0
- package/dist/logger/is-unicode-supported.cjs +8 -6
- package/dist/logger/is-unicode-supported.d.cts +3 -2
- package/dist/logger/is-unicode-supported.d.mts +6 -0
- package/dist/logger/is-unicode-supported.mjs +10 -0
- package/dist/types.cjs +29 -8
- package/dist/types.d.cts +39 -41
- package/dist/types.d.mts +53 -0
- package/dist/types.mjs +30 -0
- package/dist/utilities/apply-workspace-tokens.cjs +37 -13
- package/dist/utilities/apply-workspace-tokens.d.cts +4 -5
- package/dist/utilities/{apply-workspace-tokens.d.ts → apply-workspace-tokens.d.mts} +6 -5
- package/dist/utilities/apply-workspace-tokens.mjs +37 -0
- package/dist/utilities/colors.cjs +98 -12
- package/dist/utilities/colors.d.cts +4 -4
- package/dist/utilities/{colors.d.ts → colors.d.mts} +6 -4
- package/dist/utilities/colors.mjs +97 -0
- package/dist/utilities/correct-paths.cjs +201 -32
- package/dist/utilities/correct-paths.d.cts +4 -4
- package/dist/utilities/{correct-paths.d.ts → correct-paths.d.mts} +6 -4
- package/dist/utilities/correct-paths.mjs +190 -0
- package/dist/utilities/file-path-utils.cjs +48 -11
- package/dist/utilities/file-path-utils.d.cts +15 -14
- package/dist/utilities/{file-path-utils.d.ts → file-path-utils.d.mts} +17 -14
- package/dist/utilities/file-path-utils.mjs +48 -0
- package/dist/utilities/find-up.cjs +17 -6
- package/dist/utilities/find-up.d.cts +3 -2
- package/dist/utilities/{find-up.d.ts → find-up.d.mts} +5 -2
- package/dist/utilities/find-up.mjs +19 -0
- package/dist/utilities/find-workspace-root.cjs +72 -10
- package/dist/utilities/find-workspace-root.d.cts +3 -2
- package/dist/utilities/{find-workspace-root.d.ts → find-workspace-root.d.mts} +5 -2
- package/dist/utilities/find-workspace-root.mjs +73 -0
- package/dist/utilities/get-default-config.cjs +73 -11
- package/dist/utilities/get-default-config.d.cts +4 -4
- package/dist/utilities/{get-default-config.d.ts → get-default-config.d.mts} +6 -4
- package/dist/utilities/get-default-config.mjs +74 -0
- package/dist/utilities/index.cjs +49 -109
- package/dist/utilities/index.d.cts +10 -14
- package/dist/utilities/index.d.mts +12 -0
- package/dist/utilities/index.mjs +13 -0
- package/dist/utilities/process-handler.cjs +38 -18
- package/dist/utilities/process-handler.d.cts +4 -4
- package/dist/utilities/process-handler.d.mts +9 -0
- package/dist/utilities/process-handler.mjs +38 -0
- package/dist/utilities/run.cjs +64 -10
- package/dist/utilities/run.d.cts +5 -6
- package/dist/utilities/{run.d.ts → run.d.mts} +7 -6
- package/dist/utilities/run.mjs +64 -0
- package/dist/utilities/toml.cjs +37 -24
- package/dist/utilities/toml.d.cts +148 -147
- package/dist/utilities/toml.d.mts +192 -0
- package/dist/utilities/toml.mjs +33 -0
- package/package.json +106 -158
- package/bin/config.js +0 -1616
- package/dist/chunk-24B36RDB.cjs +0 -81
- package/dist/chunk-27N3QEX5.js +0 -40
- package/dist/chunk-2AVLCXLT.js +0 -0
- package/dist/chunk-2RLMTBVZ.js +0 -233
- package/dist/chunk-2WBD2G3E.cjs +0 -38
- package/dist/chunk-3COHMHPU.cjs +0 -1
- package/dist/chunk-4Q45WJYQ.js +0 -165
- package/dist/chunk-5C7PIENF.js +0 -92
- package/dist/chunk-5J2SS4QU.js +0 -83
- package/dist/chunk-65SWKEHV.cjs +0 -1
- package/dist/chunk-6Y623TCS.cjs +0 -40
- package/dist/chunk-7PV6L7I7.cjs +0 -1
- package/dist/chunk-7QBTVNMR.cjs +0 -30
- package/dist/chunk-BDATZ3UB.cjs +0 -233
- package/dist/chunk-BZRTSWH4.cjs +0 -395
- package/dist/chunk-D3FRXXDE.js +0 -947
- package/dist/chunk-DTGT4OI3.cjs +0 -14
- package/dist/chunk-EC2KPWRG.cjs +0 -24
- package/dist/chunk-EENQN6N2.js +0 -40
- package/dist/chunk-ENI4UUSK.cjs +0 -35
- package/dist/chunk-FJNXECWU.js +0 -395
- package/dist/chunk-FMDVBSP6.cjs +0 -83
- package/dist/chunk-G2MK47WL.js +0 -14
- package/dist/chunk-HFS7WJVW.js +0 -81
- package/dist/chunk-HVVJHTFS.js +0 -36
- package/dist/chunk-IWD6YQKX.cjs +0 -1
- package/dist/chunk-IWQRXQ4N.cjs +0 -84
- package/dist/chunk-JK4TT5IV.js +0 -35
- package/dist/chunk-JWLDCEBZ.cjs +0 -70
- package/dist/chunk-JZAYHDV3.js +0 -8
- package/dist/chunk-KSMN3HSC.js +0 -38
- package/dist/chunk-L6UNTUC4.js +0 -0
- package/dist/chunk-LOY6ICHZ.cjs +0 -36
- package/dist/chunk-MBG2FTBL.cjs +0 -47
- package/dist/chunk-MQG74XF7.js +0 -102
- package/dist/chunk-MSAQEGBK.cjs +0 -92
- package/dist/chunk-NJFLUTGH.cjs +0 -25
- package/dist/chunk-PCYB64MB.cjs +0 -40
- package/dist/chunk-RALMUN5C.js +0 -30
- package/dist/chunk-RRKB32OH.js +0 -0
- package/dist/chunk-RUKM6FCF.js +0 -25
- package/dist/chunk-SIW7AXUG.js +0 -56
- package/dist/chunk-SLICWTO2.cjs +0 -165
- package/dist/chunk-SO3FWVXC.js +0 -84
- package/dist/chunk-SXPH7ILL.js +0 -70
- package/dist/chunk-T7YISGRS.cjs +0 -102
- package/dist/chunk-TZZRLM5J.cjs +0 -947
- package/dist/chunk-UJ77IBHD.cjs +0 -233
- package/dist/chunk-UKGRDKIH.js +0 -0
- package/dist/chunk-V3GMJ4TX.js +0 -233
- package/dist/chunk-WQJYIPSL.cjs +0 -8
- package/dist/chunk-YBVOKYAM.cjs +0 -56
- package/dist/chunk-YX4736HU.js +0 -47
- package/dist/chunk-ZFNAUMQS.js +0 -24
- package/dist/config-file/get-config-file.js +0 -28
- package/dist/config-file/index.d.ts +0 -3
- package/dist/config-file/index.js +0 -29
- package/dist/create-storm-config.js +0 -35
- package/dist/env/get-env.js +0 -11
- package/dist/env/index.d.ts +0 -4
- package/dist/env/index.js +0 -18
- package/dist/env/set-env.js +0 -11
- package/dist/get-config.js +0 -34
- package/dist/index.d.ts +0 -28
- package/dist/index.js +0 -201
- package/dist/logger/chalk.d.ts +0 -34
- package/dist/logger/chalk.js +0 -6
- package/dist/logger/console-icons.d.ts +0 -8
- package/dist/logger/console-icons.js +0 -8
- package/dist/logger/console.js +0 -37
- package/dist/logger/create-logger.js +0 -14
- package/dist/logger/format-timestamp.js +0 -6
- package/dist/logger/get-log-level.js +0 -11
- package/dist/logger/index.d.ts +0 -10
- package/dist/logger/index.js +0 -61
- package/dist/logger/is-unicode-supported.d.ts +0 -3
- package/dist/logger/is-unicode-supported.js +0 -6
- package/dist/types.d.ts +0 -53
- package/dist/types.js +0 -8
- package/dist/utilities/apply-workspace-tokens.js +0 -13
- package/dist/utilities/colors.js +0 -12
- package/dist/utilities/correct-paths.js +0 -32
- package/dist/utilities/file-path-utils.js +0 -11
- package/dist/utilities/find-up.js +0 -6
- package/dist/utilities/find-workspace-root.js +0 -10
- package/dist/utilities/get-default-config.js +0 -11
- package/dist/utilities/index.d.ts +0 -14
- package/dist/utilities/index.js +0 -109
- package/dist/utilities/process-handler.d.ts +0 -7
- package/dist/utilities/process-handler.js +0 -18
- package/dist/utilities/run.js +0 -10
- package/dist/utilities/toml.d.ts +0 -189
- package/dist/utilities/toml.js +0 -24
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
basename,
|
|
3
|
-
correctPaths,
|
|
4
|
-
dirname,
|
|
5
|
-
extname,
|
|
6
|
-
format,
|
|
7
|
-
isAbsolute,
|
|
8
|
-
joinPaths,
|
|
9
|
-
normalizeString,
|
|
10
|
-
normalizeWindowsPath,
|
|
11
|
-
parse,
|
|
12
|
-
relative,
|
|
13
|
-
resolve,
|
|
14
|
-
sep,
|
|
15
|
-
toNamespacedPath
|
|
16
|
-
} from "../chunk-V3GMJ4TX.js";
|
|
17
|
-
export {
|
|
18
|
-
basename,
|
|
19
|
-
correctPaths,
|
|
20
|
-
dirname,
|
|
21
|
-
extname,
|
|
22
|
-
format,
|
|
23
|
-
isAbsolute,
|
|
24
|
-
joinPaths,
|
|
25
|
-
normalizeString,
|
|
26
|
-
normalizeWindowsPath,
|
|
27
|
-
parse,
|
|
28
|
-
relative,
|
|
29
|
-
resolve,
|
|
30
|
-
sep,
|
|
31
|
-
toNamespacedPath
|
|
32
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { applyWorkspaceBaseTokens, applyWorkspaceProjectTokens, applyWorkspaceTokens } from './apply-workspace-tokens.js';
|
|
2
|
-
export { DEFAULT_COLOR_CONFIG, getColor, getColors, getGradient } from './colors.js';
|
|
3
|
-
export { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from './correct-paths.js';
|
|
4
|
-
export { FindFileNameOptions, findFileName, findFilePath, removeExtension } from './file-path-utils.js';
|
|
5
|
-
export { findWorkspaceRoot, findWorkspaceRootSafe } from './find-workspace-root.js';
|
|
6
|
-
export { applyDefaultConfig, getPackageJsonConfig } from './get-default-config.js';
|
|
7
|
-
export { exitWithError, exitWithSuccess, handleProcess } from './process-handler.js';
|
|
8
|
-
export { IOType, LARGE_BUFFER, StdioOptions, run, runAsync } from './run.js';
|
|
9
|
-
export { CargoMetadata, CargoToml, Dep, DepKind, Dependency, Docs, Docs2, Features, Metadata, Metadata2, Node, Package, Resolve, Rs, Rs2, Target, Tree, modifyCargoNestedTable, modifyCargoTable, parseCargoToml, parseCargoTomlWithTree, stringifyCargoToml } from './toml.js';
|
|
10
|
-
import '../types.js';
|
|
11
|
-
import '@storm-software/config';
|
|
12
|
-
import '@storm-software/config/types';
|
|
13
|
-
import 'node:path';
|
|
14
|
-
import 'node:child_process';
|
package/dist/utilities/index.js
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import "../chunk-UKGRDKIH.js";
|
|
2
|
-
import {
|
|
3
|
-
exitWithError,
|
|
4
|
-
exitWithSuccess,
|
|
5
|
-
handleProcess
|
|
6
|
-
} from "../chunk-SIW7AXUG.js";
|
|
7
|
-
import {
|
|
8
|
-
LARGE_BUFFER,
|
|
9
|
-
run,
|
|
10
|
-
runAsync
|
|
11
|
-
} from "../chunk-EENQN6N2.js";
|
|
12
|
-
import {
|
|
13
|
-
modifyCargoNestedTable,
|
|
14
|
-
modifyCargoTable,
|
|
15
|
-
parseCargoToml,
|
|
16
|
-
parseCargoTomlWithTree,
|
|
17
|
-
stringifyCargoToml
|
|
18
|
-
} from "../chunk-YX4736HU.js";
|
|
19
|
-
import {
|
|
20
|
-
applyWorkspaceBaseTokens,
|
|
21
|
-
applyWorkspaceProjectTokens,
|
|
22
|
-
applyWorkspaceTokens
|
|
23
|
-
} from "../chunk-HFS7WJVW.js";
|
|
24
|
-
import {
|
|
25
|
-
findFileName,
|
|
26
|
-
findFilePath,
|
|
27
|
-
removeExtension
|
|
28
|
-
} from "../chunk-KSMN3HSC.js";
|
|
29
|
-
import {
|
|
30
|
-
applyDefaultConfig,
|
|
31
|
-
getPackageJsonConfig
|
|
32
|
-
} from "../chunk-MQG74XF7.js";
|
|
33
|
-
import {
|
|
34
|
-
findWorkspaceRoot,
|
|
35
|
-
findWorkspaceRootSafe
|
|
36
|
-
} from "../chunk-SO3FWVXC.js";
|
|
37
|
-
import "../chunk-RUKM6FCF.js";
|
|
38
|
-
import "../chunk-RRKB32OH.js";
|
|
39
|
-
import "../chunk-JK4TT5IV.js";
|
|
40
|
-
import "../chunk-D3FRXXDE.js";
|
|
41
|
-
import {
|
|
42
|
-
DEFAULT_COLOR_CONFIG,
|
|
43
|
-
getColor,
|
|
44
|
-
getColors,
|
|
45
|
-
getGradient
|
|
46
|
-
} from "../chunk-5J2SS4QU.js";
|
|
47
|
-
import "../chunk-HVVJHTFS.js";
|
|
48
|
-
import "../chunk-ZFNAUMQS.js";
|
|
49
|
-
import "../chunk-G2MK47WL.js";
|
|
50
|
-
import "../chunk-JZAYHDV3.js";
|
|
51
|
-
import {
|
|
52
|
-
basename,
|
|
53
|
-
correctPaths,
|
|
54
|
-
dirname,
|
|
55
|
-
extname,
|
|
56
|
-
format,
|
|
57
|
-
isAbsolute,
|
|
58
|
-
joinPaths,
|
|
59
|
-
normalizeString,
|
|
60
|
-
normalizeWindowsPath,
|
|
61
|
-
parse,
|
|
62
|
-
relative,
|
|
63
|
-
resolve,
|
|
64
|
-
sep,
|
|
65
|
-
toNamespacedPath
|
|
66
|
-
} from "../chunk-V3GMJ4TX.js";
|
|
67
|
-
import "../chunk-SXPH7ILL.js";
|
|
68
|
-
import "../chunk-RALMUN5C.js";
|
|
69
|
-
export {
|
|
70
|
-
DEFAULT_COLOR_CONFIG,
|
|
71
|
-
LARGE_BUFFER,
|
|
72
|
-
applyDefaultConfig,
|
|
73
|
-
applyWorkspaceBaseTokens,
|
|
74
|
-
applyWorkspaceProjectTokens,
|
|
75
|
-
applyWorkspaceTokens,
|
|
76
|
-
basename,
|
|
77
|
-
correctPaths,
|
|
78
|
-
dirname,
|
|
79
|
-
exitWithError,
|
|
80
|
-
exitWithSuccess,
|
|
81
|
-
extname,
|
|
82
|
-
findFileName,
|
|
83
|
-
findFilePath,
|
|
84
|
-
findWorkspaceRoot,
|
|
85
|
-
findWorkspaceRootSafe,
|
|
86
|
-
format,
|
|
87
|
-
getColor,
|
|
88
|
-
getColors,
|
|
89
|
-
getGradient,
|
|
90
|
-
getPackageJsonConfig,
|
|
91
|
-
handleProcess,
|
|
92
|
-
isAbsolute,
|
|
93
|
-
joinPaths,
|
|
94
|
-
modifyCargoNestedTable,
|
|
95
|
-
modifyCargoTable,
|
|
96
|
-
normalizeString,
|
|
97
|
-
normalizeWindowsPath,
|
|
98
|
-
parse,
|
|
99
|
-
parseCargoToml,
|
|
100
|
-
parseCargoTomlWithTree,
|
|
101
|
-
relative,
|
|
102
|
-
removeExtension,
|
|
103
|
-
resolve,
|
|
104
|
-
run,
|
|
105
|
-
runAsync,
|
|
106
|
-
sep,
|
|
107
|
-
stringifyCargoToml,
|
|
108
|
-
toNamespacedPath
|
|
109
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { StormWorkspaceConfig } from '@storm-software/config';
|
|
2
|
-
|
|
3
|
-
declare const exitWithError: (config?: Partial<StormWorkspaceConfig>) => never;
|
|
4
|
-
declare const exitWithSuccess: (config?: Partial<StormWorkspaceConfig>) => never;
|
|
5
|
-
declare const handleProcess: (config?: Partial<StormWorkspaceConfig>) => void;
|
|
6
|
-
|
|
7
|
-
export { exitWithError, exitWithSuccess, handleProcess };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exitWithError,
|
|
3
|
-
exitWithSuccess,
|
|
4
|
-
handleProcess
|
|
5
|
-
} from "../chunk-SIW7AXUG.js";
|
|
6
|
-
import "../chunk-D3FRXXDE.js";
|
|
7
|
-
import "../chunk-5J2SS4QU.js";
|
|
8
|
-
import "../chunk-HVVJHTFS.js";
|
|
9
|
-
import "../chunk-ZFNAUMQS.js";
|
|
10
|
-
import "../chunk-G2MK47WL.js";
|
|
11
|
-
import "../chunk-JZAYHDV3.js";
|
|
12
|
-
import "../chunk-SXPH7ILL.js";
|
|
13
|
-
import "../chunk-RALMUN5C.js";
|
|
14
|
-
export {
|
|
15
|
-
exitWithError,
|
|
16
|
-
exitWithSuccess,
|
|
17
|
-
handleProcess
|
|
18
|
-
};
|
package/dist/utilities/run.js
DELETED
package/dist/utilities/toml.d.ts
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
interface CargoToml {
|
|
2
|
-
workspace?: {
|
|
3
|
-
members: string[];
|
|
4
|
-
};
|
|
5
|
-
package: any;
|
|
6
|
-
dependencies?: Record<string, string | {
|
|
7
|
-
version: string;
|
|
8
|
-
features?: string[];
|
|
9
|
-
optional?: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
"dev-dependencies"?: Record<string, string | {
|
|
12
|
-
version: string;
|
|
13
|
-
features: string[];
|
|
14
|
-
}>;
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}
|
|
17
|
-
interface CargoMetadata {
|
|
18
|
-
packages: Package[];
|
|
19
|
-
workspace_members: string[];
|
|
20
|
-
resolve: Resolve;
|
|
21
|
-
target_directory: string;
|
|
22
|
-
version: number;
|
|
23
|
-
workspace_root: string;
|
|
24
|
-
metadata: Metadata2;
|
|
25
|
-
}
|
|
26
|
-
interface Package {
|
|
27
|
-
name: string;
|
|
28
|
-
version: string;
|
|
29
|
-
id: string;
|
|
30
|
-
license: string;
|
|
31
|
-
license_file: string;
|
|
32
|
-
description: string;
|
|
33
|
-
source: any;
|
|
34
|
-
dependencies: Dependency[];
|
|
35
|
-
targets: Target[];
|
|
36
|
-
features: Features;
|
|
37
|
-
manifest_path: string;
|
|
38
|
-
metadata: Metadata;
|
|
39
|
-
/**
|
|
40
|
-
* From the docs:
|
|
41
|
-
* "List of registries to which this package may be published.
|
|
42
|
-
* Publishing is unrestricted if null, and forbidden if an empty array."
|
|
43
|
-
*
|
|
44
|
-
* Additional observation:
|
|
45
|
-
* false can be used by the end user but it will be converted to an empty
|
|
46
|
-
* array in the cargo metadata output.
|
|
47
|
-
*/
|
|
48
|
-
publish?: string[] | boolean | null;
|
|
49
|
-
authors: string[];
|
|
50
|
-
categories: string[];
|
|
51
|
-
default_run: any;
|
|
52
|
-
rust_version: string;
|
|
53
|
-
keywords: string[];
|
|
54
|
-
readme: string;
|
|
55
|
-
repository: string;
|
|
56
|
-
homepage: string;
|
|
57
|
-
documentation: string;
|
|
58
|
-
edition: string;
|
|
59
|
-
links: any;
|
|
60
|
-
}
|
|
61
|
-
interface Dependency {
|
|
62
|
-
name: string;
|
|
63
|
-
source: string;
|
|
64
|
-
req: string;
|
|
65
|
-
kind: any;
|
|
66
|
-
rename: any;
|
|
67
|
-
optional: boolean;
|
|
68
|
-
uses_default_features: boolean;
|
|
69
|
-
features: any[];
|
|
70
|
-
target: string;
|
|
71
|
-
path: string;
|
|
72
|
-
registry: any;
|
|
73
|
-
workspace: boolean;
|
|
74
|
-
}
|
|
75
|
-
interface Target {
|
|
76
|
-
kind: string[];
|
|
77
|
-
crate_types: string[];
|
|
78
|
-
name: string;
|
|
79
|
-
src_path: string;
|
|
80
|
-
edition: string;
|
|
81
|
-
"required-features": string[];
|
|
82
|
-
doc: boolean;
|
|
83
|
-
doctest: boolean;
|
|
84
|
-
test: boolean;
|
|
85
|
-
}
|
|
86
|
-
interface Features {
|
|
87
|
-
default: string[];
|
|
88
|
-
feat1: any[];
|
|
89
|
-
feat2: any[];
|
|
90
|
-
}
|
|
91
|
-
interface Metadata {
|
|
92
|
-
docs: Docs;
|
|
93
|
-
}
|
|
94
|
-
interface Docs {
|
|
95
|
-
rs: Rs;
|
|
96
|
-
}
|
|
97
|
-
interface Rs {
|
|
98
|
-
"all-features": boolean;
|
|
99
|
-
}
|
|
100
|
-
interface Resolve {
|
|
101
|
-
nodes: Node[];
|
|
102
|
-
root: string;
|
|
103
|
-
}
|
|
104
|
-
interface Node {
|
|
105
|
-
id: string;
|
|
106
|
-
dependencies: string[];
|
|
107
|
-
deps: Dep[];
|
|
108
|
-
features: string[];
|
|
109
|
-
}
|
|
110
|
-
interface Dep {
|
|
111
|
-
name: string;
|
|
112
|
-
pkg: string;
|
|
113
|
-
dep_kinds: DepKind[];
|
|
114
|
-
}
|
|
115
|
-
interface DepKind {
|
|
116
|
-
kind: any;
|
|
117
|
-
target: string;
|
|
118
|
-
}
|
|
119
|
-
interface Metadata2 {
|
|
120
|
-
docs: Docs2;
|
|
121
|
-
}
|
|
122
|
-
interface Docs2 {
|
|
123
|
-
rs: Rs2;
|
|
124
|
-
}
|
|
125
|
-
interface Rs2 {
|
|
126
|
-
"all-features": boolean;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Virtual file system tree.
|
|
130
|
-
*/
|
|
131
|
-
interface Tree {
|
|
132
|
-
/**
|
|
133
|
-
* Root of the workspace. All paths are relative to this.
|
|
134
|
-
*/
|
|
135
|
-
root: string;
|
|
136
|
-
/**
|
|
137
|
-
* Read the contents of a file.
|
|
138
|
-
* @param filePath A path to a file.
|
|
139
|
-
*/
|
|
140
|
-
read(filePath: string): Buffer | null;
|
|
141
|
-
/**
|
|
142
|
-
* Read the contents of a file as string.
|
|
143
|
-
* @param filePath A path to a file.
|
|
144
|
-
* @param encoding the encoding for the result
|
|
145
|
-
*/
|
|
146
|
-
read(filePath: string, encoding: BufferEncoding): string | null;
|
|
147
|
-
/**
|
|
148
|
-
* Update the contents of a file or create a new file.
|
|
149
|
-
*/
|
|
150
|
-
write(filePath: string, content: Buffer | string, options?: any): void;
|
|
151
|
-
/**
|
|
152
|
-
* Check if a file exists.
|
|
153
|
-
*/
|
|
154
|
-
exists(filePath: string): boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Delete the file.
|
|
157
|
-
*/
|
|
158
|
-
delete(filePath: string): void;
|
|
159
|
-
/**
|
|
160
|
-
* Rename the file or the folder.
|
|
161
|
-
*/
|
|
162
|
-
rename(from: string, to: string): void;
|
|
163
|
-
/**
|
|
164
|
-
* Check if this is a file or not.
|
|
165
|
-
*/
|
|
166
|
-
isFile(filePath: string): boolean;
|
|
167
|
-
/**
|
|
168
|
-
* Returns the list of children of a folder.
|
|
169
|
-
*/
|
|
170
|
-
children(dirPath: string): string[];
|
|
171
|
-
/**
|
|
172
|
-
* Returns the list of currently recorded changes.
|
|
173
|
-
*/
|
|
174
|
-
listChanges(): any[];
|
|
175
|
-
/**
|
|
176
|
-
* Changes permissions of a file.
|
|
177
|
-
* @param filePath A path to a file.
|
|
178
|
-
* @param mode The permission to be granted on the file, given as a string (e.g `755`) or octal integer (e.g `0o755`).
|
|
179
|
-
* See https://nodejs.org/api/fs.html#fs_file_modes.
|
|
180
|
-
*/
|
|
181
|
-
changePermissions(filePath: string, mode: string): void;
|
|
182
|
-
}
|
|
183
|
-
declare function parseCargoTomlWithTree(tree: Tree, projectRoot: string, projectName: string): CargoToml;
|
|
184
|
-
declare function parseCargoToml(cargoString?: string): CargoToml;
|
|
185
|
-
declare function stringifyCargoToml(cargoToml: CargoToml): string;
|
|
186
|
-
declare function modifyCargoTable(toml: CargoToml, section: string, key: string, value: string | object | any[] | (() => any)): void;
|
|
187
|
-
declare function modifyCargoNestedTable(toml: CargoToml, section: string, key: string, value: object): void;
|
|
188
|
-
|
|
189
|
-
export { type CargoMetadata, type CargoToml, type Dep, type DepKind, type Dependency, type Docs, type Docs2, type Features, type Metadata, type Metadata2, type Node, type Package, type Resolve, type Rs, type Rs2, type Target, type Tree, modifyCargoNestedTable, modifyCargoTable, parseCargoToml, parseCargoTomlWithTree, stringifyCargoToml };
|
package/dist/utilities/toml.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
modifyCargoNestedTable,
|
|
3
|
-
modifyCargoTable,
|
|
4
|
-
parseCargoToml,
|
|
5
|
-
parseCargoTomlWithTree,
|
|
6
|
-
stringifyCargoToml
|
|
7
|
-
} from "../chunk-YX4736HU.js";
|
|
8
|
-
import "../chunk-RRKB32OH.js";
|
|
9
|
-
import "../chunk-JK4TT5IV.js";
|
|
10
|
-
import "../chunk-D3FRXXDE.js";
|
|
11
|
-
import "../chunk-5J2SS4QU.js";
|
|
12
|
-
import "../chunk-HVVJHTFS.js";
|
|
13
|
-
import "../chunk-ZFNAUMQS.js";
|
|
14
|
-
import "../chunk-G2MK47WL.js";
|
|
15
|
-
import "../chunk-JZAYHDV3.js";
|
|
16
|
-
import "../chunk-SXPH7ILL.js";
|
|
17
|
-
import "../chunk-RALMUN5C.js";
|
|
18
|
-
export {
|
|
19
|
-
modifyCargoNestedTable,
|
|
20
|
-
modifyCargoTable,
|
|
21
|
-
parseCargoToml,
|
|
22
|
-
parseCargoTomlWithTree,
|
|
23
|
-
stringifyCargoToml
|
|
24
|
-
};
|