@package-pal/core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1431 -0
- package/dist/index.js.map +50 -0
- package/dist/lib/api.d.ts +45 -0
- package/dist/lib/api.d.ts.map +1 -0
- package/dist/lib/configuration/functions/check-bun.d.ts +2 -0
- package/dist/lib/configuration/functions/check-bun.d.ts.map +1 -0
- package/dist/lib/configuration/functions/get-default-logger.d.ts +4 -0
- package/dist/lib/configuration/functions/get-default-logger.d.ts.map +1 -0
- package/dist/lib/configuration/functions/is-root-dir.d.ts +2 -0
- package/dist/lib/configuration/functions/is-root-dir.d.ts.map +1 -0
- package/dist/lib/configuration/functions/load-config.d.ts +3 -0
- package/dist/lib/configuration/functions/load-config.d.ts.map +1 -0
- package/dist/lib/configuration/functions/parse-config.d.ts +27 -0
- package/dist/lib/configuration/functions/parse-config.d.ts.map +1 -0
- package/dist/lib/configuration/functions/search-config-path.d.ts +2 -0
- package/dist/lib/configuration/functions/search-config-path.d.ts.map +1 -0
- package/dist/lib/configuration/functions/validate-config-path.d.ts +6 -0
- package/dist/lib/configuration/functions/validate-config-path.d.ts.map +1 -0
- package/dist/lib/configuration/functions/z-loose-function.d.ts +3 -0
- package/dist/lib/configuration/functions/z-loose-function.d.ts.map +1 -0
- package/dist/lib/configuration/functions/z-loose-object-without-index-signature.d.ts +4 -0
- package/dist/lib/configuration/functions/z-loose-object-without-index-signature.d.ts.map +1 -0
- package/dist/lib/configuration/schemas/config.d.ts +121 -0
- package/dist/lib/configuration/schemas/config.d.ts.map +1 -0
- package/dist/lib/configuration/types/activated-config.d.ts +5 -0
- package/dist/lib/configuration/types/activated-config.d.ts.map +1 -0
- package/dist/lib/configuration/types/config-validation-result.d.ts +10 -0
- package/dist/lib/configuration/types/config-validation-result.d.ts.map +1 -0
- package/dist/lib/configuration/types/config.d.ts +25 -0
- package/dist/lib/configuration/types/config.d.ts.map +1 -0
- package/dist/lib/configuration/types/logger.d.ts +7 -0
- package/dist/lib/configuration/types/logger.d.ts.map +1 -0
- package/dist/lib/configuration/types/packages-ready-callback-props.d.ts +7 -0
- package/dist/lib/configuration/types/packages-ready-callback-props.d.ts.map +1 -0
- package/dist/lib/configuration/types/process-package-callback-props.d.ts +10 -0
- package/dist/lib/configuration/types/process-package-callback-props.d.ts.map +1 -0
- package/dist/lib/configuration/types/subprocess-callback.d.ts +2 -0
- package/dist/lib/configuration/types/subprocess-callback.d.ts.map +1 -0
- package/dist/lib/configuration/types/supported-config-type.d.ts +11 -0
- package/dist/lib/configuration/types/supported-config-type.d.ts.map +1 -0
- package/dist/lib/graph/functions/dfs-traverse-graph-paths.d.ts +3 -0
- package/dist/lib/graph/functions/dfs-traverse-graph-paths.d.ts.map +1 -0
- package/dist/lib/graph/functions/dfs-traverse-graph.d.ts +4 -0
- package/dist/lib/graph/functions/dfs-traverse-graph.d.ts.map +1 -0
- package/dist/lib/graph/functions/extract-subgraph.d.ts +3 -0
- package/dist/lib/graph/functions/extract-subgraph.d.ts.map +1 -0
- package/dist/lib/graph/functions/generate-graphs.d.ts +8 -0
- package/dist/lib/graph/functions/generate-graphs.d.ts.map +1 -0
- package/dist/lib/graph/functions/generate-package-circular-dependency-paths.d.ts +5 -0
- package/dist/lib/graph/functions/generate-package-circular-dependency-paths.d.ts.map +1 -0
- package/dist/lib/graph/functions/generate-topological-ranking-range.d.ts +3 -0
- package/dist/lib/graph/functions/generate-topological-ranking-range.d.ts.map +1 -0
- package/dist/lib/graph/functions/generate-topological-ranking.d.ts +2 -0
- package/dist/lib/graph/functions/generate-topological-ranking.d.ts.map +1 -0
- package/dist/lib/graph/functions/generate-topological-sorted-groups.d.ts +5 -0
- package/dist/lib/graph/functions/generate-topological-sorted-groups.d.ts.map +1 -0
- package/dist/lib/graph/functions/is-disjoint.d.ts +3 -0
- package/dist/lib/graph/functions/is-disjoint.d.ts.map +1 -0
- package/dist/lib/graph/functions/is-ranked-greater-than-or-equal.d.ts +3 -0
- package/dist/lib/graph/functions/is-ranked-greater-than-or-equal.d.ts.map +1 -0
- package/dist/lib/graph/functions/is-subgraph.d.ts +3 -0
- package/dist/lib/graph/functions/is-subgraph.d.ts.map +1 -0
- package/dist/lib/graph/types/package-graph.d.ts +3 -0
- package/dist/lib/graph/types/package-graph.d.ts.map +1 -0
- package/dist/lib/graph/types/package-graphs.d.ts +6 -0
- package/dist/lib/graph/types/package-graphs.d.ts.map +1 -0
- package/dist/lib/graph/types/package-node.d.ts +6 -0
- package/dist/lib/graph/types/package-node.d.ts.map +1 -0
- package/dist/lib/graph/types/package-order.d.ts +14 -0
- package/dist/lib/graph/types/package-order.d.ts.map +1 -0
- package/dist/lib/package/functions/load-packages.d.ts +4 -0
- package/dist/lib/package/functions/load-packages.d.ts.map +1 -0
- package/dist/lib/package/functions/parse-package.d.ts +3 -0
- package/dist/lib/package/functions/parse-package.d.ts.map +1 -0
- package/dist/lib/package/functions/scan-package-paths.d.ts +2 -0
- package/dist/lib/package/functions/scan-package-paths.d.ts.map +1 -0
- package/dist/lib/package/functions/scan-packages.d.ts +4 -0
- package/dist/lib/package/functions/scan-packages.d.ts.map +1 -0
- package/dist/lib/package/functions/update-package-version.d.ts +5 -0
- package/dist/lib/package/functions/update-package-version.d.ts.map +1 -0
- package/dist/lib/package/types/package-data.d.ts +11 -0
- package/dist/lib/package/types/package-data.d.ts.map +1 -0
- package/dist/lib/types/bump-package-version-options.d.ts +11 -0
- package/dist/lib/types/bump-package-version-options.d.ts.map +1 -0
- package/dist/lib/types/bump-version-type.d.ts +12 -0
- package/dist/lib/types/bump-version-type.d.ts.map +1 -0
- package/dist/lib/types/config-options.d.ts +5 -0
- package/dist/lib/types/config-options.d.ts.map +1 -0
- package/dist/lib/types/get-config-options.d.ts +5 -0
- package/dist/lib/types/get-config-options.d.ts.map +1 -0
- package/dist/lib/types/get-package-circular-dependency-paths-options.d.ts +6 -0
- package/dist/lib/types/get-package-circular-dependency-paths-options.d.ts.map +1 -0
- package/dist/lib/types/get-package-data-options.d.ts +4 -0
- package/dist/lib/types/get-package-data-options.d.ts.map +1 -0
- package/dist/lib/types/get-package-graph-options.d.ts +5 -0
- package/dist/lib/types/get-package-graph-options.d.ts.map +1 -0
- package/dist/lib/types/get-package-order-options.d.ts +5 -0
- package/dist/lib/types/get-package-order-options.d.ts.map +1 -0
- package/dist/lib/types/package-data-options.d.ts +5 -0
- package/dist/lib/types/package-data-options.d.ts.map +1 -0
- package/dist/lib/types/package-graphs-options.d.ts +5 -0
- package/dist/lib/types/package-graphs-options.d.ts.map +1 -0
- package/dist/lib/types/package-name-options.d.ts +4 -0
- package/dist/lib/types/package-name-options.d.ts.map +1 -0
- package/dist/lib/types/package-order-options.d.ts +5 -0
- package/dist/lib/types/package-order-options.d.ts.map +1 -0
- package/dist/lib/types/watch-packages-options.d.ts +6 -0
- package/dist/lib/types/watch-packages-options.d.ts.map +1 -0
- package/dist/lib/watch/functions/filter-files-modified-since.d.ts +2 -0
- package/dist/lib/watch/functions/filter-files-modified-since.d.ts.map +1 -0
- package/dist/lib/watch/functions/get-commands-for-shell.d.ts +2 -0
- package/dist/lib/watch/functions/get-commands-for-shell.d.ts.map +1 -0
- package/dist/lib/watch/functions/get-line-buffered-writer.d.ts +2 -0
- package/dist/lib/watch/functions/get-line-buffered-writer.d.ts.map +1 -0
- package/dist/lib/watch/functions/normalise-watched-file-path.d.ts +2 -0
- package/dist/lib/watch/functions/normalise-watched-file-path.d.ts.map +1 -0
- package/dist/lib/watch/functions/read-stream.d.ts +2 -0
- package/dist/lib/watch/functions/read-stream.d.ts.map +1 -0
- package/dist/lib/watch/functions/run-async.d.ts +3 -0
- package/dist/lib/watch/functions/run-async.d.ts.map +1 -0
- package/dist/lib/watch/functions/run-subprocess.d.ts +11 -0
- package/dist/lib/watch/functions/run-subprocess.d.ts.map +1 -0
- package/dist/lib/watch/functions/watch-package-changes.d.ts +8 -0
- package/dist/lib/watch/functions/watch-package-changes.d.ts.map +1 -0
- package/dist/lib/watch/types/change-action.d.ts +8 -0
- package/dist/lib/watch/types/change-action.d.ts.map +1 -0
- package/dist/lib/watch/types/exit-state.d.ts +8 -0
- package/dist/lib/watch/types/exit-state.d.ts.map +1 -0
- package/dist/lib/watch/types/package-changes.d.ts +2 -0
- package/dist/lib/watch/types/package-changes.d.ts.map +1 -0
- package/dist/lib/watch/types/run-async-type.d.ts +7 -0
- package/dist/lib/watch/types/run-async-type.d.ts.map +1 -0
- package/dist/lib/watch/types/spawn-options.d.ts +4 -0
- package/dist/lib/watch/types/spawn-options.d.ts.map +1 -0
- package/dist/lib/watch/types/std-type.d.ts +7 -0
- package/dist/lib/watch/types/std-type.d.ts.map +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-action.d.ts","sourceRoot":"","sources":["../../../../src/lib/watch/types/change-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ValueOf } from '@package-pal/util';
|
|
2
|
+
export declare const ExitState: {
|
|
3
|
+
readonly Completed: "Completed";
|
|
4
|
+
readonly Errored: "Errored";
|
|
5
|
+
readonly Cancelled: "Cancelled";
|
|
6
|
+
};
|
|
7
|
+
export type ExitState = ValueOf<typeof ExitState>;
|
|
8
|
+
//# sourceMappingURL=exit-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exit-state.d.ts","sourceRoot":"","sources":["../../../../src/lib/watch/types/exit-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,SAAS;;;;CAIZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-changes.d.ts","sourceRoot":"","sources":["../../../../src/lib/watch/types/package-changes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ValueOf } from '@package-pal/util';
|
|
2
|
+
export declare const RunAsyncType: {
|
|
3
|
+
readonly Sequential: "Sequential";
|
|
4
|
+
readonly Parallel: "Parallel";
|
|
5
|
+
};
|
|
6
|
+
export type RunAsyncType = ValueOf<typeof RunAsyncType>;
|
|
7
|
+
//# sourceMappingURL=run-async-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-async-type.d.ts","sourceRoot":"","sources":["../../../../src/lib/watch/types/run-async-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Prettify } from '@package-pal/util';
|
|
2
|
+
import type { SpawnOptions } from 'bun';
|
|
3
|
+
export type SpawnOptions<In extends SpawnOptions.Writable = 'ignore', Out extends SpawnOptions.Readable = 'pipe', Err extends SpawnOptions.Readable = 'inherit'> = Prettify<Omit<SpawnOptions.OptionsObject<In, Out, Err>, 'signal' | 'stdio' | 'stdout' | 'stderr'>>;
|
|
4
|
+
//# sourceMappingURL=spawn-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spawn-options.d.ts","sourceRoot":"","sources":["../../../../src/lib/watch/types/spawn-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAExC,MAAM,MAAM,YAAY,CACvB,EAAE,SAAS,YAAY,CAAC,QAAQ,GAAG,QAAQ,EAC3C,GAAG,SAAS,YAAY,CAAC,QAAQ,GAAG,MAAM,EAC1C,GAAG,SAAS,YAAY,CAAC,QAAQ,GAAG,SAAS,IAC1C,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"std-type.d.ts","sourceRoot":"","sources":["../../../../src/lib/watch/types/std-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,OAAO;;;CAGV,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@package-pal/core",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Core PackagePal functionality.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"package",
|
|
7
|
+
"pal",
|
|
8
|
+
"monorepo",
|
|
9
|
+
"dependencies",
|
|
10
|
+
"deps",
|
|
11
|
+
"core"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/bun": "^1.2.19",
|
|
26
|
+
"@types/semver": "^7.7.0",
|
|
27
|
+
"typescript": "^5.8.3"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@package-pal/util": "0.0.1",
|
|
31
|
+
"semver": "^7.7.2",
|
|
32
|
+
"zod": "^4.0.8",
|
|
33
|
+
"yoctocolors": "^2.1.1"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"clean": "rimraf dist && rimraf ../../.tsbuild/core",
|
|
37
|
+
"build": "bun run clean && bun build ./src/index.ts --outdir ./dist --target bun --format=esm --sourcemap=linked --packages=external && bun run build:declaration",
|
|
38
|
+
"build:declaration": "tsc --project tsconfig.lib.json"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"bun": ">=1.2.0"
|
|
42
|
+
},
|
|
43
|
+
"sideEffects": false
|
|
44
|
+
}
|