@powerlines/core 0.48.17 → 0.48.19

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.
Files changed (42) hide show
  1. package/dist/constants/log-level.cjs +5 -0
  2. package/dist/constants/log-level.d.cts +6 -2
  3. package/dist/constants/log-level.d.cts.map +1 -1
  4. package/dist/constants/log-level.d.mts +6 -2
  5. package/dist/constants/log-level.d.mts.map +1 -1
  6. package/dist/constants/log-level.mjs +5 -0
  7. package/dist/constants/log-level.mjs.map +1 -1
  8. package/dist/context/context.cjs +16 -16
  9. package/dist/context/context.d.cts +3 -3
  10. package/dist/context/context.d.cts.map +1 -1
  11. package/dist/context/context.d.mts +3 -3
  12. package/dist/context/context.d.mts.map +1 -1
  13. package/dist/context/context.mjs +17 -17
  14. package/dist/context/context.mjs.map +1 -1
  15. package/dist/index.cjs +2 -2
  16. package/dist/index.d.cts +3 -3
  17. package/dist/index.d.mts +3 -3
  18. package/dist/index.mjs +2 -2
  19. package/dist/lib/context-helpers.d.cts +4 -4
  20. package/dist/lib/context-helpers.d.mts +4 -4
  21. package/dist/lib/entry.cjs +34 -34
  22. package/dist/lib/entry.d.cts +19 -19
  23. package/dist/lib/entry.d.cts.map +1 -1
  24. package/dist/lib/entry.d.mts +19 -19
  25. package/dist/lib/entry.d.mts.map +1 -1
  26. package/dist/lib/entry.mjs +33 -33
  27. package/dist/lib/entry.mjs.map +1 -1
  28. package/dist/lib/index.cjs +2 -2
  29. package/dist/lib/index.d.cts +2 -2
  30. package/dist/lib/index.d.mts +2 -2
  31. package/dist/lib/index.mjs +2 -2
  32. package/dist/types/config.d.cts +5 -5
  33. package/dist/types/config.d.cts.map +1 -1
  34. package/dist/types/config.d.mts +5 -5
  35. package/dist/types/config.d.mts.map +1 -1
  36. package/dist/types/context.d.cts +3 -3
  37. package/dist/types/context.d.cts.map +1 -1
  38. package/dist/types/context.d.mts +3 -3
  39. package/dist/types/context.d.mts.map +1 -1
  40. package/dist/types/index.d.cts +1 -1
  41. package/dist/types/index.d.mts +1 -1
  42. package/package.json +14 -14
@@ -24,6 +24,7 @@ const LogCategories = {
24
24
  CONFIG: "config",
25
25
  PLUGINS: "plugins",
26
26
  HOOKS: "hooks",
27
+ SCHEMA: "schema",
27
28
  ENV: "env",
28
29
  RPC: "rpc",
29
30
  BABEL: "babel",
@@ -37,6 +38,7 @@ const LOG_CATEGORIES = [
37
38
  LogCategories.CONFIG,
38
39
  LogCategories.PLUGINS,
39
40
  LogCategories.HOOKS,
41
+ LogCategories.SCHEMA,
40
42
  LogCategories.ENV,
41
43
  LogCategories.RPC,
42
44
  LogCategories.COMMUNICATION,
@@ -49,6 +51,7 @@ const DEFAULT_DEVELOPMENT_LOG_LEVEL = {
49
51
  plugins: "debug",
50
52
  hooks: "debug",
51
53
  performance: "debug",
54
+ schema: "debug",
52
55
  env: "info",
53
56
  rpc: "info",
54
57
  communication: "debug",
@@ -61,6 +64,7 @@ const DEFAULT_TEST_LOG_LEVEL = {
61
64
  plugins: "warn",
62
65
  hooks: "warn",
63
66
  performance: "info",
67
+ schema: "warn",
64
68
  env: "warn",
65
69
  rpc: "warn",
66
70
  communication: "warn",
@@ -73,6 +77,7 @@ const DEFAULT_PRODUCTION_LOG_LEVEL = {
73
77
  plugins: "warn",
74
78
  hooks: "warn",
75
79
  performance: "info",
80
+ schema: "error",
76
81
  env: "error",
77
82
  rpc: "error",
78
83
  communication: "error",
@@ -15,13 +15,14 @@ declare const LogCategories: {
15
15
  readonly CONFIG: "config";
16
16
  readonly PLUGINS: "plugins";
17
17
  readonly HOOKS: "hooks";
18
+ readonly SCHEMA: "schema";
18
19
  readonly ENV: "env";
19
20
  readonly RPC: "rpc";
20
21
  readonly BABEL: "babel";
21
22
  readonly COMMUNICATION: "communication";
22
23
  };
23
- declare const LOG_CATEGORIES_ARRAY: ("plugins" | "general" | "fs" | "performance" | "config" | "hooks" | "env" | "rpc" | "babel" | "communication")[];
24
- declare const LOG_CATEGORIES: readonly ["general", "fs", "performance", "config", "plugins", "hooks", "env", "rpc", "communication", "babel"];
24
+ declare const LOG_CATEGORIES_ARRAY: ("plugins" | "general" | "fs" | "performance" | "config" | "hooks" | "schema" | "env" | "rpc" | "babel" | "communication")[];
25
+ declare const LOG_CATEGORIES: readonly ["general", "fs", "performance", "config", "plugins", "hooks", "schema", "env", "rpc", "communication", "babel"];
25
26
  declare const DEFAULT_DEVELOPMENT_LOG_LEVEL: {
26
27
  readonly general: "debug";
27
28
  readonly fs: "info";
@@ -29,6 +30,7 @@ declare const DEFAULT_DEVELOPMENT_LOG_LEVEL: {
29
30
  readonly plugins: "debug";
30
31
  readonly hooks: "debug";
31
32
  readonly performance: "debug";
33
+ readonly schema: "debug";
32
34
  readonly env: "info";
33
35
  readonly rpc: "info";
34
36
  readonly communication: "debug";
@@ -41,6 +43,7 @@ declare const DEFAULT_TEST_LOG_LEVEL: {
41
43
  readonly plugins: "warn";
42
44
  readonly hooks: "warn";
43
45
  readonly performance: "info";
46
+ readonly schema: "warn";
44
47
  readonly env: "warn";
45
48
  readonly rpc: "warn";
46
49
  readonly communication: "warn";
@@ -53,6 +56,7 @@ declare const DEFAULT_PRODUCTION_LOG_LEVEL: {
53
56
  readonly plugins: "warn";
54
57
  readonly hooks: "warn";
55
58
  readonly performance: "info";
59
+ readonly schema: "error";
56
60
  readonly env: "error";
57
61
  readonly rpc: "error";
58
62
  readonly communication: "error";
@@ -1 +1 @@
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
+ {"version":3,"file":"log-level.d.cts","names":[],"sources":["../../src/constants/log-level.ts"],"mappings":";cAkBa,SAAA;EAAA;;;;;;;cASA,UAAA;AAAA,cASA,aAAA;EAAA;;;;;;;;;;;;cAcA,oBAAA;AAAA,cAEA,cAAA;AAAA,cAcA,6BAAA;EAAA;;;;;;;;;;;;cAcA,sBAAA;EAAA;;;;;;;;;;;;cAcA,4BAAA;EAAA"}
@@ -15,13 +15,14 @@ declare const LogCategories: {
15
15
  readonly CONFIG: "config";
16
16
  readonly PLUGINS: "plugins";
17
17
  readonly HOOKS: "hooks";
18
+ readonly SCHEMA: "schema";
18
19
  readonly ENV: "env";
19
20
  readonly RPC: "rpc";
20
21
  readonly BABEL: "babel";
21
22
  readonly COMMUNICATION: "communication";
22
23
  };
23
- declare const LOG_CATEGORIES_ARRAY: ("plugins" | "general" | "fs" | "performance" | "config" | "hooks" | "env" | "rpc" | "babel" | "communication")[];
24
- declare const LOG_CATEGORIES: readonly ["general", "fs", "performance", "config", "plugins", "hooks", "env", "rpc", "communication", "babel"];
24
+ declare const LOG_CATEGORIES_ARRAY: ("plugins" | "general" | "fs" | "performance" | "config" | "hooks" | "schema" | "env" | "rpc" | "babel" | "communication")[];
25
+ declare const LOG_CATEGORIES: readonly ["general", "fs", "performance", "config", "plugins", "hooks", "schema", "env", "rpc", "communication", "babel"];
25
26
  declare const DEFAULT_DEVELOPMENT_LOG_LEVEL: {
26
27
  readonly general: "debug";
27
28
  readonly fs: "info";
@@ -29,6 +30,7 @@ declare const DEFAULT_DEVELOPMENT_LOG_LEVEL: {
29
30
  readonly plugins: "debug";
30
31
  readonly hooks: "debug";
31
32
  readonly performance: "debug";
33
+ readonly schema: "debug";
32
34
  readonly env: "info";
33
35
  readonly rpc: "info";
34
36
  readonly communication: "debug";
@@ -41,6 +43,7 @@ declare const DEFAULT_TEST_LOG_LEVEL: {
41
43
  readonly plugins: "warn";
42
44
  readonly hooks: "warn";
43
45
  readonly performance: "info";
46
+ readonly schema: "warn";
44
47
  readonly env: "warn";
45
48
  readonly rpc: "warn";
46
49
  readonly communication: "warn";
@@ -53,6 +56,7 @@ declare const DEFAULT_PRODUCTION_LOG_LEVEL: {
53
56
  readonly plugins: "warn";
54
57
  readonly hooks: "warn";
55
58
  readonly performance: "info";
59
+ readonly schema: "error";
56
60
  readonly env: "error";
57
61
  readonly rpc: "error";
58
62
  readonly communication: "error";
@@ -1 +1 @@
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
+ {"version":3,"file":"log-level.d.mts","names":[],"sources":["../../src/constants/log-level.ts"],"mappings":";cAkBa,SAAA;EAAA;;;;;;;cASA,UAAA;AAAA,cASA,aAAA;EAAA;;;;;;;;;;;;cAcA,oBAAA;AAAA,cAEA,cAAA;AAAA,cAcA,6BAAA;EAAA;;;;;;;;;;;;cAcA,sBAAA;EAAA;;;;;;;;;;;;cAcA,4BAAA;EAAA"}
@@ -22,6 +22,7 @@ const LogCategories = {
22
22
  CONFIG: "config",
23
23
  PLUGINS: "plugins",
24
24
  HOOKS: "hooks",
25
+ SCHEMA: "schema",
25
26
  ENV: "env",
26
27
  RPC: "rpc",
27
28
  BABEL: "babel",
@@ -35,6 +36,7 @@ const LOG_CATEGORIES = [
35
36
  LogCategories.CONFIG,
36
37
  LogCategories.PLUGINS,
37
38
  LogCategories.HOOKS,
39
+ LogCategories.SCHEMA,
38
40
  LogCategories.ENV,
39
41
  LogCategories.RPC,
40
42
  LogCategories.COMMUNICATION,
@@ -47,6 +49,7 @@ const DEFAULT_DEVELOPMENT_LOG_LEVEL = {
47
49
  plugins: "debug",
48
50
  hooks: "debug",
49
51
  performance: "debug",
52
+ schema: "debug",
50
53
  env: "info",
51
54
  rpc: "info",
52
55
  communication: "debug",
@@ -59,6 +62,7 @@ const DEFAULT_TEST_LOG_LEVEL = {
59
62
  plugins: "warn",
60
63
  hooks: "warn",
61
64
  performance: "info",
65
+ schema: "warn",
62
66
  env: "warn",
63
67
  rpc: "warn",
64
68
  communication: "warn",
@@ -71,6 +75,7 @@ const DEFAULT_PRODUCTION_LOG_LEVEL = {
71
75
  plugins: "warn",
72
76
  hooks: "warn",
73
77
  performance: "info",
78
+ schema: "error",
74
79
  env: "error",
75
80
  rpc: "error",
76
81
  communication: "error",
@@ -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 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 RPC: \"rpc\",\n BABEL: \"babel\",\n COMMUNICATION: \"communication\"\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.RPC,\n LogCategories.COMMUNICATION,\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 rpc: \"info\",\n communication: \"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 rpc: \"warn\",\n communication: \"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 rpc: \"error\",\n communication: \"error\",\n babel: \"warn\"\n} as const;\n"],"mappings":";AAkBA,MAAa,YAAY;CACvB,QAAQ;CACR,OAAO;CACP,MAAM;CACN,MAAM;CACN,OAAO;CACP,OAAO;AACT;AAEA,MAAa,aAAa;CACxB,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;AACZ;AAEA,MAAa,gBAAgB;CAC3B,SAAS;CACT,IAAI;CACJ,aAAa;CACb,QAAQ;CACR,SAAS;CACT,OAAO;CACP,KAAK;CACL,KAAK;CACL,OAAO;CACP,eAAe;AACjB;AAEA,MAAa,uBAAuB,OAAO,OAAO,aAAa;AAE/D,MAAa,iBAAiB;CAC5B,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;AAChB;AAEA,MAAa,gCAAgC;CAC3C,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;AACT;AAEA,MAAa,yBAAyB;CACpC,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;AACT;AAEA,MAAa,+BAA+B;CAC1C,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;AACT"}
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 SCHEMA: \"schema\",\n ENV: \"env\",\n RPC: \"rpc\",\n BABEL: \"babel\",\n COMMUNICATION: \"communication\"\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.SCHEMA,\n LogCategories.ENV,\n LogCategories.RPC,\n LogCategories.COMMUNICATION,\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 schema: \"debug\",\n env: \"info\",\n rpc: \"info\",\n communication: \"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 schema: \"warn\",\n env: \"warn\",\n rpc: \"warn\",\n communication: \"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 schema: \"error\",\n env: \"error\",\n rpc: \"error\",\n communication: \"error\",\n babel: \"warn\"\n} as const;\n"],"mappings":";AAkBA,MAAa,YAAY;CACvB,QAAQ;CACR,OAAO;CACP,MAAM;CACN,MAAM;CACN,OAAO;CACP,OAAO;AACT;AAEA,MAAa,aAAa;CACxB,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;AACZ;AAEA,MAAa,gBAAgB;CAC3B,SAAS;CACT,IAAI;CACJ,aAAa;CACb,QAAQ;CACR,SAAS;CACT,OAAO;CACP,QAAQ;CACR,KAAK;CACL,KAAK;CACL,OAAO;CACP,eAAe;AACjB;AAEA,MAAa,uBAAuB,OAAO,OAAO,aAAa;AAE/D,MAAa,iBAAiB;CAC5B,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;AAChB;AAEA,MAAa,gCAAgC;CAC3C,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,QAAQ;CACR,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;AACT;AAEA,MAAa,yBAAyB;CACpC,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,QAAQ;CACR,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;AACT;AAEA,MAAa,+BAA+B;CAC1C,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,QAAQ;CACR,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;AACT"}
@@ -130,7 +130,7 @@ var PowerlinesContext = class extends require_context_base_context.PowerlinesBas
130
130
  */
131
131
  get entry() {
132
132
  const entry = this.resolvedEntry;
133
- return require_lib_entry.resolveInputsSync(this, entry && entry.length > 0 ? entry : Array.isArray(this.config.input) || (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.input) && !require_lib_entry.isTypeDefinition(this.config.input) ? this.config.input : (0, _stryke_convert_to_array.toArray)(this.config.input).flat());
133
+ return require_lib_entry.resolveInputsSync(this, entry && entry.length > 0 ? entry : Array.isArray(this.config.input) || (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.input) && !require_lib_entry.isFileReference(this.config.input) ? this.config.input : (0, _stryke_convert_to_array.toArray)(this.config.input).flat());
134
134
  }
135
135
  /**
136
136
  * The TypeScript configuration parsed from the tsconfig file
@@ -333,18 +333,18 @@ var PowerlinesContext = class extends require_context_base_context.PowerlinesBas
333
333
  */
334
334
  get resolvedEntry() {
335
335
  return Object.entries(this.fs.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
336
- const typeDefinition = { file: path };
336
+ const fileReference = { file: path };
337
337
  if (meta.properties) {
338
- if ((0, _stryke_type_checks_is_set_string.isSetString)(meta.properties.file)) typeDefinition.file = meta.properties.file;
339
- if ((0, _stryke_type_checks_is_set_string.isSetString)(meta.properties.name)) typeDefinition.name = meta.properties.name;
340
- if ((0, _stryke_type_checks_is_set_string.isSetString)(meta.properties["input.file"]) || (0, _stryke_type_checks_is_set_string.isSetString)(meta.properties["input.name"])) {
341
- typeDefinition.input ??= {};
342
- if ((0, _stryke_type_checks_is_set_string.isSetString)(meta.properties["input.file"])) typeDefinition.input.file = meta.properties["input.file"];
343
- if ((0, _stryke_type_checks_is_set_string.isSetString)(meta.properties["input.name"])) typeDefinition.input.name = meta.properties["input.name"];
338
+ if ((0, _stryke_type_checks_is_set_string.isSetString)(meta.properties.file)) fileReference.file = meta.properties.file;
339
+ if ((0, _stryke_type_checks_is_set_string.isSetString)(meta.properties.export)) fileReference.export = meta.properties.export;
340
+ if ((0, _stryke_type_checks_is_set_string.isSetString)(meta.properties["input.file"]) || (0, _stryke_type_checks_is_set_string.isSetString)(meta.properties["input.export"])) {
341
+ fileReference.input ??= {};
342
+ if ((0, _stryke_type_checks_is_set_string.isSetString)(meta.properties["input.file"])) fileReference.input.file = meta.properties["input.file"];
343
+ if ((0, _stryke_type_checks_is_set_string.isSetString)(meta.properties["input.export"])) fileReference.input.export = meta.properties["input.export"];
344
344
  }
345
- if ((0, _stryke_type_checks_is_set_string.isSetString)(meta.properties.output)) typeDefinition.output = meta.properties.output;
345
+ if ((0, _stryke_type_checks_is_set_string.isSetString)(meta.properties.output)) fileReference.output = meta.properties.output;
346
346
  }
347
- return typeDefinition;
347
+ return fileReference;
348
348
  }).filter(Boolean);
349
349
  }
350
350
  /**
@@ -622,12 +622,12 @@ var PowerlinesContext = class extends require_context_base_context.PowerlinesBas
622
622
  type: "entry",
623
623
  properties: {
624
624
  file: (0, _stryke_path_append.appendPath)(path, this.entryPath),
625
- name: options?.name,
625
+ export: options?.export,
626
626
  output: options?.output,
627
627
  "input.file": options?.input?.file,
628
- "input.name": options?.input?.name
628
+ "input.export": options?.input?.export
629
629
  }
630
- } }, (0, _stryke_helpers_omit.omit)(options, ["name"])));
630
+ } }, (0, _stryke_helpers_omit.omit)(options, ["export"])));
631
631
  }
632
632
  /**
633
633
  * Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
@@ -641,12 +641,12 @@ var PowerlinesContext = class extends require_context_base_context.PowerlinesBas
641
641
  type: "entry",
642
642
  properties: {
643
643
  file: (0, _stryke_path_append.appendPath)(path, this.entryPath),
644
- name: options?.name,
644
+ export: options?.export,
645
645
  output: options?.output,
646
646
  "input.file": options?.input?.file,
647
- "input.name": options?.input?.name
647
+ "input.export": options?.input?.export
648
648
  }
649
- } }, (0, _stryke_helpers_omit.omit)(options, ["name"])));
649
+ } }, (0, _stryke_helpers_omit.omit)(options, ["export"])));
650
650
  }
651
651
  /**
652
652
  * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
@@ -3,7 +3,7 @@ import { CallHookOptions, InferHookParameters, InferHookReturnType } from "../ty
3
3
  import { LogLevelResolvedConfig, Logger, LoggerOptions } from "../types/logging.cjs";
4
4
  import { ParsedTypeScriptConfig } from "../types/tsconfig.cjs";
5
5
  import { Context, EmitEntryOptions, EmitOptions, EnvironmentContext, FetchOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, TransformResult } from "../types/context.cjs";
6
- import { ExecutionOptions, InferOverridableConfig, ParsedUserConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "../types/config.cjs";
6
+ import { ExecutionOptions, InferOverridableConfig, ParsedUserConfig, ResolvedConfig, ResolvedEntryFileReference } from "../types/config.cjs";
7
7
  import { PowerlinesBaseContext } from "./base-context.cjs";
8
8
  import { EnvPaths } from "@stryke/env/get-env-paths";
9
9
  import { PackageJson } from "@stryke/types/package-json";
@@ -72,7 +72,7 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
72
72
  /**
73
73
  * The resolved entry type definitions for the project
74
74
  */
75
- get entry(): ResolvedEntryTypeDefinition[];
75
+ get entry(): ResolvedEntryFileReference[];
76
76
  /**
77
77
  * The TypeScript configuration parsed from the tsconfig file
78
78
  */
@@ -178,7 +178,7 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
178
178
  /**
179
179
  * The entry points that exist in the Powerlines virtual file system
180
180
  */
181
- protected get resolvedEntry(): ResolvedEntryTypeDefinition[];
181
+ protected get resolvedEntry(): ResolvedEntryFileReference[];
182
182
  /**
183
183
  * Creates a new Context instance.
184
184
  *
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.cts","names":[],"sources":["../../src/context/context.ts"],"mappings":";;;;;;;;;;;;;;;cA+Ja,iBAAA,yBACa,cAAA,GAAiB,cAAA,oCAGjC,qBAAA,CAAsB,cAAA,aACnB,OAAA,CAAQ,eAAA,EAAiB,cAAA;EAAA;EA8cE,OAAA,EAAS,gBAAA;EA5bxC,QAAA,EAAW,QAAA;EAvBU;;;EA4BrB,WAAA,EAAc,WAAA;EAvBF;;;EA4BZ,WAAA,EAAa,MAAA;EALC;;;EAUd,UAAA,EAAa,gBAAA;EAKC;;;EAAd,YAAA,EAAc,MAAA,kBAAwB,KAAA;EAerB;;;EAVjB,eAAA,EAAiB,MAAA,kBAAwB,KAAA;EA0BxB;;;EArBjB,aAAA,EAAe,QAAA;EA4DC;;;EAvDhB,eAAA,EAAiB,MAAA;EAwGb;;;EAAA,UAnGD,cAAA,EAAgB,eAAA;EAsGf;;;EAAA,UAjGD,gBAAA,EAAkB,sBAAA,CAAuB,eAAA;EAkGhD;;;EAAA,UA5FO,YAAA,EAAc,eAAA;EAoQJ;;;EAAA,UA9PV,UAAA,EAAY,eAAA;EAuTO;;;EAAA,UAlTnB,YAAA,EAAc,eAAA;EAkYc;;;EAAA,UA7X5B,iBAAA;EA6ZC;;;EAAA,IAxZA,KAAA,CAAA,GAAS,2BAAA;EAkiBuC;;;EAAA,IAhhBhD,QAAA,CAAA,GAAY,sBAAA;EA0rBgB;;;EAAA,IA7qB5B,QAAA,CAAS,K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A"}
@@ -3,7 +3,7 @@ import { CallHookOptions, InferHookParameters, InferHookReturnType } from "../ty
3
3
  import { LogLevelResolvedConfig, Logger, LoggerOptions } from "../types/logging.mjs";
4
4
  import { ParsedTypeScriptConfig } from "../types/tsconfig.mjs";
5
5
  import { Context, EmitEntryOptions, EmitOptions, EnvironmentContext, FetchOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, TransformResult } from "../types/context.mjs";
6
- import { ExecutionOptions, InferOverridableConfig, ParsedUserConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "../types/config.mjs";
6
+ import { ExecutionOptions, InferOverridableConfig, ParsedUserConfig, ResolvedConfig, ResolvedEntryFileReference } from "../types/config.mjs";
7
7
  import { PowerlinesBaseContext } from "./base-context.mjs";
8
8
  import { EnvPaths } from "@stryke/env/get-env-paths";
9
9
  import { FlatCache } from "flat-cache";
@@ -72,7 +72,7 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
72
72
  /**
73
73
  * The resolved entry type definitions for the project
74
74
  */
75
- get entry(): ResolvedEntryTypeDefinition[];
75
+ get entry(): ResolvedEntryFileReference[];
76
76
  /**
77
77
  * The TypeScript configuration parsed from the tsconfig file
78
78
  */
@@ -178,7 +178,7 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
178
178
  /**
179
179
  * The entry points that exist in the Powerlines virtual file system
180
180
  */
181
- protected get resolvedEntry(): ResolvedEntryTypeDefinition[];
181
+ protected get resolvedEntry(): ResolvedEntryFileReference[];
182
182
  /**
183
183
  * Creates a new Context instance.
184
184
  *
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.mts","names":[],"sources":["../../src/context/context.ts"],"mappings":";;;;;;;;;;;;;;;cA+Ja,iBAAA,yBACa,cAAA,GAAiB,cAAA,oCAGjC,qBAAA,CAAsB,cAAA,aACnB,OAAA,CAAQ,eAAA,EAAiB,cAAA;EAAA;EA8cE,OAAA,EAAS,gBAAA;EA5bxC,QAAA,EA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N,aAAA,CACL,IAAA,UACA,IAAA,UACA,OAAA,GAAS,gBAAA;EA0OD;;;;;;;EA5MG,WAAA,CACX,IAAA,UACA,EAAA,UACA,OAAA,GAAS,WAAA,GACR,OAAA;EAmlBK;;AAAiB;;;;;EAxjBlB,eAAA,CAAgB,IAAA,UAAc,EAAA,UAAY,OAAA,GAAS,WAAA;;;;;;;;EA2B7C,kBAAA,CACX,IAAA,UACA,EAAA,UACA,OAAA,GAAS,WAAA,GACR,OAAA;;;;;;;;EA2BI,sBAAA,CACL,IAAA,UACA,EAAA,UACA,OAAA,GAAS,WAAA;;;;;;;EA2BE,gBAAA,CAAiB,IAAA,YAAgB,OAAA;;;;;;;EAYjC,eAAA,CACX,MAAA,EAAQ,eAAA,mBACP,OAAA;;;;;;;EAsDU,eAAA,CACX,MAAA,EAAQ,eAAA,mBACP,OAAA;;;;;;YAeO,WAAA,CAAA,GAAe,eAAA;;;;;;;YA4BT,aAAA,CACd,MAAA,EAAQ,eAAA,iBACP,OAAA;;;;YAaa,aAAA,CAAA,GAAiB,OAAA;EAAA,QAgWzB,iBAAA;AAAA"}
@@ -9,7 +9,7 @@ import { formatConfig } from "../plugin-utils/format.mjs";
9
9
  import { replacePathTokens } from "../plugin-utils/paths.mjs";
10
10
  import { callHook } from "../lib/hooks.mjs";
11
11
  import { getConfigProps } from "../lib/context-helpers.mjs";
12
- import { getUniqueInputs, isTypeDefinition, resolveInputsSync } from "../lib/entry.mjs";
12
+ import { getUniqueInputs, isFileReference, resolveInputsSync } from "../lib/entry.mjs";
13
13
  import { CACHE_HASH_LENGTH, ROOT_HASH_LENGTH } from "../constants/meta.mjs";
14
14
  import "../constants/index.mjs";
15
15
  import { getPrefixedRootHash } from "../lib/meta.mjs";
@@ -127,7 +127,7 @@ var PowerlinesContext = class extends PowerlinesBaseContext {
127
127
  */
128
128
  get entry() {
129
129
  const entry = this.resolvedEntry;
130
- return resolveInputsSync(this, entry && entry.length > 0 ? entry : Array.isArray(this.config.input) || isSetObject(this.config.input) && !isTypeDefinition(this.config.input) ? this.config.input : toArray(this.config.input).flat());
130
+ return resolveInputsSync(this, entry && entry.length > 0 ? entry : Array.isArray(this.config.input) || isSetObject(this.config.input) && !isFileReference(this.config.input) ? this.config.input : toArray(this.config.input).flat());
131
131
  }
132
132
  /**
133
133
  * The TypeScript configuration parsed from the tsconfig file
@@ -330,18 +330,18 @@ var PowerlinesContext = class extends PowerlinesBaseContext {
330
330
  */
331
331
  get resolvedEntry() {
332
332
  return Object.entries(this.fs.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
333
- const typeDefinition = { file: path };
333
+ const fileReference = { file: path };
334
334
  if (meta.properties) {
335
- if (isSetString(meta.properties.file)) typeDefinition.file = meta.properties.file;
336
- if (isSetString(meta.properties.name)) typeDefinition.name = meta.properties.name;
337
- if (isSetString(meta.properties["input.file"]) || isSetString(meta.properties["input.name"])) {
338
- typeDefinition.input ??= {};
339
- if (isSetString(meta.properties["input.file"])) typeDefinition.input.file = meta.properties["input.file"];
340
- if (isSetString(meta.properties["input.name"])) typeDefinition.input.name = meta.properties["input.name"];
335
+ if (isSetString(meta.properties.file)) fileReference.file = meta.properties.file;
336
+ if (isSetString(meta.properties.export)) fileReference.export = meta.properties.export;
337
+ if (isSetString(meta.properties["input.file"]) || isSetString(meta.properties["input.export"])) {
338
+ fileReference.input ??= {};
339
+ if (isSetString(meta.properties["input.file"])) fileReference.input.file = meta.properties["input.file"];
340
+ if (isSetString(meta.properties["input.export"])) fileReference.input.export = meta.properties["input.export"];
341
341
  }
342
- if (isSetString(meta.properties.output)) typeDefinition.output = meta.properties.output;
342
+ if (isSetString(meta.properties.output)) fileReference.output = meta.properties.output;
343
343
  }
344
- return typeDefinition;
344
+ return fileReference;
345
345
  }).filter(Boolean);
346
346
  }
347
347
  /**
@@ -619,12 +619,12 @@ var PowerlinesContext = class extends PowerlinesBaseContext {
619
619
  type: "entry",
620
620
  properties: {
621
621
  file: appendPath(path, this.entryPath),
622
- name: options?.name,
622
+ export: options?.export,
623
623
  output: options?.output,
624
624
  "input.file": options?.input?.file,
625
- "input.name": options?.input?.name
625
+ "input.export": options?.input?.export
626
626
  }
627
- } }, omit(options, ["name"])));
627
+ } }, omit(options, ["export"])));
628
628
  }
629
629
  /**
630
630
  * Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
@@ -638,12 +638,12 @@ var PowerlinesContext = class extends PowerlinesBaseContext {
638
638
  type: "entry",
639
639
  properties: {
640
640
  file: appendPath(path, this.entryPath),
641
- name: options?.name,
641
+ export: options?.export,
642
642
  output: options?.output,
643
643
  "input.file": options?.input?.file,
644
- "input.name": options?.input?.name
644
+ "input.export": options?.input?.export
645
645
  }
646
- } }, omit(options, ["name"])));
646
+ } }, omit(options, ["export"])));
647
647
  }
648
648
  /**
649
649
  * Resolves a builtin virtual file and writes it to the VFS if it does not already exist