@decohere/forge 0.0.1-dev.117 → 0.0.1-dev.119

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 (109) hide show
  1. package/commonjs/src/actions/build.action.js +2 -2
  2. package/commonjs/src/actions/clean.action.js +1 -1
  3. package/commonjs/src/actions/commit.action.js +2 -2
  4. package/commonjs/src/actions/copy.action.js +4 -3
  5. package/commonjs/src/actions/dependency-report.action.js +1 -1
  6. package/commonjs/src/actions/dependency-sync.action.js +1 -1
  7. package/commonjs/src/actions/docker.action.js +2 -2
  8. package/commonjs/src/actions/link.action.js +1 -1
  9. package/commonjs/src/actions/package.action.js +2 -2
  10. package/commonjs/src/actions/paths.action.js +1 -1
  11. package/commonjs/src/actions/publish.action.js +2 -2
  12. package/commonjs/src/actions/sync-lock-file.action.js +2 -2
  13. package/commonjs/src/actions/tag.action.js +2 -2
  14. package/commonjs/src/actions/typecheck.action.js +2 -2
  15. package/commonjs/src/actions/unlink.action.js +1 -1
  16. package/commonjs/src/actions/version.action.js +7 -7
  17. package/commonjs/src/actions/watch.action.js +1 -1
  18. package/commonjs/src/commands/build.command.js +1 -1
  19. package/commonjs/src/commands/dependency.command.js +1 -1
  20. package/commonjs/src/commands/docker.command.js +1 -1
  21. package/commonjs/src/commands/forge.command.js +1 -1
  22. package/commonjs/src/commands/link.command.js +1 -1
  23. package/commonjs/src/commands/package.command.js +1 -1
  24. package/commonjs/src/commands/paths.command.js +1 -1
  25. package/commonjs/src/commands/publish.command.js +1 -1
  26. package/commonjs/src/commands/tag.command.js +1 -1
  27. package/commonjs/src/commands/typecheck.command.js +1 -1
  28. package/commonjs/src/commands/version.command.js +1 -1
  29. package/commonjs/src/factories/swc-config.factory.js +1 -1
  30. package/commonjs/src/forge.module.js +1 -1
  31. package/commonjs/src/semver/index.js +18 -0
  32. package/commonjs/src/semver/semver.js +92 -0
  33. package/commonjs/src/services/file-writer.service.js +1 -1
  34. package/commonjs/src/services/swc-transpiler.js +3 -3
  35. package/commonjs/src/services/ts-program-host.js +1 -1
  36. package/commonjs/src/services/type-emission-program.js +1 -1
  37. package/commonjs/src/services/type-emitter.js +4 -4
  38. package/es6/src/actions/build.action.js +2 -2
  39. package/es6/src/actions/clean.action.js +1 -1
  40. package/es6/src/actions/commit.action.js +2 -2
  41. package/es6/src/actions/copy.action.js +4 -3
  42. package/es6/src/actions/dependency-report.action.js +1 -1
  43. package/es6/src/actions/dependency-sync.action.js +1 -1
  44. package/es6/src/actions/docker.action.js +2 -2
  45. package/es6/src/actions/link.action.js +1 -1
  46. package/es6/src/actions/package.action.js +2 -2
  47. package/es6/src/actions/paths.action.js +1 -1
  48. package/es6/src/actions/publish.action.js +2 -2
  49. package/es6/src/actions/sync-lock-file.action.js +2 -2
  50. package/es6/src/actions/tag.action.js +2 -2
  51. package/es6/src/actions/typecheck.action.js +2 -2
  52. package/es6/src/actions/unlink.action.js +1 -1
  53. package/es6/src/actions/version.action.js +3 -3
  54. package/es6/src/actions/watch.action.js +1 -1
  55. package/es6/src/commands/build.command.js +1 -1
  56. package/es6/src/commands/dependency.command.js +1 -1
  57. package/es6/src/commands/docker.command.js +1 -1
  58. package/es6/src/commands/forge.command.js +1 -1
  59. package/es6/src/commands/link.command.js +1 -1
  60. package/es6/src/commands/package.command.js +1 -1
  61. package/es6/src/commands/paths.command.js +1 -1
  62. package/es6/src/commands/publish.command.js +1 -1
  63. package/es6/src/commands/tag.command.js +1 -1
  64. package/es6/src/commands/typecheck.command.js +1 -1
  65. package/es6/src/commands/version.command.js +1 -1
  66. package/es6/src/factories/swc-config.factory.js +1 -1
  67. package/es6/src/forge.module.js +1 -1
  68. package/es6/src/semver/index.js +1 -0
  69. package/es6/src/semver/semver.js +71 -0
  70. package/es6/src/services/file-writer.service.js +1 -1
  71. package/es6/src/services/swc-transpiler.js +3 -3
  72. package/es6/src/services/ts-program-host.js +1 -1
  73. package/es6/src/services/type-emission-program.js +1 -1
  74. package/es6/src/services/type-emitter.js +4 -4
  75. package/package.json +6 -5
  76. package/types/src/actions/build.action.d.ts +2 -2
  77. package/types/src/actions/clean.action.d.ts +2 -2
  78. package/types/src/actions/commit.action.d.ts +2 -2
  79. package/types/src/actions/copy.action.d.ts +2 -2
  80. package/types/src/actions/dependency-report.action.d.ts +2 -2
  81. package/types/src/actions/dependency-sync.action.d.ts +2 -2
  82. package/types/src/actions/docker.action.d.ts +2 -2
  83. package/types/src/actions/link.action.d.ts +2 -2
  84. package/types/src/actions/package.action.d.ts +2 -2
  85. package/types/src/actions/paths.action.d.ts +2 -2
  86. package/types/src/actions/publish.action.d.ts +2 -2
  87. package/types/src/actions/sync-lock-file.action.d.ts +2 -2
  88. package/types/src/actions/tag.action.d.ts +2 -2
  89. package/types/src/actions/typecheck.action.d.ts +2 -2
  90. package/types/src/actions/unlink.action.d.ts +2 -2
  91. package/types/src/actions/version.action.d.ts +3 -3
  92. package/types/src/actions/watch.action.d.ts +2 -2
  93. package/types/src/commands/build.command.d.ts +2 -2
  94. package/types/src/commands/dependency.command.d.ts +2 -2
  95. package/types/src/commands/docker.command.d.ts +1 -1
  96. package/types/src/commands/forge.command.d.ts +2 -2
  97. package/types/src/commands/link.command.d.ts +2 -2
  98. package/types/src/commands/package.command.d.ts +1 -1
  99. package/types/src/commands/paths.command.d.ts +1 -1
  100. package/types/src/commands/publish.command.d.ts +1 -1
  101. package/types/src/commands/tag.command.d.ts +1 -1
  102. package/types/src/commands/typecheck.command.d.ts +1 -1
  103. package/types/src/commands/version.command.d.ts +1 -1
  104. package/types/src/create-workspace.d.ts +1 -1
  105. package/types/src/forge.module.d.ts +2 -2
  106. package/types/src/semver/index.d.ts +1 -0
  107. package/types/src/semver/semver.d.ts +18 -0
  108. package/types/src/types/dependency.types.d.ts +1 -1
  109. package/types/src/types/workspace-config.type.d.ts +1 -1
@@ -1,5 +1,5 @@
1
- import type { CommandHandler } from "@decohere/core/cli";
2
- import { DecohereCommand } from "@decohere/core/cli";
1
+ import type { CommandHandler } from "@decohere/devkit/cli";
2
+ import { DecohereCommand } from "@decohere/devkit/cli";
3
3
  export declare class DependencyCommand extends DecohereCommand {
4
4
  constructor(name?: string, handler?: CommandHandler);
5
5
  }
@@ -1,4 +1,4 @@
1
- import { DecohereCommand } from "@decohere/core/cli";
1
+ import { DecohereCommand } from "@decohere/devkit/cli";
2
2
  import { Docker } from "../actions/docker.action.js";
3
3
  export declare class DockerCommand extends DecohereCommand {
4
4
  get actions(): (typeof Docker)[];
@@ -1,5 +1,5 @@
1
- import type { Actions } from "@decohere/core/cli";
2
- import { type CommandHandler, type CommandResponse, type CommandType, DecohereCommand } from "@decohere/core/cli";
1
+ import type { Actions } from "@decohere/devkit/cli";
2
+ import { type CommandHandler, type CommandResponse, type CommandType, DecohereCommand } from "@decohere/devkit/cli";
3
3
  export declare class ForgeCommand extends DecohereCommand {
4
4
  constructor(commands: Record<string, CommandType>, handler: CommandHandler);
5
5
  run(_actions: Actions, _options: never): Promise<CommandResponse>;
@@ -1,5 +1,5 @@
1
- import type { CommandHandler, MergeOptions } from "@decohere/core/cli";
2
- import { CommandResponse, DecohereCommand } from "@decohere/core/cli";
1
+ import type { CommandHandler, MergeOptions } from "@decohere/devkit/cli";
2
+ import { CommandResponse, DecohereCommand } from "@decohere/devkit/cli";
3
3
  import { Build } from "../actions/build.action.js";
4
4
  import { Clean } from "../actions/clean.action.js";
5
5
  import { Copy } from "../actions/copy.action.js";
@@ -1,4 +1,4 @@
1
- import { DecohereCommand } from "@decohere/core/cli";
1
+ import { DecohereCommand } from "@decohere/devkit/cli";
2
2
  import { PackageDeployable } from "../actions/package.action.js";
3
3
  export declare class PackageCommand extends DecohereCommand {
4
4
  get actions(): (typeof PackageDeployable)[];
@@ -1,4 +1,4 @@
1
- import { DecohereCommand } from "@decohere/core/cli";
1
+ import { DecohereCommand } from "@decohere/devkit/cli";
2
2
  import { Paths } from "../actions/paths.action.js";
3
3
  export declare class PathsCommand extends DecohereCommand {
4
4
  get actions(): (typeof Paths)[];
@@ -1,4 +1,4 @@
1
- import { DecohereCommand } from "@decohere/core/cli";
1
+ import { DecohereCommand } from "@decohere/devkit/cli";
2
2
  import { Publish } from "../actions/publish.action.js";
3
3
  export declare class PublishCommand extends DecohereCommand {
4
4
  get actions(): (typeof Publish)[];
@@ -1,4 +1,4 @@
1
- import { DecohereCommand } from "@decohere/core/cli";
1
+ import { DecohereCommand } from "@decohere/devkit/cli";
2
2
  import { Tag } from "../actions/tag.action.js";
3
3
  export declare class TagCommand extends DecohereCommand {
4
4
  get actions(): (typeof Tag)[];
@@ -1,4 +1,4 @@
1
- import { DecohereCommand } from "@decohere/core/cli";
1
+ import { DecohereCommand } from "@decohere/devkit/cli";
2
2
  import { TypeCheck } from "../actions/typecheck.action.js";
3
3
  export declare class TypeCheckCommand extends DecohereCommand {
4
4
  get actions(): (typeof TypeCheck)[];
@@ -1,4 +1,4 @@
1
- import { DecohereCommand } from "@decohere/core/cli";
1
+ import { DecohereCommand } from "@decohere/devkit/cli";
2
2
  import { SyncLockFile } from "../actions/sync-lock-file.action.js";
3
3
  import { Version } from "../actions/version.action.js";
4
4
  type VersionActions = {
@@ -1,5 +1,5 @@
1
1
  import { type Workspace } from "@decohere/workspace";
2
- import type { WorkspaceFactoryOptions } from "@decohere/core/cli";
2
+ import type { WorkspaceFactoryOptions } from "@decohere/devkit/cli";
3
3
  /**
4
4
  * The workspace every Decohere tool sees (forge, the flux CLI and `flux.run`): forge's
5
5
  * defaults, the user's `.decohere.js`, and a root found by searching upward from cwd.
@@ -1,5 +1,5 @@
1
- import type { WorkspaceFactoryOptions } from "@decohere/core/cli";
2
- import { ModuleManifest } from "@decohere/core/cli";
1
+ import type { WorkspaceFactoryOptions } from "@decohere/devkit/cli";
2
+ import { ModuleManifest } from "@decohere/devkit/cli";
3
3
  import type { ContainerBuilder } from "@decohere/core/composition";
4
4
  import * as Actions from "./actions/index.js";
5
5
  import * as Commands from "./commands/index.js";
@@ -0,0 +1 @@
1
+ export * from "./semver.js";
@@ -0,0 +1,18 @@
1
+ export type VersionType = "major" | "minor" | "patch" | "prerelease";
2
+ export declare const VersionTypes: {
3
+ major: "major";
4
+ minor: "minor";
5
+ patch: "patch";
6
+ prerelease: "prerelease";
7
+ };
8
+ export declare class SemverError extends Error {
9
+ constructor(message: string);
10
+ }
11
+ export declare class Semver {
12
+ private version;
13
+ constructor(version: string);
14
+ increment(versionType: VersionType, preid?: string): Semver;
15
+ toString(): string;
16
+ private ensureValid;
17
+ private parse;
18
+ }
@@ -1,4 +1,4 @@
1
- import type { ResultStatus } from "@decohere/core/cli";
1
+ import type { ResultStatus } from "@decohere/devkit/cli";
2
2
  export type Package = {
3
3
  name: string;
4
4
  version?: string;
@@ -1,5 +1,5 @@
1
1
  import type { ProjectOptions as BaseProjectOptions, WorkspaceOptions as BaseWorkspaceOptions } from "@decohere/workspace";
2
- import type { Action, CommandType } from "@decohere/core/cli";
2
+ import type { Action, CommandType } from "@decohere/devkit/cli";
3
3
  import type { Constructable } from "@decohere/core/reflection";
4
4
  import type { ForgeConfiguration } from "./configuration.type.js";
5
5
  export type ProjectOptions = Omit<BaseProjectOptions, "configurations"> & {