@package-pal/core 0.0.1 → 0.0.2

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 (207) hide show
  1. package/index.d.ts.map +1 -0
  2. package/{dist/index.js → index.js} +53 -54
  3. package/{dist/index.js.map → index.js.map} +4 -4
  4. package/lib/api.d.ts.map +1 -0
  5. package/lib/configuration/functions/check-bun.d.ts.map +1 -0
  6. package/lib/configuration/functions/get-default-logger.d.ts.map +1 -0
  7. package/lib/configuration/functions/is-root-dir.d.ts.map +1 -0
  8. package/lib/configuration/functions/load-config.d.ts.map +1 -0
  9. package/lib/configuration/functions/parse-config.d.ts.map +1 -0
  10. package/lib/configuration/functions/search-config-path.d.ts.map +1 -0
  11. package/lib/configuration/functions/validate-config-path.d.ts.map +1 -0
  12. package/lib/configuration/functions/z-loose-function.d.ts.map +1 -0
  13. package/lib/configuration/functions/z-loose-object-without-index-signature.d.ts.map +1 -0
  14. package/lib/configuration/schemas/config.d.ts.map +1 -0
  15. package/lib/configuration/types/activated-config.d.ts.map +1 -0
  16. package/lib/configuration/types/config-validation-result.d.ts.map +1 -0
  17. package/lib/configuration/types/config.d.ts.map +1 -0
  18. package/lib/configuration/types/logger.d.ts.map +1 -0
  19. package/lib/configuration/types/packages-ready-callback-props.d.ts.map +1 -0
  20. package/lib/configuration/types/process-package-callback-props.d.ts.map +1 -0
  21. package/lib/configuration/types/subprocess-callback.d.ts.map +1 -0
  22. package/lib/configuration/types/supported-config-type.d.ts.map +1 -0
  23. package/lib/graph/functions/dfs-traverse-graph-paths.d.ts.map +1 -0
  24. package/lib/graph/functions/dfs-traverse-graph.d.ts.map +1 -0
  25. package/lib/graph/functions/extract-subgraph.d.ts.map +1 -0
  26. package/lib/graph/functions/generate-graphs.d.ts.map +1 -0
  27. package/lib/graph/functions/generate-package-circular-dependency-paths.d.ts.map +1 -0
  28. package/lib/graph/functions/generate-topological-ranking-range.d.ts.map +1 -0
  29. package/lib/graph/functions/generate-topological-ranking.d.ts.map +1 -0
  30. package/lib/graph/functions/generate-topological-sorted-groups.d.ts.map +1 -0
  31. package/lib/graph/functions/is-disjoint.d.ts.map +1 -0
  32. package/lib/graph/functions/is-ranked-greater-than-or-equal.d.ts.map +1 -0
  33. package/lib/graph/functions/is-subgraph.d.ts.map +1 -0
  34. package/lib/graph/types/package-graph.d.ts.map +1 -0
  35. package/lib/graph/types/package-graphs.d.ts.map +1 -0
  36. package/lib/graph/types/package-node.d.ts.map +1 -0
  37. package/lib/graph/types/package-order.d.ts.map +1 -0
  38. package/lib/package/functions/load-packages.d.ts.map +1 -0
  39. package/lib/package/functions/parse-package.d.ts.map +1 -0
  40. package/lib/package/functions/scan-package-paths.d.ts.map +1 -0
  41. package/lib/package/functions/scan-packages.d.ts.map +1 -0
  42. package/lib/package/functions/update-package-version.d.ts.map +1 -0
  43. package/lib/package/types/package-data.d.ts.map +1 -0
  44. package/lib/types/bump-package-version-options.d.ts.map +1 -0
  45. package/lib/types/bump-version-type.d.ts.map +1 -0
  46. package/lib/types/config-options.d.ts.map +1 -0
  47. package/lib/types/get-config-options.d.ts.map +1 -0
  48. package/lib/types/get-package-circular-dependency-paths-options.d.ts.map +1 -0
  49. package/lib/types/get-package-data-options.d.ts.map +1 -0
  50. package/lib/types/get-package-graph-options.d.ts.map +1 -0
  51. package/lib/types/get-package-order-options.d.ts.map +1 -0
  52. package/lib/types/package-data-options.d.ts.map +1 -0
  53. package/lib/types/package-graphs-options.d.ts.map +1 -0
  54. package/lib/types/package-name-options.d.ts.map +1 -0
  55. package/lib/types/package-order-options.d.ts.map +1 -0
  56. package/lib/types/watch-packages-options.d.ts.map +1 -0
  57. package/lib/watch/functions/filter-files-modified-since.d.ts.map +1 -0
  58. package/lib/watch/functions/get-commands-for-shell.d.ts.map +1 -0
  59. package/lib/watch/functions/get-line-buffered-writer.d.ts.map +1 -0
  60. package/lib/watch/functions/normalise-watched-file-path.d.ts.map +1 -0
  61. package/lib/watch/functions/read-stream.d.ts.map +1 -0
  62. package/lib/watch/functions/run-async.d.ts.map +1 -0
  63. package/lib/watch/functions/run-subprocess.d.ts.map +1 -0
  64. package/lib/watch/functions/watch-package-changes.d.ts.map +1 -0
  65. package/lib/watch/types/change-action.d.ts.map +1 -0
  66. package/lib/watch/types/exit-state.d.ts.map +1 -0
  67. package/lib/watch/types/package-changes.d.ts.map +1 -0
  68. package/lib/watch/types/run-async-type.d.ts.map +1 -0
  69. package/lib/watch/types/spawn-options.d.ts.map +1 -0
  70. package/lib/watch/types/std-type.d.ts.map +1 -0
  71. package/package.json +34 -43
  72. package/dist/index.d.ts.map +0 -1
  73. package/dist/lib/api.d.ts.map +0 -1
  74. package/dist/lib/configuration/functions/check-bun.d.ts.map +0 -1
  75. package/dist/lib/configuration/functions/get-default-logger.d.ts.map +0 -1
  76. package/dist/lib/configuration/functions/is-root-dir.d.ts.map +0 -1
  77. package/dist/lib/configuration/functions/load-config.d.ts.map +0 -1
  78. package/dist/lib/configuration/functions/parse-config.d.ts.map +0 -1
  79. package/dist/lib/configuration/functions/search-config-path.d.ts.map +0 -1
  80. package/dist/lib/configuration/functions/validate-config-path.d.ts.map +0 -1
  81. package/dist/lib/configuration/functions/z-loose-function.d.ts.map +0 -1
  82. package/dist/lib/configuration/functions/z-loose-object-without-index-signature.d.ts.map +0 -1
  83. package/dist/lib/configuration/schemas/config.d.ts.map +0 -1
  84. package/dist/lib/configuration/types/activated-config.d.ts.map +0 -1
  85. package/dist/lib/configuration/types/config-validation-result.d.ts.map +0 -1
  86. package/dist/lib/configuration/types/config.d.ts.map +0 -1
  87. package/dist/lib/configuration/types/logger.d.ts.map +0 -1
  88. package/dist/lib/configuration/types/packages-ready-callback-props.d.ts.map +0 -1
  89. package/dist/lib/configuration/types/process-package-callback-props.d.ts.map +0 -1
  90. package/dist/lib/configuration/types/subprocess-callback.d.ts.map +0 -1
  91. package/dist/lib/configuration/types/supported-config-type.d.ts.map +0 -1
  92. package/dist/lib/graph/functions/dfs-traverse-graph-paths.d.ts.map +0 -1
  93. package/dist/lib/graph/functions/dfs-traverse-graph.d.ts.map +0 -1
  94. package/dist/lib/graph/functions/extract-subgraph.d.ts.map +0 -1
  95. package/dist/lib/graph/functions/generate-graphs.d.ts.map +0 -1
  96. package/dist/lib/graph/functions/generate-package-circular-dependency-paths.d.ts.map +0 -1
  97. package/dist/lib/graph/functions/generate-topological-ranking-range.d.ts.map +0 -1
  98. package/dist/lib/graph/functions/generate-topological-ranking.d.ts.map +0 -1
  99. package/dist/lib/graph/functions/generate-topological-sorted-groups.d.ts.map +0 -1
  100. package/dist/lib/graph/functions/is-disjoint.d.ts.map +0 -1
  101. package/dist/lib/graph/functions/is-ranked-greater-than-or-equal.d.ts.map +0 -1
  102. package/dist/lib/graph/functions/is-subgraph.d.ts.map +0 -1
  103. package/dist/lib/graph/types/package-graph.d.ts.map +0 -1
  104. package/dist/lib/graph/types/package-graphs.d.ts.map +0 -1
  105. package/dist/lib/graph/types/package-node.d.ts.map +0 -1
  106. package/dist/lib/graph/types/package-order.d.ts.map +0 -1
  107. package/dist/lib/package/functions/load-packages.d.ts.map +0 -1
  108. package/dist/lib/package/functions/parse-package.d.ts.map +0 -1
  109. package/dist/lib/package/functions/scan-package-paths.d.ts.map +0 -1
  110. package/dist/lib/package/functions/scan-packages.d.ts.map +0 -1
  111. package/dist/lib/package/functions/update-package-version.d.ts.map +0 -1
  112. package/dist/lib/package/types/package-data.d.ts.map +0 -1
  113. package/dist/lib/types/bump-package-version-options.d.ts.map +0 -1
  114. package/dist/lib/types/bump-version-type.d.ts.map +0 -1
  115. package/dist/lib/types/config-options.d.ts.map +0 -1
  116. package/dist/lib/types/get-config-options.d.ts.map +0 -1
  117. package/dist/lib/types/get-package-circular-dependency-paths-options.d.ts.map +0 -1
  118. package/dist/lib/types/get-package-data-options.d.ts.map +0 -1
  119. package/dist/lib/types/get-package-graph-options.d.ts.map +0 -1
  120. package/dist/lib/types/get-package-order-options.d.ts.map +0 -1
  121. package/dist/lib/types/package-data-options.d.ts.map +0 -1
  122. package/dist/lib/types/package-graphs-options.d.ts.map +0 -1
  123. package/dist/lib/types/package-name-options.d.ts.map +0 -1
  124. package/dist/lib/types/package-order-options.d.ts.map +0 -1
  125. package/dist/lib/types/watch-packages-options.d.ts.map +0 -1
  126. package/dist/lib/watch/functions/filter-files-modified-since.d.ts.map +0 -1
  127. package/dist/lib/watch/functions/get-commands-for-shell.d.ts.map +0 -1
  128. package/dist/lib/watch/functions/get-line-buffered-writer.d.ts.map +0 -1
  129. package/dist/lib/watch/functions/normalise-watched-file-path.d.ts.map +0 -1
  130. package/dist/lib/watch/functions/read-stream.d.ts.map +0 -1
  131. package/dist/lib/watch/functions/run-async.d.ts.map +0 -1
  132. package/dist/lib/watch/functions/run-subprocess.d.ts.map +0 -1
  133. package/dist/lib/watch/functions/watch-package-changes.d.ts.map +0 -1
  134. package/dist/lib/watch/types/change-action.d.ts.map +0 -1
  135. package/dist/lib/watch/types/exit-state.d.ts.map +0 -1
  136. package/dist/lib/watch/types/package-changes.d.ts.map +0 -1
  137. package/dist/lib/watch/types/run-async-type.d.ts.map +0 -1
  138. package/dist/lib/watch/types/spawn-options.d.ts.map +0 -1
  139. package/dist/lib/watch/types/std-type.d.ts.map +0 -1
  140. /package/{dist/index.d.ts → index.d.ts} +0 -0
  141. /package/{dist/lib → lib}/api.d.ts +0 -0
  142. /package/{dist/lib → lib}/configuration/functions/check-bun.d.ts +0 -0
  143. /package/{dist/lib → lib}/configuration/functions/get-default-logger.d.ts +0 -0
  144. /package/{dist/lib → lib}/configuration/functions/is-root-dir.d.ts +0 -0
  145. /package/{dist/lib → lib}/configuration/functions/load-config.d.ts +0 -0
  146. /package/{dist/lib → lib}/configuration/functions/parse-config.d.ts +0 -0
  147. /package/{dist/lib → lib}/configuration/functions/search-config-path.d.ts +0 -0
  148. /package/{dist/lib → lib}/configuration/functions/validate-config-path.d.ts +0 -0
  149. /package/{dist/lib → lib}/configuration/functions/z-loose-function.d.ts +0 -0
  150. /package/{dist/lib → lib}/configuration/functions/z-loose-object-without-index-signature.d.ts +0 -0
  151. /package/{dist/lib → lib}/configuration/schemas/config.d.ts +0 -0
  152. /package/{dist/lib → lib}/configuration/types/activated-config.d.ts +0 -0
  153. /package/{dist/lib → lib}/configuration/types/config-validation-result.d.ts +0 -0
  154. /package/{dist/lib → lib}/configuration/types/config.d.ts +0 -0
  155. /package/{dist/lib → lib}/configuration/types/logger.d.ts +0 -0
  156. /package/{dist/lib → lib}/configuration/types/packages-ready-callback-props.d.ts +0 -0
  157. /package/{dist/lib → lib}/configuration/types/process-package-callback-props.d.ts +0 -0
  158. /package/{dist/lib → lib}/configuration/types/subprocess-callback.d.ts +0 -0
  159. /package/{dist/lib → lib}/configuration/types/supported-config-type.d.ts +0 -0
  160. /package/{dist/lib → lib}/graph/functions/dfs-traverse-graph-paths.d.ts +0 -0
  161. /package/{dist/lib → lib}/graph/functions/dfs-traverse-graph.d.ts +0 -0
  162. /package/{dist/lib → lib}/graph/functions/extract-subgraph.d.ts +0 -0
  163. /package/{dist/lib → lib}/graph/functions/generate-graphs.d.ts +0 -0
  164. /package/{dist/lib → lib}/graph/functions/generate-package-circular-dependency-paths.d.ts +0 -0
  165. /package/{dist/lib → lib}/graph/functions/generate-topological-ranking-range.d.ts +0 -0
  166. /package/{dist/lib → lib}/graph/functions/generate-topological-ranking.d.ts +0 -0
  167. /package/{dist/lib → lib}/graph/functions/generate-topological-sorted-groups.d.ts +0 -0
  168. /package/{dist/lib → lib}/graph/functions/is-disjoint.d.ts +0 -0
  169. /package/{dist/lib → lib}/graph/functions/is-ranked-greater-than-or-equal.d.ts +0 -0
  170. /package/{dist/lib → lib}/graph/functions/is-subgraph.d.ts +0 -0
  171. /package/{dist/lib → lib}/graph/types/package-graph.d.ts +0 -0
  172. /package/{dist/lib → lib}/graph/types/package-graphs.d.ts +0 -0
  173. /package/{dist/lib → lib}/graph/types/package-node.d.ts +0 -0
  174. /package/{dist/lib → lib}/graph/types/package-order.d.ts +0 -0
  175. /package/{dist/lib → lib}/package/functions/load-packages.d.ts +0 -0
  176. /package/{dist/lib → lib}/package/functions/parse-package.d.ts +0 -0
  177. /package/{dist/lib → lib}/package/functions/scan-package-paths.d.ts +0 -0
  178. /package/{dist/lib → lib}/package/functions/scan-packages.d.ts +0 -0
  179. /package/{dist/lib → lib}/package/functions/update-package-version.d.ts +0 -0
  180. /package/{dist/lib → lib}/package/types/package-data.d.ts +0 -0
  181. /package/{dist/lib → lib}/types/bump-package-version-options.d.ts +0 -0
  182. /package/{dist/lib → lib}/types/bump-version-type.d.ts +0 -0
  183. /package/{dist/lib → lib}/types/config-options.d.ts +0 -0
  184. /package/{dist/lib → lib}/types/get-config-options.d.ts +0 -0
  185. /package/{dist/lib → lib}/types/get-package-circular-dependency-paths-options.d.ts +0 -0
  186. /package/{dist/lib → lib}/types/get-package-data-options.d.ts +0 -0
  187. /package/{dist/lib → lib}/types/get-package-graph-options.d.ts +0 -0
  188. /package/{dist/lib → lib}/types/get-package-order-options.d.ts +0 -0
  189. /package/{dist/lib → lib}/types/package-data-options.d.ts +0 -0
  190. /package/{dist/lib → lib}/types/package-graphs-options.d.ts +0 -0
  191. /package/{dist/lib → lib}/types/package-name-options.d.ts +0 -0
  192. /package/{dist/lib → lib}/types/package-order-options.d.ts +0 -0
  193. /package/{dist/lib → lib}/types/watch-packages-options.d.ts +0 -0
  194. /package/{dist/lib → lib}/watch/functions/filter-files-modified-since.d.ts +0 -0
  195. /package/{dist/lib → lib}/watch/functions/get-commands-for-shell.d.ts +0 -0
  196. /package/{dist/lib → lib}/watch/functions/get-line-buffered-writer.d.ts +0 -0
  197. /package/{dist/lib → lib}/watch/functions/normalise-watched-file-path.d.ts +0 -0
  198. /package/{dist/lib → lib}/watch/functions/read-stream.d.ts +0 -0
  199. /package/{dist/lib → lib}/watch/functions/run-async.d.ts +0 -0
  200. /package/{dist/lib → lib}/watch/functions/run-subprocess.d.ts +0 -0
  201. /package/{dist/lib → lib}/watch/functions/watch-package-changes.d.ts +0 -0
  202. /package/{dist/lib → lib}/watch/types/change-action.d.ts +0 -0
  203. /package/{dist/lib → lib}/watch/types/exit-state.d.ts +0 -0
  204. /package/{dist/lib → lib}/watch/types/package-changes.d.ts +0 -0
  205. /package/{dist/lib → lib}/watch/types/run-async-type.d.ts +0 -0
  206. /package/{dist/lib → lib}/watch/types/spawn-options.d.ts +0 -0
  207. /package/{dist/lib → lib}/watch/types/std-type.d.ts +0 -0
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/core/src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,yCAAyC,CAAC;AAC7D,mBAAmB,0CAA0C,CAAC;AAC9D,mBAAmB,0CAA0C,CAAC;AAC9D,mBAAmB,8DAA8D,CAAC;AAClF,mBAAmB,6CAA6C,CAAC;AACjE,mBAAmB,uCAAuC,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AAEjD,mBAAmB,qCAAqC,CAAC;AACzD,YAAY,EACX,MAAM,EAAE,cAAc,IAAI,QAAQ,GAClC,MAAM,qCAAqC,CAAC;AAC7C,mBAAmB,6DAA6D,CAAC;AAEjF,mBAAmB,oCAAoC,CAAC;AACxD,mBAAmB,mCAAmC,CAAC;AACvD,mBAAmB,oCAAoC,CAAC;AAExD,mBAAmB,qCAAqC,CAAC;AAEzD,mBAAmB,sCAAsC,CAAC;AAC1D,mBAAmB,oCAAoC,CAAC;AAExD,cAAc,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- // src/lib/types/bump-version-type.ts
2
+ // packages/core/src/lib/types/bump-version-type.ts
3
3
  var BumpVersionType = {
4
4
  Major: "major",
5
5
  Minor: "minor",
@@ -9,17 +9,17 @@ var BumpVersionType = {
9
9
  Prepatch: "prepatch",
10
10
  Prerelease: "prerelease"
11
11
  };
12
- // src/lib/api.ts
12
+ // packages/core/src/lib/api.ts
13
13
  import { isDefined as isDefined5 } from "@package-pal/util";
14
14
 
15
- // src/lib/configuration/functions/check-bun.ts
15
+ // packages/core/src/lib/configuration/functions/check-bun.ts
16
16
  var checkBun = () => {
17
17
  if (!Bun) {
18
18
  throw new Error("This package must be run with the Bun runtime.");
19
19
  }
20
20
  };
21
21
 
22
- // src/lib/configuration/functions/load-config.ts
22
+ // packages/core/src/lib/configuration/functions/load-config.ts
23
23
  import {
24
24
  deepMergeDefined,
25
25
  formatSimpleLogObject,
@@ -30,7 +30,7 @@ import {
30
30
  dim
31
31
  } from "yoctocolors";
32
32
 
33
- // src/lib/configuration/functions/get-default-logger.ts
33
+ // packages/core/src/lib/configuration/functions/get-default-logger.ts
34
34
  import {
35
35
  assertDefined,
36
36
  noOp
@@ -52,10 +52,10 @@ var getDefaultLogger = (logLevel) => {
52
52
  };
53
53
  };
54
54
 
55
- // src/lib/configuration/schemas/config.ts
55
+ // packages/core/src/lib/configuration/schemas/config.ts
56
56
  import * as z3 from "zod/mini";
57
57
 
58
- // src/lib/configuration/functions/z-loose-function.ts
58
+ // packages/core/src/lib/configuration/functions/z-loose-function.ts
59
59
  import { z } from "zod/mini";
60
60
  var zLooseFunction = () => {
61
61
  return z.transform((arg, ctx) => {
@@ -71,13 +71,13 @@ var zLooseFunction = () => {
71
71
  });
72
72
  };
73
73
 
74
- // src/lib/configuration/functions/z-loose-object-without-index-signature.ts
74
+ // packages/core/src/lib/configuration/functions/z-loose-object-without-index-signature.ts
75
75
  import * as z2 from "zod/mini";
76
76
  var zLooseObjectWithoutIndexSignature = (shape, params) => {
77
77
  return z2.looseObject(shape, params);
78
78
  };
79
79
 
80
- // src/lib/configuration/schemas/config.ts
80
+ // packages/core/src/lib/configuration/schemas/config.ts
81
81
  var LogLevel = z3.enum([
82
82
  "debug",
83
83
  "info",
@@ -112,13 +112,13 @@ var Config = z3.object({
112
112
  logLevel: z3.optional(LogLevel)
113
113
  });
114
114
 
115
- // src/lib/configuration/functions/validate-config-path.ts
115
+ // packages/core/src/lib/configuration/functions/validate-config-path.ts
116
116
  import {
117
117
  basename,
118
118
  extname
119
119
  } from "path";
120
120
 
121
- // src/lib/configuration/types/supported-config-type.ts
121
+ // packages/core/src/lib/configuration/types/supported-config-type.ts
122
122
  var SupportedConfigType = {
123
123
  TS: "ts",
124
124
  CTS: "cts",
@@ -128,7 +128,7 @@ var SupportedConfigType = {
128
128
  MJS: "mjs"
129
129
  };
130
130
 
131
- // src/lib/configuration/functions/validate-config-path.ts
131
+ // packages/core/src/lib/configuration/functions/validate-config-path.ts
132
132
  var CONFIG_SUPPORTED_BASE_NAME = "ppal.config";
133
133
  var CONFIG_SUPPORTED_TYPES = Object.values(SupportedConfigType);
134
134
  var CONFIG_SUPPORTED_NAMES = CONFIG_SUPPORTED_TYPES.map((type) => `${CONFIG_SUPPORTED_BASE_NAME}.${type}`);
@@ -149,7 +149,7 @@ var validateConfigPath = (path) => {
149
149
  };
150
150
  };
151
151
 
152
- // src/lib/configuration/functions/parse-config.ts
152
+ // packages/core/src/lib/configuration/functions/parse-config.ts
153
153
  var parseConfig = async (path) => {
154
154
  const result = validateConfigPath(path);
155
155
  if (!result.valid) {
@@ -160,7 +160,7 @@ var parseConfig = async (path) => {
160
160
  return Config.parse(base);
161
161
  };
162
162
 
163
- // src/lib/configuration/functions/search-config-path.ts
163
+ // packages/core/src/lib/configuration/functions/search-config-path.ts
164
164
  import {
165
165
  isAbsolute,
166
166
  join,
@@ -168,13 +168,13 @@ import {
168
168
  } from "path";
169
169
  import { isDefined } from "@package-pal/util";
170
170
 
171
- // src/lib/configuration/functions/is-root-dir.ts
171
+ // packages/core/src/lib/configuration/functions/is-root-dir.ts
172
172
  import { dirname } from "path";
173
173
  var isRootDir = (path) => {
174
174
  return dirname(path) === path;
175
175
  };
176
176
 
177
- // src/lib/configuration/functions/search-config-path.ts
177
+ // packages/core/src/lib/configuration/functions/search-config-path.ts
178
178
  var dirDistLimit = 25;
179
179
  var checkForConfigInDir = async (dir) => {
180
180
  return new Promise((resolve) => {
@@ -217,7 +217,7 @@ var searchConfigPath = async (pathOverride) => {
217
217
  return checkForConfigInDir(activeDir);
218
218
  };
219
219
 
220
- // src/lib/configuration/functions/load-config.ts
220
+ // packages/core/src/lib/configuration/functions/load-config.ts
221
221
  var defaultConfig = {
222
222
  packages: "packages/*",
223
223
  version: {
@@ -254,7 +254,6 @@ var loadConfig = async (overrideConfigPath) => {
254
254
  const parsedConfig = await parseConfig(path);
255
255
  const parsedLogger = parsedConfig["logger"];
256
256
  const logger = parsedLogger ?? (!parsedConfig.logLevel || parsedConfig.logLevel === defaultConfig.logLevel ? defaultConfig.logger : getDefaultLogger(parsedConfig.logLevel));
257
- logger.info(`Successfully loaded config file '${path}'.`);
258
257
  logger.debug(dim(bgGray("User config:")), `
259
258
  ${dim(formatSimpleLogObject(parsedConfig))}`);
260
259
  logger.debug(dim(bgGray("Default config:")), `
@@ -266,7 +265,7 @@ ${dim(formatSimpleLogObject(activatedConfig))}`);
266
265
  return activatedConfig;
267
266
  };
268
267
 
269
- // src/lib/graph/functions/generate-graphs.ts
268
+ // packages/core/src/lib/graph/functions/generate-graphs.ts
270
269
  import { assertDefined as assertDefined2 } from "@package-pal/util";
271
270
  import { dim as dim2 } from "yoctocolors";
272
271
  var trackPackageEntryDependencies = ({
@@ -324,14 +323,14 @@ var generateGraphs = (packages, logger) => {
324
323
  };
325
324
  };
326
325
 
327
- // src/lib/graph/functions/generate-package-circular-dependency-paths.ts
326
+ // packages/core/src/lib/graph/functions/generate-package-circular-dependency-paths.ts
328
327
  import { assertDefined as assertDefined6 } from "@package-pal/util";
329
328
  import {
330
329
  dim as dim3,
331
330
  yellow
332
331
  } from "yoctocolors";
333
332
 
334
- // src/lib/graph/functions/dfs-traverse-graph-paths.ts
333
+ // packages/core/src/lib/graph/functions/dfs-traverse-graph-paths.ts
335
334
  import { assertDefined as assertDefined3 } from "@package-pal/util";
336
335
  var dfsTraverseGraphPaths = function* (graph, traverseFromPackages) {
337
336
  const globalVisited = new Set;
@@ -381,10 +380,10 @@ var dfsTraverseGraphPaths = function* (graph, traverseFromPackages) {
381
380
  }
382
381
  };
383
382
 
384
- // src/lib/graph/functions/extract-subgraph.ts
383
+ // packages/core/src/lib/graph/functions/extract-subgraph.ts
385
384
  import { assertDefined as assertDefined5 } from "@package-pal/util";
386
385
 
387
- // src/lib/graph/functions/dfs-traverse-graph.ts
386
+ // packages/core/src/lib/graph/functions/dfs-traverse-graph.ts
388
387
  import { assertDefined as assertDefined4 } from "@package-pal/util";
389
388
  var dfsTraverseGraph = function* (graph, traverseFromPackages) {
390
389
  const visited = new Set;
@@ -408,7 +407,7 @@ var dfsTraverseGraph = function* (graph, traverseFromPackages) {
408
407
  }
409
408
  };
410
409
 
411
- // src/lib/graph/functions/extract-subgraph.ts
410
+ // packages/core/src/lib/graph/functions/extract-subgraph.ts
412
411
  var extractSubgraph = (graph, fromPackages) => {
413
412
  const reachablePackages = new Set(dfsTraverseGraph(graph, fromPackages).map((packageData) => packageData.name));
414
413
  const subgraph = new Map;
@@ -423,7 +422,7 @@ var extractSubgraph = (graph, fromPackages) => {
423
422
  return subgraph;
424
423
  };
425
424
 
426
- // src/lib/graph/functions/generate-package-circular-dependency-paths.ts
425
+ // packages/core/src/lib/graph/functions/generate-package-circular-dependency-paths.ts
427
426
  var findStronglyConnectedComponents = (graph) => {
428
427
  let index = 0;
429
428
  const indices = new Map;
@@ -497,7 +496,7 @@ ${sampleCycleContents}`));
497
496
  return sampleCycles;
498
497
  };
499
498
 
500
- // src/lib/graph/functions/generate-topological-sorted-groups.ts
499
+ // packages/core/src/lib/graph/functions/generate-topological-sorted-groups.ts
501
500
  import { assertDefined as assertDefined7 } from "@package-pal/util";
502
501
  import {
503
502
  dim as dim4,
@@ -557,10 +556,10 @@ var generateTopologicalSortedGroups = (packageGraph, logger) => {
557
556
  };
558
557
  };
559
558
 
560
- // src/lib/package/functions/load-packages.ts
559
+ // packages/core/src/lib/package/functions/load-packages.ts
561
560
  import { dim as dim6 } from "yoctocolors";
562
561
 
563
- // src/lib/package/functions/scan-packages.ts
562
+ // packages/core/src/lib/package/functions/scan-packages.ts
564
563
  import {
565
564
  dirname as dirname4,
566
565
  join as join2
@@ -571,7 +570,7 @@ import {
571
570
  red
572
571
  } from "yoctocolors";
573
572
 
574
- // src/lib/package/functions/parse-package.ts
573
+ // packages/core/src/lib/package/functions/parse-package.ts
575
574
  import {
576
575
  dirname as dirname3,
577
576
  basename as basename2
@@ -603,7 +602,7 @@ var parsePackage = (path, text) => {
603
602
  };
604
603
  };
605
604
 
606
- // src/lib/package/functions/scan-package-paths.ts
605
+ // packages/core/src/lib/package/functions/scan-package-paths.ts
607
606
  import { scanGlobPatternPaths } from "@package-pal/util";
608
607
  var scanPackagePaths = (packages) => {
609
608
  return scanGlobPatternPaths(packages, {
@@ -612,7 +611,7 @@ var scanPackagePaths = (packages) => {
612
611
  });
613
612
  };
614
613
 
615
- // src/lib/package/functions/scan-packages.ts
614
+ // packages/core/src/lib/package/functions/scan-packages.ts
616
615
  var scanPackages = async function* (patterns, logger) {
617
616
  for await (const path of scanPackagePaths(patterns)) {
618
617
  const packagePath = join2(path, "package.json");
@@ -633,7 +632,7 @@ var scanPackages = async function* (patterns, logger) {
633
632
  }
634
633
  };
635
634
 
636
- // src/lib/package/functions/load-packages.ts
635
+ // packages/core/src/lib/package/functions/load-packages.ts
637
636
  var loadPackages = async (packagePatterns, logger) => {
638
637
  const patternContent = packagePatterns.map((pattern) => `'${pattern}'`).join(", ");
639
638
  logger.debug(dim6(`Loading packages matching pattern/s ${patternContent}...`));
@@ -652,7 +651,7 @@ var loadPackages = async (packagePatterns, logger) => {
652
651
  return packages;
653
652
  };
654
653
 
655
- // src/lib/package/functions/update-package-version.ts
654
+ // packages/core/src/lib/package/functions/update-package-version.ts
656
655
  var {semver } = globalThis.Bun;
657
656
  import { inc } from "semver";
658
657
  import { dim as dim7 } from "yoctocolors";
@@ -767,7 +766,7 @@ var updatePackageVersion = async (packageName, type, packageGraphs, preId, exact
767
766
  });
768
767
  };
769
768
 
770
- // src/lib/watch/functions/watch-package-changes.ts
769
+ // packages/core/src/lib/watch/functions/watch-package-changes.ts
771
770
  import {
772
771
  watch
773
772
  } from "fs";
@@ -788,7 +787,7 @@ import {
788
787
  red as red3
789
788
  } from "yoctocolors";
790
789
 
791
- // src/lib/graph/functions/generate-topological-ranking-range.ts
790
+ // packages/core/src/lib/graph/functions/generate-topological-ranking-range.ts
792
791
  import { isDefined as isDefined3 } from "@package-pal/util";
793
792
  var generateTopologicalRankingRange = (graph, ranking) => {
794
793
  let min = Infinity;
@@ -811,7 +810,7 @@ var generateTopologicalRankingRange = (graph, ranking) => {
811
810
  return [min, max];
812
811
  };
813
812
 
814
- // src/lib/graph/functions/generate-topological-ranking.ts
813
+ // packages/core/src/lib/graph/functions/generate-topological-ranking.ts
815
814
  import { assertDefined as assertDefined8 } from "@package-pal/util";
816
815
  var generateTopologicalRanking = (packageProcessOrder) => {
817
816
  const rankMap = new Map;
@@ -823,7 +822,7 @@ var generateTopologicalRanking = (packageProcessOrder) => {
823
822
  return rankMap;
824
823
  };
825
824
 
826
- // src/lib/graph/functions/is-disjoint.ts
825
+ // packages/core/src/lib/graph/functions/is-disjoint.ts
827
826
  var isDisjoint = (a, b) => {
828
827
  for (const key of a.keys()) {
829
828
  if (b.has(key)) {
@@ -833,7 +832,7 @@ var isDisjoint = (a, b) => {
833
832
  return true;
834
833
  };
835
834
 
836
- // src/lib/graph/functions/is-ranked-greater-than-or-equal.ts
835
+ // packages/core/src/lib/graph/functions/is-ranked-greater-than-or-equal.ts
837
836
  var isRankedGreaterThanOrEqual = (a, b, ranking) => {
838
837
  const [prevMin] = generateTopologicalRankingRange(a, ranking);
839
838
  for (const key of b.keys()) {
@@ -845,7 +844,7 @@ var isRankedGreaterThanOrEqual = (a, b, ranking) => {
845
844
  return true;
846
845
  };
847
846
 
848
- // src/lib/graph/functions/is-subgraph.ts
847
+ // packages/core/src/lib/graph/functions/is-subgraph.ts
849
848
  var recordEqual = (a, b) => {
850
849
  if (!a && !b) {
851
850
  return true;
@@ -881,27 +880,27 @@ var isSubgraph = (a, b) => {
881
880
  return true;
882
881
  };
883
882
 
884
- // src/lib/watch/types/change-action.ts
883
+ // packages/core/src/lib/watch/types/change-action.ts
885
884
  var ChangeAction = {
886
885
  Ignore: "Ignore",
887
886
  Partial: "Partial",
888
887
  Restart: "Restart"
889
888
  };
890
889
 
891
- // src/lib/watch/types/exit-state.ts
890
+ // packages/core/src/lib/watch/types/exit-state.ts
892
891
  var ExitState = {
893
892
  Completed: "Completed",
894
893
  Errored: "Errored",
895
894
  Cancelled: "Cancelled"
896
895
  };
897
896
 
898
- // src/lib/watch/types/run-async-type.ts
897
+ // packages/core/src/lib/watch/types/run-async-type.ts
899
898
  var RunAsyncType = {
900
899
  Sequential: "Sequential",
901
900
  Parallel: "Parallel"
902
901
  };
903
902
 
904
- // src/lib/watch/functions/filter-files-modified-since.ts
903
+ // packages/core/src/lib/watch/functions/filter-files-modified-since.ts
905
904
  var filterFilesModifiedSince = (paths, sinceMs) => {
906
905
  return paths.filter((path) => {
907
906
  const changedFile = Bun.file(path);
@@ -909,7 +908,7 @@ var filterFilesModifiedSince = (paths, sinceMs) => {
909
908
  });
910
909
  };
911
910
 
912
- // src/lib/watch/functions/normalise-watched-file-path.ts
911
+ // packages/core/src/lib/watch/functions/normalise-watched-file-path.ts
913
912
  import {
914
913
  basename as basename3,
915
914
  dirname as dirname5,
@@ -938,7 +937,7 @@ var normaliseWatchedFilePath = (filePath) => {
938
937
  return join3(dir, base);
939
938
  };
940
939
 
941
- // src/lib/watch/functions/run-async.ts
940
+ // packages/core/src/lib/watch/functions/run-async.ts
942
941
  var runAsync = async (type, tasks) => {
943
942
  if (type === RunAsyncType.Parallel) {
944
943
  return Promise.all(tasks.map((task) => task()));
@@ -951,19 +950,19 @@ var runAsync = async (type, tasks) => {
951
950
  return outputs;
952
951
  };
953
952
 
954
- // src/lib/watch/functions/run-subprocess.ts
953
+ // packages/core/src/lib/watch/functions/run-subprocess.ts
955
954
  import {
956
955
  dim as dim8,
957
956
  red as red2
958
957
  } from "yoctocolors";
959
958
 
960
- // src/lib/watch/types/std-type.ts
959
+ // packages/core/src/lib/watch/types/std-type.ts
961
960
  var StdType = {
962
961
  Out: "Out",
963
962
  Err: "Err"
964
963
  };
965
964
 
966
- // src/lib/watch/functions/get-commands-for-shell.ts
965
+ // packages/core/src/lib/watch/functions/get-commands-for-shell.ts
967
966
  var getCommandsForShell = (shellCommand) => {
968
967
  const isWindows = process.platform === "win32";
969
968
  if (!isWindows) {
@@ -989,7 +988,7 @@ var getCommandsForShell = (shellCommand) => {
989
988
  ];
990
989
  };
991
990
 
992
- // src/lib/watch/functions/get-line-buffered-writer.ts
991
+ // packages/core/src/lib/watch/functions/get-line-buffered-writer.ts
993
992
  import { identity } from "@package-pal/util";
994
993
  var getLineBufferedWriter = (prefix, style = identity, write = process.stdout.write.bind(process.stdout)) => {
995
994
  let buffer = "";
@@ -1005,7 +1004,7 @@ var getLineBufferedWriter = (prefix, style = identity, write = process.stdout.wr
1005
1004
  };
1006
1005
  };
1007
1006
 
1008
- // src/lib/watch/functions/read-stream.ts
1007
+ // packages/core/src/lib/watch/functions/read-stream.ts
1009
1008
  var readStream = async (stream, use) => {
1010
1009
  if (!stream) {
1011
1010
  return;
@@ -1023,7 +1022,7 @@ var readStream = async (stream, use) => {
1023
1022
  }
1024
1023
  };
1025
1024
 
1026
- // src/lib/watch/functions/run-subprocess.ts
1025
+ // packages/core/src/lib/watch/functions/run-subprocess.ts
1027
1026
  var sigintCode = 130;
1028
1027
  var sigtermCode = 143;
1029
1028
  var sigkillCode = 137;
@@ -1091,7 +1090,7 @@ var runSubprocess = async (opts) => {
1091
1090
  return exitState;
1092
1091
  };
1093
1092
 
1094
- // src/lib/watch/functions/watch-package-changes.ts
1093
+ // packages/core/src/lib/watch/functions/watch-package-changes.ts
1095
1094
  var fileModifiedThresholdMs = 5000;
1096
1095
  var lastProcessedSubgraph;
1097
1096
  var getChangeLogic = (packageGraphs, packageChanges, config, logger) => {
@@ -1384,7 +1383,7 @@ var watchPackageChanges = (packageData, packageGraphs, watchConfig, logger) => {
1384
1383
  } };
1385
1384
  };
1386
1385
 
1387
- // src/lib/api.ts
1386
+ // packages/core/src/lib/api.ts
1388
1387
  var readPackagePalConfig = (options) => {
1389
1388
  checkBun();
1390
1389
  return loadConfig(options?.overrideConfigPath);
@@ -1427,5 +1426,5 @@ export {
1427
1426
  BumpVersionType
1428
1427
  };
1429
1428
 
1430
- //# debugId=E0ED0EB8F615FC9B64756E2164756E21
1429
+ //# debugId=038CF7D68B032DA664756E2164756E21
1431
1430
  //# sourceMappingURL=index.js.map