@stacksjs/build 0.75.423 → 0.75.431
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/dist/dependency-layers.d.ts +6 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +104 -104
- package/dist/workspace.d.ts +10 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
# Stacks Build
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Shared Bun package build tooling, declaration validation and runtime export checks.
|
|
4
|
+
|
|
5
|
+
## Workspace builds
|
|
6
|
+
|
|
7
|
+
`buildWorkspacePackages(directories)` reads package names and runtime dependencies
|
|
8
|
+
from the selected manifests and builds providers before their consumers. Each
|
|
9
|
+
package runs once through its normal build script and keeps its declaration and
|
|
10
|
+
runtime export checks. Failed dependencies block their consumers; independent
|
|
11
|
+
packages still build and report failures. Cycles and duplicate package names fail
|
|
12
|
+
before any build starts.
|
|
13
|
+
|
|
14
|
+
`dependencyLayers(packages)` supplies the same stable ordering to framework
|
|
15
|
+
publication. Dependencies outside the selected set are resolved normally. Peer
|
|
16
|
+
dependencies do not order builds because optional integrations can form cycles.
|
|
17
|
+
|
|
18
|
+
`buddy build:core` preserves the application's feature selection. The release
|
|
19
|
+
workflow uses `.github/scripts/build-framework.ts` to select every buildable
|
|
20
|
+
public framework package, including the umbrella, regardless of app features.
|
|
4
21
|
|
|
5
22
|
## ☘️ Features
|
|
6
23
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Stable layers of selected packages, each after its declared dependencies. */
|
|
2
|
+
export declare function dependencyLayers<T extends DependencyPackage>(packages: readonly T[]): T[][];
|
|
3
|
+
export declare interface DependencyPackage {
|
|
4
|
+
name: string
|
|
5
|
+
dependencies: readonly string[]
|
|
6
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type { DependencyPackage } from './dependency-layers';
|
|
2
|
+
export type { WorkspaceBuildResult } from './workspace';
|
|
1
3
|
/**
|
|
2
4
|
* Parse every generated declaration before a package can report a successful
|
|
3
5
|
* build. The invalid emission shapes this used to repair (`method<T>: (…) => …`
|
|
@@ -66,3 +68,5 @@ export declare function transpilePackage(options: {
|
|
|
66
68
|
*/
|
|
67
69
|
export declare function rewriteRelativeTsSpecifiers(js: string): string;
|
|
68
70
|
export declare function frameworkExternal(extras?: string[]): string[];
|
|
71
|
+
export { dependencyLayers } from './dependency-layers';
|
|
72
|
+
export { buildWorkspacePackages, workspaceBuildTargets } from './workspace';
|