@decohere/forge 0.0.1-dev.15 → 0.0.1-dev.17

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.
@@ -0,0 +1,9 @@
1
+ import type { Action } from "@decohere/nexus/cli";
2
+ import { ActionResponse } from "@decohere/nexus/cli";
3
+ export type UnlinkOptions = {
4
+ targetDir: string;
5
+ };
6
+ export declare class Unlink implements Action<UnlinkOptions> {
7
+ #private;
8
+ run: (options: UnlinkOptions) => Promise<ActionResponse>;
9
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./build.command.js";
2
2
  export * from "./dependency.command.js";
3
3
  export * from "./forge.command.js";
4
+ export * from "./link.command.js";
4
5
  export * from "./publish.command.js";
5
6
  export * from "./tag.command.js";
6
7
  export * from "./version.command.js";
@@ -0,0 +1,28 @@
1
+ import type { CommandHandler, MergeOptions } from "@decohere/nexus/cli";
2
+ import { CommandResponse, DecohereCommand } from "@decohere/nexus/cli";
3
+ import { Build } from "../actions/build.action.js";
4
+ import { Clean } from "../actions/clean.action.js";
5
+ import { Copy } from "../actions/copy.action.js";
6
+ import { Link } from "../actions/link.action.js";
7
+ import { Unlink } from "../actions/unlink.action.js";
8
+ import { Watch } from "../actions/watch.action.js";
9
+ export type LinkActions = {
10
+ clean: Clean;
11
+ build: Build;
12
+ copy: Copy;
13
+ link: Link;
14
+ watch: Watch;
15
+ };
16
+ type UnlinkActions = {
17
+ unlink: Unlink;
18
+ };
19
+ export declare class LinkCommand extends DecohereCommand<LinkActions> {
20
+ get actions(): (typeof Build | typeof Clean | typeof Copy | typeof Link | typeof Watch)[];
21
+ constructor(name?: string);
22
+ run: (actions: LinkActions, options: MergeOptions<LinkActions>) => Promise<CommandResponse<LinkActions>>;
23
+ }
24
+ export declare class UnlinkCommand extends DecohereCommand<UnlinkActions> {
25
+ get actions(): (typeof Unlink)[];
26
+ constructor(name?: string, handler?: CommandHandler);
27
+ }
28
+ export {};
@@ -18,6 +18,8 @@ export declare class ForgeModule extends ModuleManifest {
18
18
  version: typeof Actions.Version;
19
19
  tag: typeof Actions.Tag;
20
20
  commitFiles: typeof Actions.CommitFiles;
21
+ link: typeof Actions.Link;
22
+ unlink: typeof Actions.Unlink;
21
23
  };
22
24
  readonly commands: {
23
25
  build: typeof Commands.BuildCommand;
@@ -25,6 +27,8 @@ export declare class ForgeModule extends ModuleManifest {
25
27
  dependencies: typeof Commands.DependencyCommand;
26
28
  version: typeof Commands.VersionCommand;
27
29
  tag: typeof Commands.TagCommand;
30
+ link: typeof Commands.LinkCommand;
31
+ unlink: typeof Commands.UnlinkCommand;
28
32
  };
29
33
  registerServices(builder: ContainerBuilder): void;
30
34
  createWorkspace(options: WorkspaceFactoryOptions): Promise<import("@decohere/mesh").Workspace>;
@@ -6,4 +6,4 @@ export type { BuildTarget, TranspileTarget } from "./types/build-target.type.js"
6
6
  export { BuildTargets } from "./types/build-target.type.js";
7
7
  export type { ForgeConfiguration } from "./types/configuration.type.js";
8
8
  export type { WorkspaceOptions } from "./types/workspace-config.type.js";
9
- export { Debug as DebugConfiguration, DefaultConfigurations, Release as ReleaseConfiguration, WorkspaceDefaults, } from "./workspace.config.js";
9
+ export { Debug as DebugConfiguration, DefaultConfigurations, Link as LinkConfiguration, Release as ReleaseConfiguration, WorkspaceDefaults, } from "./workspace.config.js";
@@ -2,5 +2,11 @@ import type { ForgeConfiguration } from "./types/configuration.type.js";
2
2
  import type { WorkspaceOptions } from "./types/workspace-config.type.js";
3
3
  export declare const Debug: ForgeConfiguration;
4
4
  export declare const Release: ForgeConfiguration;
5
+ /**
6
+ * Link configuration: unpacked JS + co-located type declarations.
7
+ * Intended for `forge link` — symlinked into a consumer's node_modules so that
8
+ * both runtime resolution and TypeScript find the same output directory.
9
+ */
10
+ export declare const Link: ForgeConfiguration;
5
11
  export declare const DefaultConfigurations: ForgeConfiguration[];
6
12
  export declare const WorkspaceDefaults: WorkspaceOptions;