frameworkpackages

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package frameworkpackages publishes the framework's unpublished frontend workspaces into a generated project for local dogfood testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(frameworkRoot, projectRoot, version string) error

Publish copies source packages into ignored directories covered by the generated project's .ridu/packages/* workspace. This gives Bun one physical instance of each package, matching the identity guarantees of a published dependency graph while keeping dependency declarations release-shaped and repository-only framework plumbing out of the user's project tree.

Types

type Snapshot added in v0.2.0

type Snapshot struct {
	// contains filtered or unexported fields
}

Snapshot owns a private copy of freshly built runtime packages and their source companions. It can populate several independent applications without rebuilding or observing subsequent changes to the checkout. Call Close after the last copy.

func Prepare added in v0.2.0

func Prepare(frameworkRoot string) (*Snapshot, error)

Prepare always builds current runtime sources; existing dist directories are never treated as freshness evidence. It then captures the complete package graph.

func (*Snapshot) Close added in v0.2.0

func (snapshot *Snapshot) Close() error

Close removes the private snapshot. Published applications own independent copies.

func (*Snapshot) Publish added in v0.2.0

func (snapshot *Snapshot) Publish(projectRoot, version string) error

Publish replaces only the application's framework-owned package workspace.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL