@powerlines/core 0.46.3 → 0.46.5
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/constants/index.cjs +5 -0
- package/dist/constants/index.d.cts +2 -2
- package/dist/constants/index.d.mts +2 -2
- package/dist/constants/index.mjs +2 -2
- package/dist/constants/log-level.cjs +50 -4
- package/dist/constants/log-level.d.cts +27 -4
- package/dist/constants/log-level.d.cts.map +1 -1
- package/dist/constants/log-level.d.mts +27 -4
- package/dist/constants/log-level.d.mts.map +1 -1
- package/dist/constants/log-level.mjs +45 -4
- package/dist/constants/log-level.mjs.map +1 -1
- package/dist/index.cjs +0 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -3
- package/dist/plugin-utils/context-helpers.cjs +22 -12
- package/dist/plugin-utils/context-helpers.d.cts +9 -1
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/context-helpers.d.mts +9 -1
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs +22 -13
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +1 -0
- package/dist/plugin-utils/index.d.cts +2 -2
- package/dist/plugin-utils/index.d.mts +2 -2
- package/dist/plugin-utils/index.mjs +2 -2
- package/dist/plugin-utils/logging.cjs +21 -19
- package/dist/plugin-utils/logging.d.cts.map +1 -1
- package/dist/plugin-utils/logging.d.mts.map +1 -1
- package/dist/plugin-utils/logging.mjs +5 -3
- package/dist/plugin-utils/logging.mjs.map +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/logging.d.cts +2 -23
- package/dist/types/logging.d.cts.map +1 -1
- package/dist/types/logging.d.mts +2 -23
- package/dist/types/logging.d.mts.map +1 -1
- package/package.json +2 -2
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.mjs +0 -3
- package/dist/types/logging.cjs +0 -48
- package/dist/types/logging.mjs +0 -45
- package/dist/types/logging.mjs.map +0 -1
package/dist/constants/index.cjs
CHANGED
|
@@ -20,6 +20,11 @@ exports.DEFAULT_TEST_LOG_LEVEL = require_constants_log_level.DEFAULT_TEST_LOG_LE
|
|
|
20
20
|
exports.GLOBAL_ENVIRONMENT = require_constants_environments.GLOBAL_ENVIRONMENT;
|
|
21
21
|
exports.HOOKS_LIST_ORDERS = require_constants_hooks.HOOKS_LIST_ORDERS;
|
|
22
22
|
exports.KNOWN_PLUGIN_FIELDS = require_constants_plugin.KNOWN_PLUGIN_FIELDS;
|
|
23
|
+
exports.LOG_CATEGORIES = require_constants_log_level.LOG_CATEGORIES;
|
|
24
|
+
exports.LOG_CATEGORIES_ARRAY = require_constants_log_level.LOG_CATEGORIES_ARRAY;
|
|
25
|
+
exports.LOG_LEVELS = require_constants_log_level.LOG_LEVELS;
|
|
26
|
+
exports.LogCategories = require_constants_log_level.LogCategories;
|
|
27
|
+
exports.LogLevels = require_constants_log_level.LogLevels;
|
|
23
28
|
exports.PLUGIN_HOOKS_FIELDS = require_constants_plugin.PLUGIN_HOOKS_FIELDS;
|
|
24
29
|
exports.PLUGIN_NON_HOOK_FIELDS = require_constants_plugin.PLUGIN_NON_HOOK_FIELDS;
|
|
25
30
|
exports.POWERLINES_API_FUNCTIONS = require_constants_api.POWERLINES_API_FUNCTIONS;
|
|
@@ -3,8 +3,8 @@ import { SUPPORTED_COMMANDS } from "./commands.cjs";
|
|
|
3
3
|
import { CLIENT_ENVIRONMENT, DEFAULT_ENVIRONMENT, GLOBAL_ENVIRONMENT, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT } from "./environments.cjs";
|
|
4
4
|
import { STORAGE_PRESETS, __VFS_PATCH__, __VFS_REVERT__ } from "./fs.cjs";
|
|
5
5
|
import { HOOKS_LIST_ORDERS } from "./hooks.cjs";
|
|
6
|
-
import { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL } from "./log-level.cjs";
|
|
6
|
+
import { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, LOG_CATEGORIES, LOG_CATEGORIES_ARRAY, LOG_LEVELS, LogCategories, LogLevels } from "./log-level.cjs";
|
|
7
7
|
import { CACHE_HASH_LENGTH, ROOT_HASH_LENGTH } from "./meta.cjs";
|
|
8
8
|
import { BUILDER_VARIANTS, KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS, UNPLUGIN_BUILDER_VARIANTS } from "./plugin.cjs";
|
|
9
9
|
import { VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX } from "./virtual-modules.cjs";
|
|
10
|
-
export { BASE_API_FUNCTIONS, BUILDER_VARIANTS, CACHE_HASH_LENGTH, CLIENT_ENVIRONMENT, DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_ENVIRONMENT, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, GLOBAL_ENVIRONMENT, HOOKS_LIST_ORDERS, KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS, POWERLINES_API_FUNCTIONS, ROOT_HASH_LENGTH, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT, STORAGE_PRESETS, SUPPORTED_COMMANDS, UNPLUGIN_BUILDER_VARIANTS, VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX, __VFS_PATCH__, __VFS_REVERT__ };
|
|
10
|
+
export { BASE_API_FUNCTIONS, BUILDER_VARIANTS, CACHE_HASH_LENGTH, CLIENT_ENVIRONMENT, DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_ENVIRONMENT, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, GLOBAL_ENVIRONMENT, HOOKS_LIST_ORDERS, KNOWN_PLUGIN_FIELDS, LOG_CATEGORIES, LOG_CATEGORIES_ARRAY, LOG_LEVELS, LogCategories, LogLevels, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS, POWERLINES_API_FUNCTIONS, ROOT_HASH_LENGTH, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT, STORAGE_PRESETS, SUPPORTED_COMMANDS, UNPLUGIN_BUILDER_VARIANTS, VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX, __VFS_PATCH__, __VFS_REVERT__ };
|
|
@@ -3,8 +3,8 @@ import { SUPPORTED_COMMANDS } from "./commands.mjs";
|
|
|
3
3
|
import { CLIENT_ENVIRONMENT, DEFAULT_ENVIRONMENT, GLOBAL_ENVIRONMENT, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT } from "./environments.mjs";
|
|
4
4
|
import { STORAGE_PRESETS, __VFS_PATCH__, __VFS_REVERT__ } from "./fs.mjs";
|
|
5
5
|
import { HOOKS_LIST_ORDERS } from "./hooks.mjs";
|
|
6
|
-
import { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL } from "./log-level.mjs";
|
|
6
|
+
import { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, LOG_CATEGORIES, LOG_CATEGORIES_ARRAY, LOG_LEVELS, LogCategories, LogLevels } from "./log-level.mjs";
|
|
7
7
|
import { CACHE_HASH_LENGTH, ROOT_HASH_LENGTH } from "./meta.mjs";
|
|
8
8
|
import { BUILDER_VARIANTS, KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS, UNPLUGIN_BUILDER_VARIANTS } from "./plugin.mjs";
|
|
9
9
|
import { VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX } from "./virtual-modules.mjs";
|
|
10
|
-
export { BASE_API_FUNCTIONS, BUILDER_VARIANTS, CACHE_HASH_LENGTH, CLIENT_ENVIRONMENT, DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_ENVIRONMENT, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, GLOBAL_ENVIRONMENT, HOOKS_LIST_ORDERS, KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS, POWERLINES_API_FUNCTIONS, ROOT_HASH_LENGTH, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT, STORAGE_PRESETS, SUPPORTED_COMMANDS, UNPLUGIN_BUILDER_VARIANTS, VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX, __VFS_PATCH__, __VFS_REVERT__ };
|
|
10
|
+
export { BASE_API_FUNCTIONS, BUILDER_VARIANTS, CACHE_HASH_LENGTH, CLIENT_ENVIRONMENT, DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_ENVIRONMENT, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, GLOBAL_ENVIRONMENT, HOOKS_LIST_ORDERS, KNOWN_PLUGIN_FIELDS, LOG_CATEGORIES, LOG_CATEGORIES_ARRAY, LOG_LEVELS, LogCategories, LogLevels, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS, POWERLINES_API_FUNCTIONS, ROOT_HASH_LENGTH, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT, STORAGE_PRESETS, SUPPORTED_COMMANDS, UNPLUGIN_BUILDER_VARIANTS, VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX, __VFS_PATCH__, __VFS_REVERT__ };
|
package/dist/constants/index.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import { BUILDER_VARIANTS, KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_
|
|
|
4
4
|
import { CLIENT_ENVIRONMENT, DEFAULT_ENVIRONMENT, GLOBAL_ENVIRONMENT, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT } from "./environments.mjs";
|
|
5
5
|
import { STORAGE_PRESETS, __VFS_PATCH__, __VFS_REVERT__ } from "./fs.mjs";
|
|
6
6
|
import { HOOKS_LIST_ORDERS } from "./hooks.mjs";
|
|
7
|
-
import { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL } from "./log-level.mjs";
|
|
7
|
+
import { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, LOG_CATEGORIES, LOG_CATEGORIES_ARRAY, LOG_LEVELS, LogCategories, LogLevels } from "./log-level.mjs";
|
|
8
8
|
import { CACHE_HASH_LENGTH, ROOT_HASH_LENGTH } from "./meta.mjs";
|
|
9
9
|
import { VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX } from "./virtual-modules.mjs";
|
|
10
10
|
|
|
11
|
-
export { BASE_API_FUNCTIONS, BUILDER_VARIANTS, CACHE_HASH_LENGTH, CLIENT_ENVIRONMENT, DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_ENVIRONMENT, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, GLOBAL_ENVIRONMENT, HOOKS_LIST_ORDERS, KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS, POWERLINES_API_FUNCTIONS, ROOT_HASH_LENGTH, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT, STORAGE_PRESETS, SUPPORTED_COMMANDS, UNPLUGIN_BUILDER_VARIANTS, VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX, __VFS_PATCH__, __VFS_REVERT__ };
|
|
11
|
+
export { BASE_API_FUNCTIONS, BUILDER_VARIANTS, CACHE_HASH_LENGTH, CLIENT_ENVIRONMENT, DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_ENVIRONMENT, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, GLOBAL_ENVIRONMENT, HOOKS_LIST_ORDERS, KNOWN_PLUGIN_FIELDS, LOG_CATEGORIES, LOG_CATEGORIES_ARRAY, LOG_LEVELS, LogCategories, LogLevels, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS, POWERLINES_API_FUNCTIONS, ROOT_HASH_LENGTH, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT, STORAGE_PRESETS, SUPPORTED_COMMANDS, UNPLUGIN_BUILDER_VARIANTS, VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX, __VFS_PATCH__, __VFS_REVERT__ };
|
|
@@ -1,10 +1,51 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
|
|
3
3
|
//#region src/constants/log-level.ts
|
|
4
|
+
const LogLevels = {
|
|
5
|
+
SILENT: "silent",
|
|
6
|
+
ERROR: "error",
|
|
7
|
+
WARN: "warn",
|
|
8
|
+
INFO: "info",
|
|
9
|
+
DEBUG: "debug",
|
|
10
|
+
TRACE: "trace"
|
|
11
|
+
};
|
|
12
|
+
const LOG_LEVELS = [
|
|
13
|
+
LogLevels.SILENT,
|
|
14
|
+
LogLevels.ERROR,
|
|
15
|
+
LogLevels.WARN,
|
|
16
|
+
LogLevels.INFO,
|
|
17
|
+
LogLevels.DEBUG,
|
|
18
|
+
LogLevels.TRACE
|
|
19
|
+
];
|
|
20
|
+
const LogCategories = {
|
|
21
|
+
GENERAL: "general",
|
|
22
|
+
FS: "fs",
|
|
23
|
+
PERFORMANCE: "performance",
|
|
24
|
+
CONFIG: "config",
|
|
25
|
+
PLUGINS: "plugins",
|
|
26
|
+
HOOKS: "hooks",
|
|
27
|
+
ENV: "env",
|
|
28
|
+
IPC: "ipc",
|
|
29
|
+
BABEL: "babel",
|
|
30
|
+
NETWORK: "network"
|
|
31
|
+
};
|
|
32
|
+
const LOG_CATEGORIES_ARRAY = Object.values(LogCategories);
|
|
33
|
+
const LOG_CATEGORIES = [
|
|
34
|
+
LogCategories.GENERAL,
|
|
35
|
+
LogCategories.FS,
|
|
36
|
+
LogCategories.PERFORMANCE,
|
|
37
|
+
LogCategories.CONFIG,
|
|
38
|
+
LogCategories.PLUGINS,
|
|
39
|
+
LogCategories.HOOKS,
|
|
40
|
+
LogCategories.ENV,
|
|
41
|
+
LogCategories.IPC,
|
|
42
|
+
LogCategories.NETWORK,
|
|
43
|
+
LogCategories.BABEL
|
|
44
|
+
];
|
|
4
45
|
const DEFAULT_DEVELOPMENT_LOG_LEVEL = {
|
|
5
46
|
general: "debug",
|
|
6
47
|
fs: "info",
|
|
7
|
-
config: "
|
|
48
|
+
config: "warn",
|
|
8
49
|
plugins: "debug",
|
|
9
50
|
hooks: "debug",
|
|
10
51
|
performance: "debug",
|
|
@@ -26,9 +67,9 @@ const DEFAULT_TEST_LOG_LEVEL = {
|
|
|
26
67
|
babel: "warn"
|
|
27
68
|
};
|
|
28
69
|
const DEFAULT_PRODUCTION_LOG_LEVEL = {
|
|
29
|
-
general: "
|
|
70
|
+
general: "warn",
|
|
30
71
|
fs: "error",
|
|
31
|
-
config: "
|
|
72
|
+
config: "error",
|
|
32
73
|
plugins: "warn",
|
|
33
74
|
hooks: "warn",
|
|
34
75
|
performance: "info",
|
|
@@ -41,4 +82,9 @@ const DEFAULT_PRODUCTION_LOG_LEVEL = {
|
|
|
41
82
|
//#endregion
|
|
42
83
|
exports.DEFAULT_DEVELOPMENT_LOG_LEVEL = DEFAULT_DEVELOPMENT_LOG_LEVEL;
|
|
43
84
|
exports.DEFAULT_PRODUCTION_LOG_LEVEL = DEFAULT_PRODUCTION_LOG_LEVEL;
|
|
44
|
-
exports.DEFAULT_TEST_LOG_LEVEL = DEFAULT_TEST_LOG_LEVEL;
|
|
85
|
+
exports.DEFAULT_TEST_LOG_LEVEL = DEFAULT_TEST_LOG_LEVEL;
|
|
86
|
+
exports.LOG_CATEGORIES = LOG_CATEGORIES;
|
|
87
|
+
exports.LOG_CATEGORIES_ARRAY = LOG_CATEGORIES_ARRAY;
|
|
88
|
+
exports.LOG_LEVELS = LOG_LEVELS;
|
|
89
|
+
exports.LogCategories = LogCategories;
|
|
90
|
+
exports.LogLevels = LogLevels;
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
//#region src/constants/log-level.d.ts
|
|
2
|
+
declare const LogLevels: {
|
|
3
|
+
readonly SILENT: "silent";
|
|
4
|
+
readonly ERROR: "error";
|
|
5
|
+
readonly WARN: "warn";
|
|
6
|
+
readonly INFO: "info";
|
|
7
|
+
readonly DEBUG: "debug";
|
|
8
|
+
readonly TRACE: "trace";
|
|
9
|
+
};
|
|
10
|
+
declare const LOG_LEVELS: readonly ["silent", "error", "warn", "info", "debug", "trace"];
|
|
11
|
+
declare const LogCategories: {
|
|
12
|
+
readonly GENERAL: "general";
|
|
13
|
+
readonly FS: "fs";
|
|
14
|
+
readonly PERFORMANCE: "performance";
|
|
15
|
+
readonly CONFIG: "config";
|
|
16
|
+
readonly PLUGINS: "plugins";
|
|
17
|
+
readonly HOOKS: "hooks";
|
|
18
|
+
readonly ENV: "env";
|
|
19
|
+
readonly IPC: "ipc";
|
|
20
|
+
readonly BABEL: "babel";
|
|
21
|
+
readonly NETWORK: "network";
|
|
22
|
+
};
|
|
23
|
+
declare const LOG_CATEGORIES_ARRAY: ("plugins" | "config" | "fs" | "general" | "performance" | "hooks" | "env" | "ipc" | "babel" | "network")[];
|
|
24
|
+
declare const LOG_CATEGORIES: readonly ["general", "fs", "performance", "config", "plugins", "hooks", "env", "ipc", "network", "babel"];
|
|
2
25
|
declare const DEFAULT_DEVELOPMENT_LOG_LEVEL: {
|
|
3
26
|
readonly general: "debug";
|
|
4
27
|
readonly fs: "info";
|
|
5
|
-
readonly config: "
|
|
28
|
+
readonly config: "warn";
|
|
6
29
|
readonly plugins: "debug";
|
|
7
30
|
readonly hooks: "debug";
|
|
8
31
|
readonly performance: "debug";
|
|
@@ -24,9 +47,9 @@ declare const DEFAULT_TEST_LOG_LEVEL: {
|
|
|
24
47
|
readonly babel: "warn";
|
|
25
48
|
};
|
|
26
49
|
declare const DEFAULT_PRODUCTION_LOG_LEVEL: {
|
|
27
|
-
readonly general: "
|
|
50
|
+
readonly general: "warn";
|
|
28
51
|
readonly fs: "error";
|
|
29
|
-
readonly config: "
|
|
52
|
+
readonly config: "error";
|
|
30
53
|
readonly plugins: "warn";
|
|
31
54
|
readonly hooks: "warn";
|
|
32
55
|
readonly performance: "info";
|
|
@@ -36,5 +59,5 @@ declare const DEFAULT_PRODUCTION_LOG_LEVEL: {
|
|
|
36
59
|
readonly babel: "warn";
|
|
37
60
|
};
|
|
38
61
|
//#endregion
|
|
39
|
-
export { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL };
|
|
62
|
+
export { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, LOG_CATEGORIES, LOG_CATEGORIES_ARRAY, LOG_LEVELS, LogCategories, LogLevels };
|
|
40
63
|
//# sourceMappingURL=log-level.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-level.d.cts","names":[],"sources":["../../src/constants/log-level.ts"],"mappings":";cAkBa,6BAAA;EAAA;;;;;;;;;;;cAaA,sBAAA;EAAA;;;;;;;;;;;cAaA,4BAAA;EAAA"}
|
|
1
|
+
{"version":3,"file":"log-level.d.cts","names":[],"sources":["../../src/constants/log-level.ts"],"mappings":";cAkBa,SAAA;EAAA;;;;;;;cASA,UAAA;AAAA,cASA,aAAA;EAAA;;;;;;;;;;;cAaA,oBAAA;AAAA,cAEA,cAAA;AAAA,cAaA,6BAAA;EAAA;;;;;;;;;;;cAaA,sBAAA;EAAA;;;;;;;;;;;cAaA,4BAAA;EAAA"}
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
//#region src/constants/log-level.d.ts
|
|
2
|
+
declare const LogLevels: {
|
|
3
|
+
readonly SILENT: "silent";
|
|
4
|
+
readonly ERROR: "error";
|
|
5
|
+
readonly WARN: "warn";
|
|
6
|
+
readonly INFO: "info";
|
|
7
|
+
readonly DEBUG: "debug";
|
|
8
|
+
readonly TRACE: "trace";
|
|
9
|
+
};
|
|
10
|
+
declare const LOG_LEVELS: readonly ["silent", "error", "warn", "info", "debug", "trace"];
|
|
11
|
+
declare const LogCategories: {
|
|
12
|
+
readonly GENERAL: "general";
|
|
13
|
+
readonly FS: "fs";
|
|
14
|
+
readonly PERFORMANCE: "performance";
|
|
15
|
+
readonly CONFIG: "config";
|
|
16
|
+
readonly PLUGINS: "plugins";
|
|
17
|
+
readonly HOOKS: "hooks";
|
|
18
|
+
readonly ENV: "env";
|
|
19
|
+
readonly IPC: "ipc";
|
|
20
|
+
readonly BABEL: "babel";
|
|
21
|
+
readonly NETWORK: "network";
|
|
22
|
+
};
|
|
23
|
+
declare const LOG_CATEGORIES_ARRAY: ("plugins" | "config" | "fs" | "general" | "performance" | "hooks" | "env" | "ipc" | "babel" | "network")[];
|
|
24
|
+
declare const LOG_CATEGORIES: readonly ["general", "fs", "performance", "config", "plugins", "hooks", "env", "ipc", "network", "babel"];
|
|
2
25
|
declare const DEFAULT_DEVELOPMENT_LOG_LEVEL: {
|
|
3
26
|
readonly general: "debug";
|
|
4
27
|
readonly fs: "info";
|
|
5
|
-
readonly config: "
|
|
28
|
+
readonly config: "warn";
|
|
6
29
|
readonly plugins: "debug";
|
|
7
30
|
readonly hooks: "debug";
|
|
8
31
|
readonly performance: "debug";
|
|
@@ -24,9 +47,9 @@ declare const DEFAULT_TEST_LOG_LEVEL: {
|
|
|
24
47
|
readonly babel: "warn";
|
|
25
48
|
};
|
|
26
49
|
declare const DEFAULT_PRODUCTION_LOG_LEVEL: {
|
|
27
|
-
readonly general: "
|
|
50
|
+
readonly general: "warn";
|
|
28
51
|
readonly fs: "error";
|
|
29
|
-
readonly config: "
|
|
52
|
+
readonly config: "error";
|
|
30
53
|
readonly plugins: "warn";
|
|
31
54
|
readonly hooks: "warn";
|
|
32
55
|
readonly performance: "info";
|
|
@@ -36,5 +59,5 @@ declare const DEFAULT_PRODUCTION_LOG_LEVEL: {
|
|
|
36
59
|
readonly babel: "warn";
|
|
37
60
|
};
|
|
38
61
|
//#endregion
|
|
39
|
-
export { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL };
|
|
62
|
+
export { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, LOG_CATEGORIES, LOG_CATEGORIES_ARRAY, LOG_LEVELS, LogCategories, LogLevels };
|
|
40
63
|
//# sourceMappingURL=log-level.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-level.d.mts","names":[],"sources":["../../src/constants/log-level.ts"],"mappings":";cAkBa,6BAAA;EAAA;;;;;;;;;;;cAaA,sBAAA;EAAA;;;;;;;;;;;cAaA,4BAAA;EAAA"}
|
|
1
|
+
{"version":3,"file":"log-level.d.mts","names":[],"sources":["../../src/constants/log-level.ts"],"mappings":";cAkBa,SAAA;EAAA;;;;;;;cASA,UAAA;AAAA,cASA,aAAA;EAAA;;;;;;;;;;;cAaA,oBAAA;AAAA,cAEA,cAAA;AAAA,cAaA,6BAAA;EAAA;;;;;;;;;;;cAaA,sBAAA;EAAA;;;;;;;;;;;cAaA,4BAAA;EAAA"}
|
|
@@ -1,8 +1,49 @@
|
|
|
1
1
|
//#region src/constants/log-level.ts
|
|
2
|
+
const LogLevels = {
|
|
3
|
+
SILENT: "silent",
|
|
4
|
+
ERROR: "error",
|
|
5
|
+
WARN: "warn",
|
|
6
|
+
INFO: "info",
|
|
7
|
+
DEBUG: "debug",
|
|
8
|
+
TRACE: "trace"
|
|
9
|
+
};
|
|
10
|
+
const LOG_LEVELS = [
|
|
11
|
+
LogLevels.SILENT,
|
|
12
|
+
LogLevels.ERROR,
|
|
13
|
+
LogLevels.WARN,
|
|
14
|
+
LogLevels.INFO,
|
|
15
|
+
LogLevels.DEBUG,
|
|
16
|
+
LogLevels.TRACE
|
|
17
|
+
];
|
|
18
|
+
const LogCategories = {
|
|
19
|
+
GENERAL: "general",
|
|
20
|
+
FS: "fs",
|
|
21
|
+
PERFORMANCE: "performance",
|
|
22
|
+
CONFIG: "config",
|
|
23
|
+
PLUGINS: "plugins",
|
|
24
|
+
HOOKS: "hooks",
|
|
25
|
+
ENV: "env",
|
|
26
|
+
IPC: "ipc",
|
|
27
|
+
BABEL: "babel",
|
|
28
|
+
NETWORK: "network"
|
|
29
|
+
};
|
|
30
|
+
const LOG_CATEGORIES_ARRAY = Object.values(LogCategories);
|
|
31
|
+
const LOG_CATEGORIES = [
|
|
32
|
+
LogCategories.GENERAL,
|
|
33
|
+
LogCategories.FS,
|
|
34
|
+
LogCategories.PERFORMANCE,
|
|
35
|
+
LogCategories.CONFIG,
|
|
36
|
+
LogCategories.PLUGINS,
|
|
37
|
+
LogCategories.HOOKS,
|
|
38
|
+
LogCategories.ENV,
|
|
39
|
+
LogCategories.IPC,
|
|
40
|
+
LogCategories.NETWORK,
|
|
41
|
+
LogCategories.BABEL
|
|
42
|
+
];
|
|
2
43
|
const DEFAULT_DEVELOPMENT_LOG_LEVEL = {
|
|
3
44
|
general: "debug",
|
|
4
45
|
fs: "info",
|
|
5
|
-
config: "
|
|
46
|
+
config: "warn",
|
|
6
47
|
plugins: "debug",
|
|
7
48
|
hooks: "debug",
|
|
8
49
|
performance: "debug",
|
|
@@ -24,9 +65,9 @@ const DEFAULT_TEST_LOG_LEVEL = {
|
|
|
24
65
|
babel: "warn"
|
|
25
66
|
};
|
|
26
67
|
const DEFAULT_PRODUCTION_LOG_LEVEL = {
|
|
27
|
-
general: "
|
|
68
|
+
general: "warn",
|
|
28
69
|
fs: "error",
|
|
29
|
-
config: "
|
|
70
|
+
config: "error",
|
|
30
71
|
plugins: "warn",
|
|
31
72
|
hooks: "warn",
|
|
32
73
|
performance: "info",
|
|
@@ -37,5 +78,5 @@ const DEFAULT_PRODUCTION_LOG_LEVEL = {
|
|
|
37
78
|
};
|
|
38
79
|
|
|
39
80
|
//#endregion
|
|
40
|
-
export { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL };
|
|
81
|
+
export { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, LOG_CATEGORIES, LOG_CATEGORIES_ARRAY, LOG_LEVELS, LogCategories, LogLevels };
|
|
41
82
|
//# sourceMappingURL=log-level.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-level.mjs","names":[],"sources":["../../src/constants/log-level.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const DEFAULT_DEVELOPMENT_LOG_LEVEL = {\n general: \"debug\",\n fs: \"info\",\n config: \"
|
|
1
|
+
{"version":3,"file":"log-level.mjs","names":[],"sources":["../../src/constants/log-level.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const LogLevels = {\n SILENT: \"silent\",\n ERROR: \"error\",\n WARN: \"warn\",\n INFO: \"info\",\n DEBUG: \"debug\",\n TRACE: \"trace\"\n} as const;\n\nexport const LOG_LEVELS = [\n LogLevels.SILENT,\n LogLevels.ERROR,\n LogLevels.WARN,\n LogLevels.INFO,\n LogLevels.DEBUG,\n LogLevels.TRACE\n] as const;\n\nexport const LogCategories = {\n GENERAL: \"general\",\n FS: \"fs\",\n PERFORMANCE: \"performance\",\n CONFIG: \"config\",\n PLUGINS: \"plugins\",\n HOOKS: \"hooks\",\n ENV: \"env\",\n IPC: \"ipc\",\n BABEL: \"babel\",\n NETWORK: \"network\"\n} as const;\n\nexport const LOG_CATEGORIES_ARRAY = Object.values(LogCategories);\n\nexport const LOG_CATEGORIES = [\n LogCategories.GENERAL,\n LogCategories.FS,\n LogCategories.PERFORMANCE,\n LogCategories.CONFIG,\n LogCategories.PLUGINS,\n LogCategories.HOOKS,\n LogCategories.ENV,\n LogCategories.IPC,\n LogCategories.NETWORK,\n LogCategories.BABEL\n] as const;\n\nexport const DEFAULT_DEVELOPMENT_LOG_LEVEL = {\n general: \"debug\",\n fs: \"info\",\n config: \"warn\",\n plugins: \"debug\",\n hooks: \"debug\",\n performance: \"debug\",\n env: \"info\",\n ipc: \"info\",\n network: \"debug\",\n babel: \"debug\"\n} as const;\n\nexport const DEFAULT_TEST_LOG_LEVEL = {\n general: \"info\",\n fs: \"warn\",\n config: \"warn\",\n plugins: \"warn\",\n hooks: \"warn\",\n performance: \"info\",\n env: \"warn\",\n ipc: \"warn\",\n network: \"warn\",\n babel: \"warn\"\n} as const;\n\nexport const DEFAULT_PRODUCTION_LOG_LEVEL = {\n general: \"warn\",\n fs: \"error\",\n config: \"error\",\n plugins: \"warn\",\n hooks: \"warn\",\n performance: \"info\",\n env: \"error\",\n ipc: \"error\",\n network: \"error\",\n babel: \"warn\"\n} as const;\n"],"mappings":";AAkBA,MAAa,YAAY;CACvB,QAAQ;CACR,OAAO;CACP,MAAM;CACN,MAAM;CACN,OAAO;CACP,OAAO;CACR;AAED,MAAa,aAAa;CACxB,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACX;AAED,MAAa,gBAAgB;CAC3B,SAAS;CACT,IAAI;CACJ,aAAa;CACb,QAAQ;CACR,SAAS;CACT,OAAO;CACP,KAAK;CACL,KAAK;CACL,OAAO;CACP,SAAS;CACV;AAED,MAAa,uBAAuB,OAAO,OAAO,cAAc;AAEhE,MAAa,iBAAiB;CAC5B,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACf;AAED,MAAa,gCAAgC;CAC3C,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,SAAS;CACT,OAAO;CACR;AAED,MAAa,yBAAyB;CACpC,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,SAAS;CACT,OAAO;CACR;AAED,MAAa,+BAA+B;CAC1C,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,SAAS;CACT,OAAO;CACR"}
|
package/dist/index.cjs
CHANGED
|
@@ -10,13 +10,7 @@ const require_lib_utilities_format = require('./lib/utilities/format.cjs');
|
|
|
10
10
|
const require_lib_utilities_source_map = require('./lib/utilities/source-map.cjs');
|
|
11
11
|
const require_lib_utilities_write_file = require('./lib/utilities/write-file.cjs');
|
|
12
12
|
require('./lib/index.cjs');
|
|
13
|
-
const require_logging = require('./types/logging.cjs');
|
|
14
|
-
require('./types/index.cjs');
|
|
15
13
|
|
|
16
|
-
exports.LOG_CATEGORIES = require_logging.LOG_CATEGORIES;
|
|
17
|
-
exports.LOG_LEVELS = require_logging.LOG_LEVELS;
|
|
18
|
-
exports.LogCategories = require_logging.LogCategories;
|
|
19
|
-
exports.LogLevels = require_logging.LogLevels;
|
|
20
14
|
exports.combineContexts = require_lib_unplugin_helpers.combineContexts;
|
|
21
15
|
exports.createUnplugin = require_lib_unplugin_plugin.createUnplugin;
|
|
22
16
|
exports.createUnpluginModuleResolutionFunctions = require_lib_unplugin_module_resolution.createUnpluginModuleResolutionFunctions;
|
package/dist/index.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFun
|
|
|
5
5
|
import { WorkerProcess, __ΩWorkerProcess } from "./types/utils.cjs";
|
|
6
6
|
import { API, APIFunctions, BaseAPIFunctions, Engine, Execution, ExecutionWorkerParams, ExecutionWorkerProcess, SupportedCommands, __ΩAPI, __ΩAPIFunctions, __ΩBaseAPIFunctions, __ΩEngine, __ΩExecution, __ΩExecutionWorkerParams, __ΩExecutionWorkerProcess, __ΩSupportedCommands } from "./types/api.cjs";
|
|
7
7
|
import { ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions, __ΩResolveOptions, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteData, __ΩWriteOptions } from "./types/fs.cjs";
|
|
8
|
-
import { CustomLogger, CustomLoggerMessage,
|
|
8
|
+
import { CustomLogger, CustomLoggerMessage, LogCategory, LogFn, LogFnMeta, LogFnOptions, LogLevel, LogLevelResolvedConfig, LogLevelUserConfig, LogMessage, LogMeta, Logger, LoggerMessage, LoggerMeta, LoggerOptions, PowerlinesMessage, __ΩCustomLogger, __ΩCustomLoggerMessage, __ΩLogCategory, __ΩLogFn, __ΩLogFnMeta, __ΩLogFnOptions, __ΩLogLevel, __ΩLogLevelResolvedConfig, __ΩLogLevelUserConfig, __ΩLogMessage, __ΩLogMeta, __ΩLogger, __ΩLoggerMessage, __ΩLoggerMeta, __ΩLoggerOptions, __ΩPowerlinesMessage } from "./types/logging.cjs";
|
|
9
9
|
import { DeepkitOptions, Level, ParsedTypeScriptConfig, RawReflectionMode, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩLevel, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from "./types/tsconfig.cjs";
|
|
10
10
|
import { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, ExecutionState, ExecutionStateItem, FetchOptions, HookExecutionStateItem, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩExecutionState, __ΩExecutionStateItem, __ΩFetchOptions, __ΩHookExecutionStateItem, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext } from "./types/context.cjs";
|
|
11
11
|
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, CopyConfig, DeployInlineConfig, DocsInlineConfig, EngineOptions, EnvironmentConfig, EnvironmentResolvedConfig, ExecutionOptions, InferOverridableConfig, InitialPluginConfig, InlineConfig, LintInlineConfig, Mode, NewInlineConfig, Options, OutputConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, PrepareInlineConfig, ProjectType, ResolveConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedCopyConfig, ResolvedEntryTypeDefinition, ResolvedEnvironmentConfig, ResolvedOutputConfig, ResolvedResolveConfig, TestInlineConfig, TypesInlineConfig, UserConfig, UserConfigFn, WorkspaceConfig, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBuildInlineConfig, __ΩCleanInlineConfig, __ΩConfig, __ΩCopyConfig, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEngineOptions, __ΩEnvironmentConfig, __ΩEnvironmentResolvedConfig, __ΩExecutionOptions, __ΩInferOverridableConfig, __ΩInitialPluginConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩMode, __ΩNewInlineConfig, __ΩOptions, __ΩOutputConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginFactory, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩResolveConfig, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedCopyConfig, __ΩResolvedEntryTypeDefinition, __ΩResolvedEnvironmentConfig, __ΩResolvedOutputConfig, __ΩResolvedResolveConfig, __ΩTestInlineConfig, __ΩTypesInlineConfig, __ΩUserConfig, __ΩUserConfigFn, __ΩWorkspaceConfig } from "./types/config.cjs";
|
|
@@ -19,4 +19,4 @@ import { format, formatFolder } from "./lib/utilities/format.cjs";
|
|
|
19
19
|
import { getMagicString, getSourceFile, getString } from "./lib/utilities/source-file.cjs";
|
|
20
20
|
import { generateSourceMap } from "./lib/utilities/source-map.cjs";
|
|
21
21
|
import { writeFile } from "./lib/utilities/write-file.cjs";
|
|
22
|
-
export { API, APIFunctions, AnyOutputUserConfig, AnyUserConfig, BaseAPIFunctions, BaseCommandType, BaseContext, BasePlugin, BuildInlineConfig, BuildPluginContext, BuilderVariant, CallHookOptions, CleanInlineConfig, CommandType, Commands, Config, Context, CopyConfig, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, CustomLogger, CustomLoggerMessage, DeepkitOptions, DeployInlineConfig, DocsInlineConfig, EmitEntryOptions, EmitOptions, Engine, EngineContext, EngineOptions, EnvironmentConfig, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, Execution, ExecutionContext, ExecutionOptions, ExecutionState, ExecutionStateItem, ExecutionWorkerParams, ExecutionWorkerProcess, FetchOptions, FileHeaderOptions, HookExecutionStateItem, HookFunctions, HookListOrders, Hooks, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, InferOverridableConfig, InferUnpluginOptions, InferUnpluginVariant, InitContextOptions, InitialPluginConfig, InlineConfig,
|
|
22
|
+
export { API, APIFunctions, AnyOutputUserConfig, AnyUserConfig, BaseAPIFunctions, BaseCommandType, BaseContext, BasePlugin, BuildInlineConfig, BuildPluginContext, BuilderVariant, CallHookOptions, CleanInlineConfig, CommandType, Commands, Config, Context, CopyConfig, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, CustomLogger, CustomLoggerMessage, DeepkitOptions, DeployInlineConfig, DocsInlineConfig, EmitEntryOptions, EmitOptions, Engine, EngineContext, EngineOptions, EnvironmentConfig, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, Execution, ExecutionContext, ExecutionOptions, ExecutionState, ExecutionStateItem, ExecutionWorkerParams, ExecutionWorkerProcess, FetchOptions, FileHeaderOptions, HookExecutionStateItem, HookFunctions, HookListOrders, Hooks, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, InferOverridableConfig, InferUnpluginOptions, InferUnpluginVariant, InitContextOptions, InitialPluginConfig, InlineConfig, Level, LintInlineConfig, LogCategory, LogFn, LogFnMeta, LogFnOptions, LogLevel, LogLevelResolvedConfig, LogLevelUserConfig, LogMessage, LogMeta, Logger, LoggerMessage, LoggerMeta, LoggerOptions, MetaInfo, Mode, NewInlineConfig, NormalizedStringFilter, Options, OutputConfig, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PartiallyResolvedContext, Plugin, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginContext, PluginFactory, PluginFilter, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, PowerlinesCommand, PowerlinesMessage, PrepareInlineConfig, ProjectType, RawReflectionMode, ReflectionMode, ResolveConfig, ResolveOptions, ResolveResult, ResolvedAssetGlob, ResolvedConfig, ResolvedCopyConfig, ResolvedEntryTypeDefinition, ResolvedEnvironmentConfig, ResolvedOutputConfig, ResolvedResolveConfig, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, StorageAdapter, StoragePort, StoragePreset, SupportedCommands, TSCompilerOptions, TSConfig, TestInlineConfig, TransformHookFilter, TransformResult, TypesInlineConfig, TypesResult, UnimportContext, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginInitialConfig, UnpluginOptions, UnresolvedContext, UserConfig, UserConfigFn, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WithUnpluginBuildContext, WorkerProcess, WorkspaceConfig, WriteData, WriteOptions, __ΩAPI, __ΩAPIFunctions, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBaseAPIFunctions, __ΩBaseCommandType, __ΩBaseContext, __ΩBasePlugin, __ΩBuildInlineConfig, __ΩBuildPluginContext, __ΩBuilderVariant, __ΩCallHookOptions, __ΩCleanInlineConfig, __ΩCommandType, __ΩCommands, __ΩConfig, __ΩContext, __ΩCopyConfig, __ΩCreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, __ΩCustomLogger, __ΩCustomLoggerMessage, __ΩDeepkitOptions, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngine, __ΩEngineContext, __ΩEngineOptions, __ΩEnvironmentConfig, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩEnvironmentResolvedConfig, __ΩExecution, __ΩExecutionContext, __ΩExecutionOptions, __ΩExecutionState, __ΩExecutionStateItem, __ΩExecutionWorkerParams, __ΩExecutionWorkerProcess, __ΩFetchOptions, __ΩFileHeaderOptions, __ΩHookExecutionStateItem, __ΩHookFunctions, __ΩHookListOrders, __ΩHooks, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType, __ΩInferOverridableConfig, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩInitContextOptions, __ΩInitialPluginConfig, __ΩInlineConfig, __ΩLevel, __ΩLintInlineConfig, __ΩLogCategory, __ΩLogFn, __ΩLogFnMeta, __ΩLogFnOptions, __ΩLogLevel, __ΩLogLevelResolvedConfig, __ΩLogLevelUserConfig, __ΩLogMessage, __ΩLogMeta, __ΩLogger, __ΩLoggerMessage, __ΩLoggerMeta, __ΩLoggerOptions, __ΩMetaInfo, __ΩMode, __ΩNewInlineConfig, __ΩNormalizedStringFilter, __ΩOptions, __ΩOutputConfig, __ΩParseOptions, __ΩParsedTypeScriptConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPartiallyResolvedContext, __ΩPlugin, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginContext, __ΩPluginFactory, __ΩPluginFilter, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩPowerlinesCommand, __ΩPowerlinesMessage, __ΩPrepareInlineConfig, __ΩProjectType, __ΩRawReflectionMode, __ΩReflectionMode, __ΩResolveConfig, __ΩResolveOptions, __ΩResolveResult, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedCopyConfig, __ΩResolvedEntryTypeDefinition, __ΩResolvedEnvironmentConfig, __ΩResolvedOutputConfig, __ΩResolvedResolveConfig, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩSupportedCommands, __ΩTSCompilerOptions, __ΩTSConfig, __ΩTestInlineConfig, __ΩTransformHookFilter, __ΩTransformResult, __ΩTypesInlineConfig, __ΩTypesResult, __ΩUnimportContext, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginInitialConfig, __ΩUnpluginOptions, __ΩUnresolvedContext, __ΩUserConfig, __ΩUserConfigFn, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWithUnpluginBuildContext, __ΩWorkerProcess, __ΩWorkspaceConfig, __ΩWriteData, __ΩWriteOptions, combineContexts, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFun
|
|
|
5
5
|
import { WorkerProcess, __ΩWorkerProcess } from "./types/utils.mjs";
|
|
6
6
|
import { API, APIFunctions, BaseAPIFunctions, Engine, Execution, ExecutionWorkerParams, ExecutionWorkerProcess, SupportedCommands, __ΩAPI, __ΩAPIFunctions, __ΩBaseAPIFunctions, __ΩEngine, __ΩExecution, __ΩExecutionWorkerParams, __ΩExecutionWorkerProcess, __ΩSupportedCommands } from "./types/api.mjs";
|
|
7
7
|
import { ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions, __ΩResolveOptions, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteData, __ΩWriteOptions } from "./types/fs.mjs";
|
|
8
|
-
import { CustomLogger, CustomLoggerMessage,
|
|
8
|
+
import { CustomLogger, CustomLoggerMessage, LogCategory, LogFn, LogFnMeta, LogFnOptions, LogLevel, LogLevelResolvedConfig, LogLevelUserConfig, LogMessage, LogMeta, Logger, LoggerMessage, LoggerMeta, LoggerOptions, PowerlinesMessage, __ΩCustomLogger, __ΩCustomLoggerMessage, __ΩLogCategory, __ΩLogFn, __ΩLogFnMeta, __ΩLogFnOptions, __ΩLogLevel, __ΩLogLevelResolvedConfig, __ΩLogLevelUserConfig, __ΩLogMessage, __ΩLogMeta, __ΩLogger, __ΩLoggerMessage, __ΩLoggerMeta, __ΩLoggerOptions, __ΩPowerlinesMessage } from "./types/logging.mjs";
|
|
9
9
|
import { DeepkitOptions, Level, ParsedTypeScriptConfig, RawReflectionMode, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩLevel, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from "./types/tsconfig.mjs";
|
|
10
10
|
import { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EnvironmentContext, EnvironmentContextPlugin, ExecutionContext, ExecutionState, ExecutionStateItem, FetchOptions, HookExecutionStateItem, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext, __ΩBaseContext, __ΩBuildPluginContext, __ΩContext, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngineContext, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩExecutionContext, __ΩExecutionState, __ΩExecutionStateItem, __ΩFetchOptions, __ΩHookExecutionStateItem, __ΩInitContextOptions, __ΩMetaInfo, __ΩParseOptions, __ΩPluginContext, __ΩResolveResult, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩTransformResult, __ΩUnimportContext, __ΩUnresolvedContext, __ΩWithUnpluginBuildContext } from "./types/context.mjs";
|
|
11
11
|
import { AnyOutputUserConfig, AnyUserConfig, BuildInlineConfig, CleanInlineConfig, Config, CopyConfig, DeployInlineConfig, DocsInlineConfig, EngineOptions, EnvironmentConfig, EnvironmentResolvedConfig, ExecutionOptions, InferOverridableConfig, InitialPluginConfig, InlineConfig, LintInlineConfig, Mode, NewInlineConfig, Options, OutputConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, PrepareInlineConfig, ProjectType, ResolveConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedCopyConfig, ResolvedEntryTypeDefinition, ResolvedEnvironmentConfig, ResolvedOutputConfig, ResolvedResolveConfig, TestInlineConfig, TypesInlineConfig, UserConfig, UserConfigFn, WorkspaceConfig, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBuildInlineConfig, __ΩCleanInlineConfig, __ΩConfig, __ΩCopyConfig, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEngineOptions, __ΩEnvironmentConfig, __ΩEnvironmentResolvedConfig, __ΩExecutionOptions, __ΩInferOverridableConfig, __ΩInitialPluginConfig, __ΩInlineConfig, __ΩLintInlineConfig, __ΩMode, __ΩNewInlineConfig, __ΩOptions, __ΩOutputConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginFactory, __ΩPowerlinesCommand, __ΩPrepareInlineConfig, __ΩProjectType, __ΩResolveConfig, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedCopyConfig, __ΩResolvedEntryTypeDefinition, __ΩResolvedEnvironmentConfig, __ΩResolvedOutputConfig, __ΩResolvedResolveConfig, __ΩTestInlineConfig, __ΩTypesInlineConfig, __ΩUserConfig, __ΩUserConfigFn, __ΩWorkspaceConfig } from "./types/config.mjs";
|
|
@@ -19,4 +19,4 @@ import { format, formatFolder } from "./lib/utilities/format.mjs";
|
|
|
19
19
|
import { getMagicString, getSourceFile, getString } from "./lib/utilities/source-file.mjs";
|
|
20
20
|
import { generateSourceMap } from "./lib/utilities/source-map.mjs";
|
|
21
21
|
import { writeFile } from "./lib/utilities/write-file.mjs";
|
|
22
|
-
export { API, APIFunctions, AnyOutputUserConfig, AnyUserConfig, BaseAPIFunctions, BaseCommandType, BaseContext, BasePlugin, BuildInlineConfig, BuildPluginContext, BuilderVariant, CallHookOptions, CleanInlineConfig, CommandType, Commands, Config, Context, CopyConfig, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, CustomLogger, CustomLoggerMessage, DeepkitOptions, DeployInlineConfig, DocsInlineConfig, EmitEntryOptions, EmitOptions, Engine, EngineContext, EngineOptions, EnvironmentConfig, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, Execution, ExecutionContext, ExecutionOptions, ExecutionState, ExecutionStateItem, ExecutionWorkerParams, ExecutionWorkerProcess, FetchOptions, FileHeaderOptions, HookExecutionStateItem, HookFunctions, HookListOrders, Hooks, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, InferOverridableConfig, InferUnpluginOptions, InferUnpluginVariant, InitContextOptions, InitialPluginConfig, InlineConfig,
|
|
22
|
+
export { API, APIFunctions, AnyOutputUserConfig, AnyUserConfig, BaseAPIFunctions, BaseCommandType, BaseContext, BasePlugin, BuildInlineConfig, BuildPluginContext, BuilderVariant, CallHookOptions, CleanInlineConfig, CommandType, Commands, Config, Context, CopyConfig, CreateUnpluginModuleResolutionFunctionsOptions, CreateUnpluginOptions, CreateUnpluginResolverOptions, CustomLogger, CustomLoggerMessage, DeepkitOptions, DeployInlineConfig, DocsInlineConfig, EmitEntryOptions, EmitOptions, Engine, EngineContext, EngineOptions, EnvironmentConfig, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, Execution, ExecutionContext, ExecutionOptions, ExecutionState, ExecutionStateItem, ExecutionWorkerParams, ExecutionWorkerProcess, FetchOptions, FileHeaderOptions, HookExecutionStateItem, HookFunctions, HookListOrders, Hooks, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, InferOverridableConfig, InferUnpluginOptions, InferUnpluginVariant, InitContextOptions, InitialPluginConfig, InlineConfig, Level, LintInlineConfig, LogCategory, LogFn, LogFnMeta, LogFnOptions, LogLevel, LogLevelResolvedConfig, LogLevelUserConfig, LogMessage, LogMeta, Logger, LoggerMessage, LoggerMeta, LoggerOptions, MetaInfo, Mode, NewInlineConfig, NormalizedStringFilter, Options, OutputConfig, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, PartialPlugin, PartialPluginFactory, PartiallyResolvedContext, Plugin, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginContext, PluginFactory, PluginFilter, PluginHook, PluginHookFields, PluginHookObject, PluginHooks, PluginNonHookFields, PowerlinesCommand, PowerlinesMessage, PrepareInlineConfig, ProjectType, RawReflectionMode, ReflectionMode, ResolveConfig, ResolveOptions, ResolveResult, ResolvedAssetGlob, ResolvedConfig, ResolvedCopyConfig, ResolvedEntryTypeDefinition, ResolvedEnvironmentConfig, ResolvedOutputConfig, ResolvedResolveConfig, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, StorageAdapter, StoragePort, StoragePreset, SupportedCommands, TSCompilerOptions, TSConfig, TestInlineConfig, TransformHookFilter, TransformResult, TypesInlineConfig, TypesResult, UnimportContext, UnpluginAsyncFactory, UnpluginBuilderVariant, UnpluginFactory, UnpluginHookFunctions, UnpluginInitialConfig, UnpluginOptions, UnresolvedContext, UserConfig, UserConfigFn, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WithUnpluginBuildContext, WorkerProcess, WorkspaceConfig, WriteData, WriteOptions, __ΩAPI, __ΩAPIFunctions, __ΩAnyOutputUserConfig, __ΩAnyUserConfig, __ΩBaseAPIFunctions, __ΩBaseCommandType, __ΩBaseContext, __ΩBasePlugin, __ΩBuildInlineConfig, __ΩBuildPluginContext, __ΩBuilderVariant, __ΩCallHookOptions, __ΩCleanInlineConfig, __ΩCommandType, __ΩCommands, __ΩConfig, __ΩContext, __ΩCopyConfig, __ΩCreateUnpluginModuleResolutionFunctionsOptions, __ΩCreateUnpluginOptions, __ΩCreateUnpluginResolverOptions, __ΩCustomLogger, __ΩCustomLoggerMessage, __ΩDeepkitOptions, __ΩDeployInlineConfig, __ΩDocsInlineConfig, __ΩEmitEntryOptions, __ΩEmitOptions, __ΩEngine, __ΩEngineContext, __ΩEngineOptions, __ΩEnvironmentConfig, __ΩEnvironmentContext, __ΩEnvironmentContextPlugin, __ΩEnvironmentResolvedConfig, __ΩExecution, __ΩExecutionContext, __ΩExecutionOptions, __ΩExecutionState, __ΩExecutionStateItem, __ΩExecutionWorkerParams, __ΩExecutionWorkerProcess, __ΩFetchOptions, __ΩFileHeaderOptions, __ΩHookExecutionStateItem, __ΩHookFunctions, __ΩHookListOrders, __ΩHooks, __ΩHooksList, __ΩHooksListItem, __ΩInferHookFunction, __ΩInferHookParameters, __ΩInferHookReturnType, __ΩInferHookThisType, __ΩInferOverridableConfig, __ΩInferUnpluginOptions, __ΩInferUnpluginVariant, __ΩInitContextOptions, __ΩInitialPluginConfig, __ΩInlineConfig, __ΩLevel, __ΩLintInlineConfig, __ΩLogCategory, __ΩLogFn, __ΩLogFnMeta, __ΩLogFnOptions, __ΩLogLevel, __ΩLogLevelResolvedConfig, __ΩLogLevelUserConfig, __ΩLogMessage, __ΩLogMeta, __ΩLogger, __ΩLoggerMessage, __ΩLoggerMeta, __ΩLoggerOptions, __ΩMetaInfo, __ΩMode, __ΩNewInlineConfig, __ΩNormalizedStringFilter, __ΩOptions, __ΩOutputConfig, __ΩParseOptions, __ΩParsedTypeScriptConfig, __ΩParsedUserConfig, __ΩPartialPlugin, __ΩPartialPluginFactory, __ΩPartiallyResolvedContext, __ΩPlugin, __ΩPluginConfig, __ΩPluginConfigObject, __ΩPluginConfigTuple, __ΩPluginContext, __ΩPluginFactory, __ΩPluginFilter, __ΩPluginHook, __ΩPluginHookFields, __ΩPluginHookObject, __ΩPluginHooks, __ΩPluginNonHookFields, __ΩPowerlinesCommand, __ΩPowerlinesMessage, __ΩPrepareInlineConfig, __ΩProjectType, __ΩRawReflectionMode, __ΩReflectionMode, __ΩResolveConfig, __ΩResolveOptions, __ΩResolveResult, __ΩResolvedAssetGlob, __ΩResolvedConfig, __ΩResolvedCopyConfig, __ΩResolvedEntryTypeDefinition, __ΩResolvedEnvironmentConfig, __ΩResolvedOutputConfig, __ΩResolvedResolveConfig, __ΩResolver, __ΩSelectHookResult, __ΩSelectHookResultItem, __ΩSelectHooksOptions, __ΩSourceFile, __ΩStorageAdapter, __ΩStoragePort, __ΩStoragePreset, __ΩSupportedCommands, __ΩTSCompilerOptions, __ΩTSConfig, __ΩTestInlineConfig, __ΩTransformHookFilter, __ΩTransformResult, __ΩTypesInlineConfig, __ΩTypesResult, __ΩUnimportContext, __ΩUnpluginAsyncFactory, __ΩUnpluginBuilderVariant, __ΩUnpluginFactory, __ΩUnpluginHookFunctions, __ΩUnpluginInitialConfig, __ΩUnpluginOptions, __ΩUnresolvedContext, __ΩUserConfig, __ΩUserConfigFn, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWithUnpluginBuildContext, __ΩWorkerProcess, __ΩWorkspaceConfig, __ΩWriteData, __ΩWriteOptions, combineContexts, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,5 @@ import { format, formatFolder } from "./lib/utilities/format.mjs";
|
|
|
9
9
|
import { generateSourceMap } from "./lib/utilities/source-map.mjs";
|
|
10
10
|
import { writeFile } from "./lib/utilities/write-file.mjs";
|
|
11
11
|
import "./lib/index.mjs";
|
|
12
|
-
import { LOG_CATEGORIES, LOG_LEVELS, LogCategories, LogLevels } from "./types/logging.mjs";
|
|
13
|
-
import "./types/index.mjs";
|
|
14
12
|
|
|
15
|
-
export {
|
|
13
|
+
export { combineContexts, createUnplugin, createUnpluginModuleResolutionFunctions, createUnpluginResolver, defineConfig, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, isUnpluginBuilderVariant, loadUserConfigFile, loadWorkspaceConfig, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
|
@@ -12,22 +12,31 @@ let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-stri
|
|
|
12
12
|
* @returns The organization name or undefined if not found.
|
|
13
13
|
*/
|
|
14
14
|
function getOrganizationName(context) {
|
|
15
|
+
if ((0, _stryke_type_checks_is_set_string.isSetString)(context.config.organization)) return context.config.organization;
|
|
16
|
+
return getPackageJsonOrganization(context.packageJson);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get the organization name from the `package.json` file
|
|
20
|
+
*
|
|
21
|
+
* @param packageJson - The `package.json` object to extract the organization name from.
|
|
22
|
+
* @returns The organization name or undefined if not found.
|
|
23
|
+
*/
|
|
24
|
+
function getPackageJsonOrganization(packageJson) {
|
|
15
25
|
let result;
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
if ((0,
|
|
19
|
-
if (!result && (0, _stryke_type_checks_is_set_string.isSetString)(context.packageJson.maintainers[0])) result = context.packageJson.maintainers[0];
|
|
26
|
+
if (Array.isArray(packageJson.maintainers) && packageJson.maintainers.length > 0) {
|
|
27
|
+
if ((0, _stryke_type_checks_is_set_object.isSetObject)(packageJson.maintainers[0])) result = packageJson.maintainers[0].name;
|
|
28
|
+
if (!result && (0, _stryke_type_checks_is_set_string.isSetString)(packageJson.maintainers[0])) result = packageJson.maintainers[0];
|
|
20
29
|
}
|
|
21
|
-
if (!result && Array.isArray(
|
|
22
|
-
if ((0, _stryke_type_checks_is_set_object.isSetObject)(
|
|
23
|
-
if (!result && (0, _stryke_type_checks_is_set_string.isSetString)(
|
|
30
|
+
if (!result && Array.isArray(packageJson.author) && packageJson.author.length > 0) {
|
|
31
|
+
if ((0, _stryke_type_checks_is_set_object.isSetObject)(packageJson.author[0])) result = packageJson.author[0].name;
|
|
32
|
+
if (!result && (0, _stryke_type_checks_is_set_string.isSetString)(packageJson.author[0])) result = packageJson.author[0];
|
|
24
33
|
}
|
|
25
|
-
if (!result && Array.isArray(
|
|
26
|
-
if ((0, _stryke_type_checks_is_set_object.isSetObject)(
|
|
27
|
-
if (!result && (0, _stryke_type_checks_is_set_string.isSetString)(
|
|
34
|
+
if (!result && Array.isArray(packageJson.contributors) && packageJson.contributors.length > 0) {
|
|
35
|
+
if ((0, _stryke_type_checks_is_set_object.isSetObject)(packageJson.contributors[0])) result = packageJson.contributors[0].name;
|
|
36
|
+
if (!result && (0, _stryke_type_checks_is_set_string.isSetString)(packageJson.contributors[0])) result = packageJson.contributors[0];
|
|
28
37
|
}
|
|
29
|
-
if (!result && (0, _stryke_type_checks_is_set_string.isSetString)(
|
|
30
|
-
if (!result && (0, _stryke_type_checks_is_set_string.isSetString)(
|
|
38
|
+
if (!result && (0, _stryke_type_checks_is_set_string.isSetString)(packageJson.namespace)) result = packageJson.namespace?.replace(/^@/, "");
|
|
39
|
+
if (!result && (0, _stryke_type_checks_is_set_string.isSetString)(packageJson.name)) result = packageJson.name.replace(/^@/, "").replace(/\/.*$/, "");
|
|
31
40
|
return result;
|
|
32
41
|
}
|
|
33
42
|
/**
|
|
@@ -50,4 +59,5 @@ async function getWorkspaceName(context) {
|
|
|
50
59
|
|
|
51
60
|
//#endregion
|
|
52
61
|
exports.getOrganizationName = getOrganizationName;
|
|
62
|
+
exports.getPackageJsonOrganization = getPackageJsonOrganization;
|
|
53
63
|
exports.getWorkspaceName = getWorkspaceName;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UnresolvedContext } from "../types/context.cjs";
|
|
2
|
+
import { PackageJson } from "@stryke/types/package-json";
|
|
2
3
|
|
|
3
4
|
//#region src/plugin-utils/context-helpers.d.ts
|
|
4
5
|
/**
|
|
@@ -8,6 +9,13 @@ import { UnresolvedContext } from "../types/context.cjs";
|
|
|
8
9
|
* @returns The organization name or undefined if not found.
|
|
9
10
|
*/
|
|
10
11
|
declare function getOrganizationName(context: UnresolvedContext): string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Get the organization name from the `package.json` file
|
|
14
|
+
*
|
|
15
|
+
* @param packageJson - The `package.json` object to extract the organization name from.
|
|
16
|
+
* @returns The organization name or undefined if not found.
|
|
17
|
+
*/
|
|
18
|
+
declare function getPackageJsonOrganization(packageJson: PackageJson): string | undefined;
|
|
11
19
|
/**
|
|
12
20
|
* Get the organization name from the context
|
|
13
21
|
*
|
|
@@ -16,5 +24,5 @@ declare function getOrganizationName(context: UnresolvedContext): string | undef
|
|
|
16
24
|
*/
|
|
17
25
|
declare function getWorkspaceName(context: UnresolvedContext): Promise<string | undefined>;
|
|
18
26
|
//#endregion
|
|
19
|
-
export { getOrganizationName, getWorkspaceName };
|
|
27
|
+
export { getOrganizationName, getPackageJsonOrganization, getWorkspaceName };
|
|
20
28
|
//# sourceMappingURL=context-helpers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-helpers.d.cts","names":[],"sources":["../../src/plugin-utils/context-helpers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context-helpers.d.cts","names":[],"sources":["../../src/plugin-utils/context-helpers.ts"],"mappings":";;;;;;AA8BA;;;;iBAAgB,mBAAA,CACd,OAAA,EAAS,iBAAA;AAeX;;;;;AA8DA;AA9DA,iBAAgB,0BAAA,CACd,WAAA,EAAa,WAAA;;;;;;;iBA6DO,gBAAA,CACpB,OAAA,EAAS,iBAAA,GACR,OAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UnresolvedContext } from "../types/context.mjs";
|
|
2
|
+
import { PackageJson } from "@stryke/types/package-json";
|
|
2
3
|
|
|
3
4
|
//#region src/plugin-utils/context-helpers.d.ts
|
|
4
5
|
/**
|
|
@@ -8,6 +9,13 @@ import { UnresolvedContext } from "../types/context.mjs";
|
|
|
8
9
|
* @returns The organization name or undefined if not found.
|
|
9
10
|
*/
|
|
10
11
|
declare function getOrganizationName(context: UnresolvedContext): string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Get the organization name from the `package.json` file
|
|
14
|
+
*
|
|
15
|
+
* @param packageJson - The `package.json` object to extract the organization name from.
|
|
16
|
+
* @returns The organization name or undefined if not found.
|
|
17
|
+
*/
|
|
18
|
+
declare function getPackageJsonOrganization(packageJson: PackageJson): string | undefined;
|
|
11
19
|
/**
|
|
12
20
|
* Get the organization name from the context
|
|
13
21
|
*
|
|
@@ -16,5 +24,5 @@ declare function getOrganizationName(context: UnresolvedContext): string | undef
|
|
|
16
24
|
*/
|
|
17
25
|
declare function getWorkspaceName(context: UnresolvedContext): Promise<string | undefined>;
|
|
18
26
|
//#endregion
|
|
19
|
-
export { getOrganizationName, getWorkspaceName };
|
|
27
|
+
export { getOrganizationName, getPackageJsonOrganization, getWorkspaceName };
|
|
20
28
|
//# sourceMappingURL=context-helpers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-helpers.d.mts","names":[],"sources":["../../src/plugin-utils/context-helpers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context-helpers.d.mts","names":[],"sources":["../../src/plugin-utils/context-helpers.ts"],"mappings":";;;;;;AA8BA;;;;iBAAgB,mBAAA,CACd,OAAA,EAAS,iBAAA;AAeX;;;;;AA8DA;AA9DA,iBAAgB,0BAAA,CACd,WAAA,EAAa,WAAA;;;;;;;iBA6DO,gBAAA,CACpB,OAAA,EAAS,iBAAA,GACR,OAAA"}
|