@decohere/forge 0.0.1-dev.115 → 0.0.1-dev.117
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 +11 -11
- package/commonjs/src/actions/build.action.js +4 -4
- package/commonjs/src/actions/clean.action.js +4 -4
- package/commonjs/src/actions/commit.action.js +4 -4
- package/commonjs/src/actions/copy.action.js +5 -5
- package/commonjs/src/actions/dependency-report.action.js +4 -4
- package/commonjs/src/actions/dependency-sync.action.js +3 -3
- package/commonjs/src/actions/docker.action.js +5 -5
- package/commonjs/src/actions/link.action.js +3 -3
- package/commonjs/src/actions/package.action.js +5 -5
- package/commonjs/src/actions/paths.action.js +4 -4
- package/commonjs/src/actions/publish.action.js +4 -4
- package/commonjs/src/actions/sync-lock-file.action.js +2 -2
- package/commonjs/src/actions/tag.action.js +4 -4
- package/commonjs/src/actions/typecheck.action.js +4 -4
- package/commonjs/src/actions/unlink.action.js +1 -1
- package/commonjs/src/actions/version.action.js +5 -5
- package/commonjs/src/actions/watch.action.js +3 -3
- package/commonjs/src/commands/build.command.js +1 -1
- package/commonjs/src/commands/dependency.command.js +1 -1
- package/commonjs/src/commands/docker.command.js +1 -1
- package/commonjs/src/commands/forge.command.js +1 -1
- package/commonjs/src/commands/link.command.js +1 -1
- package/commonjs/src/commands/package.command.js +1 -1
- package/commonjs/src/commands/paths.command.js +1 -1
- package/commonjs/src/commands/publish.command.js +1 -1
- package/commonjs/src/commands/tag.command.js +1 -1
- package/commonjs/src/commands/typecheck.command.js +1 -1
- package/commonjs/src/commands/version.command.js +1 -1
- package/commonjs/src/create-workspace.js +5 -5
- package/commonjs/src/errors.js +2 -2
- package/commonjs/src/extensions/project.extensions.js +10 -10
- package/commonjs/src/factories/swc-config.factory.js +4 -4
- package/commonjs/src/forge.module.js +1 -1
- package/commonjs/src/packaging/dependency-pinner.service.js +1 -1
- package/commonjs/src/packaging/deployable.js +1 -1
- package/commonjs/src/packaging/import-graph.service.js +1 -1
- package/commonjs/src/packaging/release-exports.js +2 -2
- package/commonjs/src/packaging/ui-assets.js +1 -1
- package/commonjs/src/services/dependency-resolver.service.js +1 -1
- package/commonjs/src/services/file-writer.service.js +2 -2
- package/commonjs/src/services/output-cache.js +1 -1
- package/commonjs/src/services/swc-transpiler.js +5 -5
- package/commonjs/src/services/ts-program-host.js +2 -2
- package/commonjs/src/services/type-emission-program.js +1 -1
- package/commonjs/src/services/type-emitter.js +4 -4
- package/commonjs/src/vitest/forge-build.plugin.js +4 -4
- package/commonjs/src/workspace.config.js +2 -2
- package/es6/src/actions/build.action.js +3 -3
- package/es6/src/actions/clean.action.js +3 -3
- package/es6/src/actions/commit.action.js +3 -3
- package/es6/src/actions/copy.action.js +4 -4
- package/es6/src/actions/dependency-report.action.js +3 -3
- package/es6/src/actions/dependency-sync.action.js +2 -2
- package/es6/src/actions/docker.action.js +4 -4
- package/es6/src/actions/link.action.js +2 -2
- package/es6/src/actions/package.action.js +4 -4
- package/es6/src/actions/paths.action.js +2 -2
- package/es6/src/actions/publish.action.js +3 -3
- package/es6/src/actions/sync-lock-file.action.js +2 -2
- package/es6/src/actions/tag.action.js +3 -3
- package/es6/src/actions/typecheck.action.js +3 -3
- package/es6/src/actions/unlink.action.js +1 -1
- package/es6/src/actions/version.action.js +4 -4
- package/es6/src/actions/watch.action.js +2 -2
- package/es6/src/commands/build.command.js +1 -1
- package/es6/src/commands/dependency.command.js +1 -1
- package/es6/src/commands/docker.command.js +1 -1
- package/es6/src/commands/forge.command.js +1 -1
- package/es6/src/commands/link.command.js +1 -1
- package/es6/src/commands/package.command.js +1 -1
- package/es6/src/commands/paths.command.js +1 -1
- package/es6/src/commands/publish.command.js +1 -1
- package/es6/src/commands/tag.command.js +1 -1
- package/es6/src/commands/typecheck.command.js +1 -1
- package/es6/src/commands/version.command.js +1 -1
- package/es6/src/create-workspace.js +1 -1
- package/es6/src/errors.js +1 -1
- package/es6/src/extensions/project.extensions.js +4 -4
- package/es6/src/factories/swc-config.factory.js +3 -3
- package/es6/src/forge.module.js +1 -1
- package/es6/src/packaging/dependency-pinner.service.js +1 -1
- package/es6/src/packaging/deployable.js +1 -1
- package/es6/src/packaging/import-graph.service.js +1 -1
- package/es6/src/packaging/release-exports.js +1 -1
- package/es6/src/packaging/ui-assets.js +1 -1
- package/es6/src/services/dependency-resolver.service.js +1 -1
- package/es6/src/services/file-writer.service.js +2 -2
- package/es6/src/services/output-cache.js +1 -1
- package/es6/src/services/swc-transpiler.js +4 -4
- package/es6/src/services/ts-program-host.js +2 -2
- package/es6/src/services/type-emission-program.js +1 -1
- package/es6/src/services/type-emitter.js +4 -4
- package/es6/src/vitest/forge-build.plugin.js +2 -2
- package/es6/src/workspace.config.js +1 -1
- package/package.json +5 -5
- package/types/src/actions/build.action.d.ts +4 -4
- package/types/src/actions/clean.action.d.ts +3 -3
- package/types/src/actions/commit.action.d.ts +3 -3
- package/types/src/actions/copy.action.d.ts +3 -3
- package/types/src/actions/dependency-report.action.d.ts +3 -3
- package/types/src/actions/dependency-sync.action.d.ts +3 -3
- package/types/src/actions/docker.action.d.ts +3 -3
- package/types/src/actions/link.action.d.ts +3 -3
- package/types/src/actions/package.action.d.ts +3 -3
- package/types/src/actions/paths.action.d.ts +4 -4
- package/types/src/actions/publish.action.d.ts +4 -4
- package/types/src/actions/sync-lock-file.action.d.ts +2 -2
- package/types/src/actions/tag.action.d.ts +3 -3
- package/types/src/actions/typecheck.action.d.ts +3 -3
- package/types/src/actions/unlink.action.d.ts +2 -2
- package/types/src/actions/version.action.d.ts +4 -4
- package/types/src/actions/watch.action.d.ts +3 -3
- package/types/src/commands/build.command.d.ts +2 -2
- package/types/src/commands/dependency.command.d.ts +2 -2
- package/types/src/commands/docker.command.d.ts +1 -1
- package/types/src/commands/forge.command.d.ts +2 -2
- package/types/src/commands/link.command.d.ts +2 -2
- package/types/src/commands/package.command.d.ts +1 -1
- package/types/src/commands/paths.command.d.ts +1 -1
- package/types/src/commands/publish.command.d.ts +1 -1
- package/types/src/commands/tag.command.d.ts +1 -1
- package/types/src/commands/typecheck.command.d.ts +1 -1
- package/types/src/commands/version.command.d.ts +1 -1
- package/types/src/create-workspace.d.ts +2 -2
- package/types/src/errors.d.ts +1 -1
- package/types/src/extensions/project.extensions.d.ts +2 -2
- package/types/src/factories/swc-config.factory.d.ts +1 -1
- package/types/src/forge.module.d.ts +4 -4
- package/types/src/packaging/dependency-pinner.service.d.ts +1 -1
- package/types/src/packaging/deployable.d.ts +1 -1
- package/types/src/packaging/import-graph.service.d.ts +1 -1
- package/types/src/packaging/release-exports.d.ts +1 -1
- package/types/src/packaging/ui-assets.d.ts +1 -1
- package/types/src/services/dependency-resolver.service.d.ts +1 -1
- package/types/src/services/file-writer.service.d.ts +1 -1
- package/types/src/services/incremental-watch.d.ts +1 -1
- package/types/src/services/swc-transpiler.d.ts +2 -2
- package/types/src/services/ts-program-host.d.ts +1 -1
- package/types/src/services/type-emission-program.d.ts +2 -2
- package/types/src/services/type-emitter.d.ts +3 -3
- package/types/src/types/configuration.type.d.ts +1 -1
- package/types/src/types/dependency.types.d.ts +1 -1
- package/types/src/types/swc-config.type.d.ts +1 -1
- package/types/src/types/transform-response.model.d.ts +2 -2
- package/types/src/types/transformer.type.d.ts +2 -2
- package/types/src/types/workspace-config.type.d.ts +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import { findWorkspaceRoot, UserConfigFactory, WORKSPACE_CONFIG, WorkspaceFactory } from "@decohere/
|
|
2
|
+
import { findWorkspaceRoot, UserConfigFactory, WORKSPACE_CONFIG, WorkspaceFactory } from "@decohere/workspace";
|
|
3
3
|
import { DefaultConfigurations, WorkspaceDefaults } from "./workspace.config.js";
|
|
4
4
|
/**
|
|
5
5
|
* The workspace every Decohere tool sees (forge, the flux CLI and `flux.run`): forge's
|
package/es6/src/errors.js
CHANGED
|
@@ -9,10 +9,10 @@ function _ts_metadata(k, v) {
|
|
|
9
9
|
}
|
|
10
10
|
import fs from "node:fs";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import { Project } from "@decohere/
|
|
13
|
-
import { memoize } from "@decohere/
|
|
14
|
-
import { extension } from "@decohere/
|
|
15
|
-
import { io } from "@decohere/
|
|
12
|
+
import { Project } from "@decohere/workspace";
|
|
13
|
+
import { memoize } from "@decohere/core/caching";
|
|
14
|
+
import { extension } from "@decohere/core/extensibility";
|
|
15
|
+
import { io } from "@decohere/core/io";
|
|
16
16
|
import { SWC_CONFIG } from "../const.js";
|
|
17
17
|
import { SwcConfig } from "../types/swc-config.type.js";
|
|
18
18
|
export class ProjectExtensions {
|
|
@@ -5,9 +5,9 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
}
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import { packageAliases } from "@decohere/
|
|
9
|
-
import { Trace } from "@decohere/
|
|
10
|
-
import { merge } from "@decohere/
|
|
8
|
+
import { packageAliases } from "@decohere/workspace";
|
|
9
|
+
import { Trace } from "@decohere/core/diagnostics";
|
|
10
|
+
import { merge } from "@decohere/core/objects";
|
|
11
11
|
import { ForgeError } from "../errors.js";
|
|
12
12
|
const defaultOptions = {
|
|
13
13
|
jsc: {
|
package/es6/src/forge.module.js
CHANGED
|
@@ -6,7 +6,7 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
6
6
|
}
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { injectable } from "@decohere/crucible/decorators";
|
|
9
|
-
import { io } from "@decohere/
|
|
9
|
+
import { io } from "@decohere/core/io";
|
|
10
10
|
import { ForgeError } from "../errors.js";
|
|
11
11
|
export class DependencyPinner {
|
|
12
12
|
async pin(imported, shipped, projects, workspaceRoot) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import { io } from "@decohere/
|
|
2
|
+
import { io } from "@decohere/core/io";
|
|
3
3
|
/** Where `forge package` writes a deployable's output: inside the project, the Docker build context. */ export const PACKAGE_DIR = ".package";
|
|
4
4
|
/**
|
|
5
5
|
* A deployable is a project with a Dockerfile: `docker.dockerfile` from `.decohere.js`,
|
|
@@ -6,7 +6,7 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
6
6
|
}
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { injectable } from "@decohere/crucible/decorators";
|
|
9
|
-
import { io } from "@decohere/
|
|
9
|
+
import { io } from "@decohere/core/io";
|
|
10
10
|
import { scribe } from "@decohere/scribe";
|
|
11
11
|
import { parseImports } from "parse-imports";
|
|
12
12
|
import { BUILT_IN_MODULES } from "../const.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sourceExtensions } from "@decohere/
|
|
1
|
+
import { sourceExtensions } from "@decohere/workspace";
|
|
2
2
|
const ES6_PREFIX = "./es6/";
|
|
3
3
|
/** Condition names that can point at runnable ESM, most specific first. `types` never does. */ const RUNTIME_CONDITIONS = [
|
|
4
4
|
"import",
|
|
@@ -5,7 +5,7 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
}
|
|
7
7
|
import { injectable } from "@decohere/crucible/decorators";
|
|
8
|
-
import { io } from "@decohere/
|
|
8
|
+
import { io } from "@decohere/core/io";
|
|
9
9
|
import { parseImports } from "parse-imports";
|
|
10
10
|
import { BUILT_IN_MODULES } from "../const.js";
|
|
11
11
|
import { ForgeError } from "../errors.js";
|
|
@@ -6,8 +6,8 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
6
6
|
}
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import { injectable } from "@decohere/crucible/decorators";
|
|
9
|
-
import { Trace } from "@decohere/
|
|
10
|
-
import { io } from "@decohere/
|
|
9
|
+
import { Trace } from "@decohere/core/diagnostics";
|
|
10
|
+
import { io } from "@decohere/core/io";
|
|
11
11
|
import "../extensions/project.extensions.js";
|
|
12
12
|
const DEFAULT_WRITE_CONCURRENCY = 16;
|
|
13
13
|
export class FileWriterService {
|
|
@@ -8,10 +8,10 @@ function _ts_metadata(k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
}
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import { sourceExtensions } from "@decohere/
|
|
12
|
-
import { cache, invalidateCache } from "@decohere/
|
|
13
|
-
import { Trace } from "@decohere/
|
|
14
|
-
import { io } from "@decohere/
|
|
11
|
+
import { sourceExtensions } from "@decohere/workspace";
|
|
12
|
+
import { cache, invalidateCache } from "@decohere/core/caching";
|
|
13
|
+
import { Trace } from "@decohere/core/diagnostics";
|
|
14
|
+
import { io } from "@decohere/core/io";
|
|
15
15
|
import { transform, transformSync } from "@swc/core";
|
|
16
16
|
import { BuildTargets } from "../types/build-target.type.js";
|
|
17
17
|
import "../extensions/project.extensions.js";
|
|
@@ -8,8 +8,8 @@ function _ts_metadata(k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
}
|
|
10
10
|
import fs from "node:fs";
|
|
11
|
-
import { cache } from "@decohere/
|
|
12
|
-
import { Trace } from "@decohere/
|
|
11
|
+
import { cache } from "@decohere/core/caching";
|
|
12
|
+
import { Trace } from "@decohere/core/diagnostics";
|
|
13
13
|
import { createCompilerHost, createProgram } from "typescript";
|
|
14
14
|
import { DEFAULT_TYPE_EMITTER_OPTIONS, REQUIRED_TYPE_EMITTER_OPTIONS } from "./type-emitter.js";
|
|
15
15
|
export class TsProgramHost {
|
|
@@ -8,7 +8,7 @@ function _ts_metadata(k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
}
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import { Trace } from "@decohere/
|
|
11
|
+
import { Trace } from "@decohere/core/diagnostics";
|
|
12
12
|
import ts from "typescript";
|
|
13
13
|
import { TransformResponse } from "../types/transform-response.model.js";
|
|
14
14
|
export class TypeEmissionProgram {
|
|
@@ -7,9 +7,9 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
7
7
|
function _ts_metadata(k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
}
|
|
10
|
-
import { invalidateCache } from "@decohere/
|
|
11
|
-
import { Trace } from "@decohere/
|
|
12
|
-
import { io } from "@decohere/
|
|
10
|
+
import { invalidateCache } from "@decohere/core/caching";
|
|
11
|
+
import { Trace } from "@decohere/core/diagnostics";
|
|
12
|
+
import { io } from "@decohere/core/io";
|
|
13
13
|
import "../extensions/project.extensions.js";
|
|
14
14
|
import { IncrementalWatch } from "./incremental-watch.js";
|
|
15
15
|
import { OutputCache } from "./output-cache.js";
|
|
@@ -80,7 +80,7 @@ export class TypeEmitter {
|
|
|
80
80
|
return responses;
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* Type-check projects without emitting files. Includes every
|
|
83
|
+
* Type-check projects without emitting files. Includes every workspace project, not
|
|
84
84
|
* only those with a `types` build target (debug is es6-only).
|
|
85
85
|
*/ async checkProject(projectArrayLike) {
|
|
86
86
|
const programs = await this.preparePrograms(projectArrayLike, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { sourceExtensions, WorkspaceFactory } from "@decohere/
|
|
4
|
-
import { FileEx } from "@decohere/
|
|
3
|
+
import { sourceExtensions, WorkspaceFactory } from "@decohere/workspace";
|
|
4
|
+
import { FileEx } from "@decohere/core/io";
|
|
5
5
|
import { ConsoleAdapter, scribe } from "@decohere/scribe";
|
|
6
6
|
import { SwcTranspiler } from "../services/swc-transpiler.js";
|
|
7
7
|
import { BuildTargets } from "../types/build-target.type.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decohere/forge",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.117",
|
|
4
4
|
"description": "TypeScript monorepo build system — zero config, fast compilation, streamlined developer workflow",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@decohere/
|
|
33
|
-
"@decohere/
|
|
34
|
-
"@decohere/
|
|
35
|
-
"@decohere/
|
|
32
|
+
"@decohere/core": "0.0.1-dev.117",
|
|
33
|
+
"@decohere/crucible": "0.0.1-dev.117",
|
|
34
|
+
"@decohere/scribe": "0.0.1-dev.117",
|
|
35
|
+
"@decohere/workspace": "0.0.1-dev.117",
|
|
36
36
|
"@swc/core": "^1.11.11",
|
|
37
37
|
"async": "^3.2.6",
|
|
38
38
|
"parse-imports": "^2.2.1",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Project } from "@decohere/
|
|
2
|
-
import { Workspace } from "@decohere/
|
|
3
|
-
import type { Action } from "@decohere/
|
|
4
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import type { Project } from "@decohere/workspace";
|
|
2
|
+
import { Workspace } from "@decohere/workspace";
|
|
3
|
+
import type { Action } from "@decohere/core/cli";
|
|
4
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
5
5
|
import { FileWriterService } from "../services/file-writer.service.js";
|
|
6
6
|
import type { TransformResponse } from "../types/transform-response.model.js";
|
|
7
7
|
import { type Transformer } from "../types/transformer.type.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
4
|
export type CleanOptions = {
|
|
5
5
|
clean: boolean;
|
|
6
6
|
configuration: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
4
|
export type CommitFilesOptions = {
|
|
5
5
|
configuration?: string;
|
|
6
6
|
commit?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
4
|
export type CopyOptions = {
|
|
5
5
|
copy: boolean;
|
|
6
6
|
configuration: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
4
|
import { DependencyResolver } from "../services/dependency-resolver.service.js";
|
|
5
5
|
import type { DependencyWarning, DriftEntry } from "../types/dependency.types.js";
|
|
6
6
|
type ReportOptions = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
4
|
import { DependencyResolver } from "../services/dependency-resolver.service.js";
|
|
5
5
|
import type { SyncprojectResult } from "../types/dependency.types.js";
|
|
6
6
|
export type DependenciesOptions = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action, ResultStatus } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action, ResultStatus } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
4
|
export type DockerOptions = {
|
|
5
5
|
configuration: string;
|
|
6
6
|
dryRun?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
4
|
import "../extensions/project.extensions.js";
|
|
5
5
|
export declare const LINK_MANIFEST = ".forge-link.json";
|
|
6
6
|
export type LinkOptions = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action, ResultStatus } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action, ResultStatus } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
4
|
import { DependencyPinner } from "../packaging/dependency-pinner.service.js";
|
|
5
5
|
import { ImportGraph } from "../packaging/import-graph.service.js";
|
|
6
6
|
export type PackageOptions = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
4
|
export declare const PATHS_FILE = "tsconfig.paths.json";
|
|
5
5
|
export type PathsOptions = {
|
|
6
6
|
/** Fail if the file is missing or out of date, instead of writing it. */
|
|
@@ -14,7 +14,7 @@ export type PathsResponse = {
|
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Writes `tsconfig.paths.json`: tsconfig `paths` for every workspace package and the subpaths it
|
|
17
|
-
* exports, from
|
|
17
|
+
* exports, from the workspace aliases (#518). Without `node_modules` links, `tsc` finds workspace
|
|
18
18
|
* packages only through `paths`; generating them keeps them in step with what Flux, the Vitest
|
|
19
19
|
* plugin and builds resolve. The root tsconfig extends the file.
|
|
20
20
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Project } from "@decohere/
|
|
2
|
-
import { Workspace } from "@decohere/
|
|
3
|
-
import type { Action, ResultStatus } from "@decohere/
|
|
4
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import type { Project } from "@decohere/workspace";
|
|
2
|
+
import { Workspace } from "@decohere/workspace";
|
|
3
|
+
import type { Action, ResultStatus } from "@decohere/core/cli";
|
|
4
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
5
5
|
export type PublishOptions = {
|
|
6
6
|
configuration: string;
|
|
7
7
|
channel?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Action } from "@decohere/
|
|
2
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import type { Action } from "@decohere/core/cli";
|
|
2
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
3
3
|
export type SyncLockFileOptions = {
|
|
4
4
|
sync?: boolean;
|
|
5
5
|
dryRun?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
4
|
export type TagOptions = {
|
|
5
5
|
prefix?: string;
|
|
6
6
|
dryRun?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
4
|
import { TypeEmitter } from "../services/type-emitter.js";
|
|
5
5
|
export type TypeCheckOptions = {
|
|
6
6
|
configuration: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Action } from "@decohere/
|
|
2
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import type { Action } from "@decohere/core/cli";
|
|
2
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
3
3
|
export type UnlinkOptions = {
|
|
4
4
|
targetDir: string;
|
|
5
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action, ResultStatus } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
4
|
-
import { type VersionType } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action, ResultStatus } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
|
+
import { type VersionType } from "@decohere/core/semver";
|
|
5
5
|
export type VersionResponse = ResultStatus & {
|
|
6
6
|
name: string;
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace } from "@decohere/
|
|
2
|
-
import type { Action } from "@decohere/
|
|
3
|
-
import { ActionResponse } from "@decohere/
|
|
1
|
+
import { Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { Action } from "@decohere/core/cli";
|
|
3
|
+
import { ActionResponse } from "@decohere/core/cli";
|
|
4
4
|
export type WatchOptions = {
|
|
5
5
|
watch: boolean;
|
|
6
6
|
configuration: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MergeOptions } from "@decohere/
|
|
2
|
-
import { CommandResponse, DecohereCommand } from "@decohere/
|
|
1
|
+
import type { MergeOptions } from "@decohere/core/cli";
|
|
2
|
+
import { CommandResponse, DecohereCommand } from "@decohere/core/cli";
|
|
3
3
|
import type { Build } from "../actions/build.action.js";
|
|
4
4
|
import type { Clean } from "../actions/clean.action.js";
|
|
5
5
|
import type { Copy } from "../actions/copy.action.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CommandHandler } from "@decohere/
|
|
2
|
-
import { DecohereCommand } from "@decohere/
|
|
1
|
+
import type { CommandHandler } from "@decohere/core/cli";
|
|
2
|
+
import { DecohereCommand } from "@decohere/core/cli";
|
|
3
3
|
export declare class DependencyCommand extends DecohereCommand {
|
|
4
4
|
constructor(name?: string, handler?: CommandHandler);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Actions } from "@decohere/
|
|
2
|
-
import { type CommandHandler, type CommandResponse, type CommandType, DecohereCommand } from "@decohere/
|
|
1
|
+
import type { Actions } from "@decohere/core/cli";
|
|
2
|
+
import { type CommandHandler, type CommandResponse, type CommandType, DecohereCommand } from "@decohere/core/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/
|
|
2
|
-
import { CommandResponse, DecohereCommand } from "@decohere/
|
|
1
|
+
import type { CommandHandler, MergeOptions } from "@decohere/core/cli";
|
|
2
|
+
import { CommandResponse, DecohereCommand } from "@decohere/core/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/
|
|
1
|
+
import { DecohereCommand } from "@decohere/core/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/
|
|
1
|
+
import { DecohereCommand } from "@decohere/core/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,5 +1,5 @@
|
|
|
1
|
-
import { type Workspace } from "@decohere/
|
|
2
|
-
import type { WorkspaceFactoryOptions } from "@decohere/
|
|
1
|
+
import { type Workspace } from "@decohere/workspace";
|
|
2
|
+
import type { WorkspaceFactoryOptions } from "@decohere/core/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.
|
package/types/src/errors.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Project } from "@decohere/
|
|
1
|
+
import { Project } from "@decohere/workspace";
|
|
2
2
|
import type { ForgeConfiguration } from "../types/configuration.type.js";
|
|
3
3
|
import { SwcConfig } from "../types/swc-config.type.js";
|
|
4
|
-
declare module "@decohere/
|
|
4
|
+
declare module "@decohere/workspace" {
|
|
5
5
|
interface Project {
|
|
6
6
|
getForgeConfiguration(): ForgeConfiguration;
|
|
7
7
|
getSwcConfig(): Promise<SwcConfig>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FileEx } from "@decohere/
|
|
1
|
+
import type { FileEx } from "@decohere/core/io";
|
|
2
2
|
import type { Options } from "@swc/core";
|
|
3
3
|
import type { TranspileTarget } from "../types/build-target.type.js";
|
|
4
4
|
import type { SwcConfigOptions } from "../types/swc-config.type.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { WorkspaceFactoryOptions } from "@decohere/
|
|
2
|
-
import { ModuleManifest } from "@decohere/
|
|
3
|
-
import type { ContainerBuilder } from "@decohere/
|
|
1
|
+
import type { WorkspaceFactoryOptions } from "@decohere/core/cli";
|
|
2
|
+
import { ModuleManifest } from "@decohere/core/cli";
|
|
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";
|
|
6
6
|
export declare class ForgeModule extends ModuleManifest {
|
|
@@ -39,5 +39,5 @@ export declare class ForgeModule extends ModuleManifest {
|
|
|
39
39
|
unlink: typeof Commands.UnlinkCommand;
|
|
40
40
|
};
|
|
41
41
|
registerServices(builder: ContainerBuilder): void;
|
|
42
|
-
createWorkspace(options: WorkspaceFactoryOptions): Promise<import("@decohere/
|
|
42
|
+
createWorkspace(options: WorkspaceFactoryOptions): Promise<import("@decohere/workspace").Workspace>;
|
|
43
43
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PackageJson } from "@decohere/
|
|
1
|
+
import type { PackageJson } from "@decohere/workspace";
|
|
2
2
|
import type { ReachedPackages, ReleaseProject } from "./import-graph.service.js";
|
|
3
3
|
/**
|
|
4
4
|
* Chooses the third-party `dependencies` for the packaged `package.json`: the union of
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PackageJson } from "@decohere/
|
|
1
|
+
import type { PackageJson } from "@decohere/workspace";
|
|
2
2
|
/** A workspace project as the packager sees it: its manifest and its release build. */
|
|
3
3
|
export type ReleaseProject = {
|
|
4
4
|
/** The package name, e.g. `@app/kernel`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PackageJson } from "@decohere/
|
|
1
|
+
import { type PackageJson } from "@decohere/workspace";
|
|
2
2
|
/** Release `exports`: subpath (`.`, `./testing`) to a file path inside the release output. */
|
|
3
3
|
export type ReleaseExports = Record<string, string>;
|
|
4
4
|
/** `src/main.ts` becomes `src/main.js` (`.mts` `.mjs`, `.cts` `.cjs`), with any leading `./` dropped. */
|