@effected/bundler 0.2.1 → 0.4.0
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/action/ActionBuilder.js +2 -2
- package/action/ActionBundle.js +14 -9
- package/action/ActionValidation.js +3 -2
- package/action/entries.js +5 -1
- package/config/ActionConfig.js +29 -4
- package/index.d.ts +33 -6
- package/index.js +2 -2
- package/meta/og-satori.js +1 -1
- package/package.json +19 -19
package/action/ActionBuilder.js
CHANGED
|
@@ -70,8 +70,8 @@ var ActionBuilder = class {
|
|
|
70
70
|
* It writes nothing to stdout; rendering belongs to the caller. A step that fails stops the ones after it, so an
|
|
71
71
|
* invalid action leaves `dist` as it was, and a failed build or size check persists nothing. In strict mode, set
|
|
72
72
|
* by `validation.strict` or else by running under CI, a warning fails like an error. With `validate` false, neither
|
|
73
|
-
* validation nor the size check runs. `build.importCheck`
|
|
74
|
-
* loads, per {@link ActionBundle.build}.
|
|
73
|
+
* validation nor the size check runs. `build.importCheck` and a worker's own `importCheck` alone decide whether each
|
|
74
|
+
* bundle is imported to prove it loads, per {@link ActionBundle.build}.
|
|
75
75
|
*
|
|
76
76
|
* Validation and persisting go through the provided `FileSystem`, while bundling always works on the real disk,
|
|
77
77
|
* because rolldown does. A memory filesystem therefore suits {@link ActionValidation} and {@link PersistLocal} tests,
|
package/action/ActionBundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { causeMessage } from "../internal/causeMessage.js";
|
|
2
2
|
import { BundleFailed, CleanError, WriteError } from "./ActionErrors.js";
|
|
3
|
-
import { DEFAULT_LIFECYCLE_ENTRIES, invalidWorkerName } from "./entries.js";
|
|
3
|
+
import { DEFAULT_LIFECYCLE_ENTRIES, invalidWorkerName, workerImportCheck, workerSource } from "./entries.js";
|
|
4
4
|
import { ignoreStubPlugin } from "./ignore-stub-plugin.js";
|
|
5
5
|
import { checkImport } from "./import-check.js";
|
|
6
6
|
import { Effect, FileSystem, Path, Schema } from "effect";
|
|
@@ -69,7 +69,8 @@ const entriesToBuild = Effect.fnUntraced(function* (config, cwd) {
|
|
|
69
69
|
});
|
|
70
70
|
const entries = [{
|
|
71
71
|
name: "main",
|
|
72
|
-
source: mainSource
|
|
72
|
+
source: mainSource,
|
|
73
|
+
importCheck: true
|
|
73
74
|
}];
|
|
74
75
|
for (const [name, explicit, fallback] of [[
|
|
75
76
|
"pre",
|
|
@@ -83,27 +84,30 @@ const entriesToBuild = Effect.fnUntraced(function* (config, cwd) {
|
|
|
83
84
|
const source = path.resolve(cwd, explicit ?? fallback);
|
|
84
85
|
if (yield* exists(source)) entries.push({
|
|
85
86
|
name,
|
|
86
|
-
source
|
|
87
|
+
source,
|
|
88
|
+
importCheck: true
|
|
87
89
|
});
|
|
88
90
|
else if (explicit !== void 0) return yield* new BundleFailed({
|
|
89
91
|
entry: name,
|
|
90
92
|
cause: /* @__PURE__ */ new Error(`Entry point not found: ${explicit}`)
|
|
91
93
|
});
|
|
92
94
|
}
|
|
93
|
-
for (const [name,
|
|
95
|
+
for (const [name, worker] of Object.entries(workers)) {
|
|
96
|
+
const source = workerSource(worker);
|
|
94
97
|
const reason = invalidWorkerName(name);
|
|
95
98
|
if (reason !== void 0) return yield* new BundleFailed({
|
|
96
99
|
entry: name,
|
|
97
100
|
cause: new Error(reason)
|
|
98
101
|
});
|
|
99
|
-
const
|
|
100
|
-
if (!(yield* exists(
|
|
102
|
+
const resolved = path.resolve(cwd, source);
|
|
103
|
+
if (!(yield* exists(resolved))) return yield* new BundleFailed({
|
|
101
104
|
entry: name,
|
|
102
105
|
cause: /* @__PURE__ */ new Error(`Worker entry point not found: ${source}`)
|
|
103
106
|
});
|
|
104
107
|
entries.push({
|
|
105
108
|
name,
|
|
106
|
-
source:
|
|
109
|
+
source: resolved,
|
|
110
|
+
importCheck: workerImportCheck(worker)
|
|
107
111
|
});
|
|
108
112
|
}
|
|
109
113
|
return entries;
|
|
@@ -153,7 +157,7 @@ const bundleEntry = async (entry, config, cwd, out, signal) => {
|
|
|
153
157
|
await build.close();
|
|
154
158
|
}
|
|
155
159
|
const { file } = out;
|
|
156
|
-
if (importCheck) {
|
|
160
|
+
if (importCheck && entry.importCheck) {
|
|
157
161
|
const verdict = await checkImport(file, {
|
|
158
162
|
externals,
|
|
159
163
|
signal
|
|
@@ -202,7 +206,8 @@ var ActionBundle = class {
|
|
|
202
206
|
* on when or where it is built.
|
|
203
207
|
*
|
|
204
208
|
* Each bundle is then imported in a fresh Node, because a bundle can build cleanly and not load. Set
|
|
205
|
-
* `build.importCheck = false` to skip that
|
|
209
|
+
* `build.importCheck = false` to skip that for every bundle, or `importCheck = false` in a worker's own table to
|
|
210
|
+
* skip it for that worker alone. The child has no `GITHUB_*` variable, token or `PATH`, and runs in a
|
|
206
211
|
* temporary directory, for at most a minute. An action's `GITHUB_ACTIONS` guard stays closed, but an action with no
|
|
207
212
|
* guard runs for real there. A failure asking for an input passes. A package listed in `build.externals` that is not
|
|
208
213
|
* installed passes with a warning on the entry, and the check learns nothing about the bundle past that import.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActionYml } from "./ActionYml.js";
|
|
2
|
-
import { invalidWorkerName } from "./entries.js";
|
|
2
|
+
import { invalidWorkerName, workerSource } from "./entries.js";
|
|
3
3
|
import { Effect, FileSystem, Option, Path, Result, Schema } from "effect";
|
|
4
4
|
import { RuntimeEnv } from "@effected/env";
|
|
5
5
|
import { Yaml } from "@effected/yaml";
|
|
@@ -122,7 +122,8 @@ const checkEntries = Effect.fnUntraced(function* (config, cwd) {
|
|
|
122
122
|
const { main, pre, post, workers } = config.entries;
|
|
123
123
|
if (!(yield* fs.exists(path.resolve(cwd, main)))) errors.push(issue("MAIN_ENTRY_MISSING", `Main entry point not found: ${main}`, main, "Create src/main.ts or specify a different path in config"));
|
|
124
124
|
for (const [name, source] of [["pre", pre], ["post", post]]) if (source !== void 0 && !(yield* fs.exists(path.resolve(cwd, source)))) errors.push(issue("ENTRY_FILE_MISSING", `The ${name} entry point was not found: ${source}`, source, `Create ${source} or remove entries.${name} from the config`));
|
|
125
|
-
for (const [name,
|
|
125
|
+
for (const [name, worker] of Object.entries(workers)) {
|
|
126
|
+
const source = workerSource(worker);
|
|
126
127
|
const reason = invalidWorkerName(name);
|
|
127
128
|
if (reason !== void 0) errors.push(issue("WORKER_ENTRY_INVALID_NAME", `Invalid worker name "${name}": ${reason}`));
|
|
128
129
|
else if (!(yield* fs.exists(path.resolve(cwd, source)))) errors.push(issue("WORKER_ENTRY_MISSING", `Worker entry point not found: ${source}`, source, `Create ${source} or specify a different path for the '${name}' worker`));
|
package/action/entries.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// src/action/entries.ts
|
|
2
|
+
/** A worker's source, whether it was written as a string or as a table. */
|
|
3
|
+
const workerSource = (worker) => typeof worker === "string" ? worker : worker.source;
|
|
4
|
+
/** Whether a worker's own table leaves its load check on, which a plain-string worker always does. */
|
|
5
|
+
const workerImportCheck = (worker) => typeof worker === "string" ? true : worker.importCheck;
|
|
2
6
|
/** The bundle names the action lifecycle owns, which a worker must not take. */
|
|
3
7
|
const RESERVED_ENTRY_NAMES = /* @__PURE__ */ new Set([
|
|
4
8
|
"main",
|
|
@@ -20,4 +24,4 @@ const DEFAULT_LIFECYCLE_ENTRIES = {
|
|
|
20
24
|
post: "src/post.ts"
|
|
21
25
|
};
|
|
22
26
|
|
|
23
|
-
export { DEFAULT_LIFECYCLE_ENTRIES, invalidWorkerName };
|
|
27
|
+
export { DEFAULT_LIFECYCLE_ENTRIES, invalidWorkerName, workerImportCheck, workerSource };
|
package/config/ActionConfig.js
CHANGED
|
@@ -2,6 +2,27 @@ import { Effect, Schema } from "effect";
|
|
|
2
2
|
|
|
3
3
|
// src/config/ActionConfig.ts
|
|
4
4
|
/**
|
|
5
|
+
* A worker written as a table, `[action.entries.workers.<name>]`, for a worker that needs more than its source.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* A worker given as a plain string is its source, with every setting at its default.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
var ActionWorker = class extends Schema.Class("ActionWorker")({
|
|
13
|
+
/** The worker's source, relative to the package. */
|
|
14
|
+
source: Schema.String,
|
|
15
|
+
/**
|
|
16
|
+
* Whether this worker's bundle is imported after the build to prove it loads.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* For a worker that refuses to start at import by design, such as one that exits when the configuration its
|
|
20
|
+
* action passes through the environment is missing. `[action.build] importCheck = false` still turns the check off
|
|
21
|
+
* for every bundle, this one included.
|
|
22
|
+
*/
|
|
23
|
+
importCheck: Schema.Boolean.pipe(Schema.withDecodingDefaultKey(Effect.succeed(true)))
|
|
24
|
+
}) {};
|
|
25
|
+
/**
|
|
5
26
|
* The bundles a GitHub Action ships, the `[action.entries]` table.
|
|
6
27
|
*
|
|
7
28
|
* @remarks
|
|
@@ -17,8 +38,11 @@ var ActionEntries = class extends Schema.Class("ActionEntries")({
|
|
|
17
38
|
pre: Schema.optionalKey(Schema.String),
|
|
18
39
|
/** The source of the entry that runs after `main`, for cleanup. */
|
|
19
40
|
post: Schema.optionalKey(Schema.String),
|
|
20
|
-
/**
|
|
21
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Extra bundles outside the lifecycle, each emitted as `dist/<name>.js`: a name to its source, or to an
|
|
43
|
+
* {@link ActionWorker} table.
|
|
44
|
+
*/
|
|
45
|
+
workers: Schema.Record(Schema.String, Schema.Union([Schema.String, ActionWorker])).pipe(Schema.withDecodingDefaultKey(Effect.succeed({})))
|
|
22
46
|
}) {};
|
|
23
47
|
/**
|
|
24
48
|
* How an action's bundles are built, the `[action.build]` table.
|
|
@@ -49,7 +73,8 @@ var ActionBuildOptions = class extends Schema.Class("ActionBuildOptions")({
|
|
|
49
73
|
*
|
|
50
74
|
* @remarks
|
|
51
75
|
* A bundle can build cleanly and not load, and this is the only check that finds out. Turn it off for an action
|
|
52
|
-
* with no `GITHUB_ACTIONS` guard around its program, because the import runs that program for real.
|
|
76
|
+
* with no `GITHUB_ACTIONS` guard around its program, because the import runs that program for real. To exempt one
|
|
77
|
+
* worker and keep the check on the rest, set `importCheck = false` in that worker's own table instead.
|
|
53
78
|
*/
|
|
54
79
|
importCheck: Schema.Boolean.pipe(Schema.withDecodingDefaultKey(Effect.succeed(true)))
|
|
55
80
|
}) {};
|
|
@@ -99,4 +124,4 @@ var ActionConfig = class extends Schema.Class("ActionConfig")({
|
|
|
99
124
|
persistLocal: ActionPersistLocalOptions.pipe(Schema.withDecodingDefaultKey(Effect.succeed({})))
|
|
100
125
|
}) {};
|
|
101
126
|
|
|
102
|
-
export { ActionBuildOptions, ActionConfig, ActionEntries, ActionPersistLocalOptions, ActionValidationOptions };
|
|
127
|
+
export { ActionBuildOptions, ActionConfig, ActionEntries, ActionPersistLocalOptions, ActionValidationOptions, ActionWorker };
|
package/index.d.ts
CHANGED
|
@@ -12,6 +12,28 @@ import { Plugin } from "rolldown";
|
|
|
12
12
|
import { WorkspaceDiscovery } from "@effected/workspaces";
|
|
13
13
|
import { AppendError, JournalWatcher, JsonlEvent } from "@effected/jsonl";
|
|
14
14
|
import { DescendError } from "@effected/walker";
|
|
15
|
+
declare const ActionWorker_base: Schema.Class<ActionWorker, Schema.Struct<{
|
|
16
|
+
/** The worker's source, relative to the package. */
|
|
17
|
+
readonly source: Schema.String;
|
|
18
|
+
/**
|
|
19
|
+
* Whether this worker's bundle is imported after the build to prove it loads.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* For a worker that refuses to start at import by design, such as one that exits when the configuration its
|
|
23
|
+
* action passes through the environment is missing. `[action.build] importCheck = false` still turns the check off
|
|
24
|
+
* for every bundle, this one included.
|
|
25
|
+
*/
|
|
26
|
+
readonly importCheck: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
27
|
+
}>, {}>;
|
|
28
|
+
/**
|
|
29
|
+
* A worker written as a table, `[action.entries.workers.<name>]`, for a worker that needs more than its source.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* A worker given as a plain string is its source, with every setting at its default.
|
|
33
|
+
*
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export declare class ActionWorker extends ActionWorker_base {}
|
|
15
37
|
declare const ActionEntries_base: Schema.Class<ActionEntries, Schema.Struct<{
|
|
16
38
|
/** The main entry point's source. */
|
|
17
39
|
readonly main: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
@@ -19,8 +41,11 @@ declare const ActionEntries_base: Schema.Class<ActionEntries, Schema.Struct<{
|
|
|
19
41
|
readonly pre: Schema.optionalKey<Schema.String>;
|
|
20
42
|
/** The source of the entry that runs after `main`, for cleanup. */
|
|
21
43
|
readonly post: Schema.optionalKey<Schema.String>;
|
|
22
|
-
/**
|
|
23
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Extra bundles outside the lifecycle, each emitted as `dist/<name>.js`: a name to its source, or to an
|
|
46
|
+
* {@link ActionWorker} table.
|
|
47
|
+
*/
|
|
48
|
+
readonly workers: Schema.withDecodingDefaultKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, typeof ActionWorker]>>, never>;
|
|
24
49
|
}>, {}>;
|
|
25
50
|
/**
|
|
26
51
|
* The bundles a GitHub Action ships, the `[action.entries]` table.
|
|
@@ -51,7 +76,8 @@ declare const ActionBuildOptions_base: Schema.Class<ActionBuildOptions, Schema.S
|
|
|
51
76
|
*
|
|
52
77
|
* @remarks
|
|
53
78
|
* A bundle can build cleanly and not load, and this is the only check that finds out. Turn it off for an action
|
|
54
|
-
* with no `GITHUB_ACTIONS` guard around its program, because the import runs that program for real.
|
|
79
|
+
* with no `GITHUB_ACTIONS` guard around its program, because the import runs that program for real. To exempt one
|
|
80
|
+
* worker and keep the check on the rest, set `importCheck = false` in that worker's own table instead.
|
|
55
81
|
*/
|
|
56
82
|
readonly importCheck: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
57
83
|
}>, {}>;
|
|
@@ -250,7 +276,8 @@ export declare class ActionBundle {
|
|
|
250
276
|
* on when or where it is built.
|
|
251
277
|
*
|
|
252
278
|
* Each bundle is then imported in a fresh Node, because a bundle can build cleanly and not load. Set
|
|
253
|
-
* `build.importCheck = false` to skip that
|
|
279
|
+
* `build.importCheck = false` to skip that for every bundle, or `importCheck = false` in a worker's own table to
|
|
280
|
+
* skip it for that worker alone. The child has no `GITHUB_*` variable, token or `PATH`, and runs in a
|
|
254
281
|
* temporary directory, for at most a minute. An action's `GITHUB_ACTIONS` guard stays closed, but an action with no
|
|
255
282
|
* guard runs for real there. A failure asking for an input passes. A package listed in `build.externals` that is not
|
|
256
283
|
* installed passes with a warning on the entry, and the check learns nothing about the bundle past that import.
|
|
@@ -433,8 +460,8 @@ export declare class ActionBuilder {
|
|
|
433
460
|
* It writes nothing to stdout; rendering belongs to the caller. A step that fails stops the ones after it, so an
|
|
434
461
|
* invalid action leaves `dist` as it was, and a failed build or size check persists nothing. In strict mode, set
|
|
435
462
|
* by `validation.strict` or else by running under CI, a warning fails like an error. With `validate` false, neither
|
|
436
|
-
* validation nor the size check runs. `build.importCheck`
|
|
437
|
-
* loads, per {@link ActionBundle.build}.
|
|
463
|
+
* validation nor the size check runs. `build.importCheck` and a worker's own `importCheck` alone decide whether each
|
|
464
|
+
* bundle is imported to prove it loads, per {@link ActionBundle.build}.
|
|
438
465
|
*
|
|
439
466
|
* Validation and persisting go through the provided `FileSystem`, while bundling always works on the real disk,
|
|
440
467
|
* because rolldown does. A memory filesystem therefore suits {@link ActionValidation} and {@link PersistLocal} tests,
|
package/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Bundler, BundlerBuildResult } from "./Bundler.js";
|
|
|
8
8
|
import { BundlerError, BundlerPhase } from "./BundlerError.js";
|
|
9
9
|
import { resolveManifest } from "./catalog/resolve-catalogs.js";
|
|
10
10
|
import { resolveNextVersions } from "./changesets/next-versions.js";
|
|
11
|
-
import { ActionBuildOptions, ActionConfig, ActionEntries, ActionPersistLocalOptions, ActionValidationOptions } from "./config/ActionConfig.js";
|
|
11
|
+
import { ActionBuildOptions, ActionConfig, ActionEntries, ActionPersistLocalOptions, ActionValidationOptions, ActionWorker } from "./config/ActionConfig.js";
|
|
12
12
|
import { BuildFormat, BuildPlatform, BundleConfig, BundleOpenGraphConfig, BundleOpenGraphImage, BundleRegistryRef, CopyEntry, EffectedConfig, EntryOverride, ExeConfig, ExeSeaConfig, ExeTargetConfig, JsxConfig, LooseFileSpec, ManifestConfig, MetaConfig, PackageBuildConfig, PackageConfig, TsdocConfig, TsdocTagDefinition, WarningSuppressionRule } from "./config/BuildConfig.js";
|
|
13
13
|
import { EffectedConfigError, EffectedConfigFile, ResolvedConfig, ResolvedEffectedConfig } from "./config/EffectedConfigFile.js";
|
|
14
14
|
import { merge } from "./config/merge.js";
|
|
@@ -54,4 +54,4 @@ import { RELEASE_CHANNELS, isTargetObject } from "./targets/config.js";
|
|
|
54
54
|
import { releaseWarnings, resolveTargets } from "./targets/resolve-targets.js";
|
|
55
55
|
import { BUNDLE_MANIFEST_FILENAME, BundleManifest, BundleManifestError, KNOWN_REGISTRY_TYPES, MANIFEST_SPEC, ManifestSource, OpenGraphConfig, OpenGraphImage, ProjectIdentity, RegistryRef, SbomRef, decodeBundleManifest, decodeManifestSource, encodeBundleManifest, isKnownRegistryType } from "@effected/manifest";
|
|
56
56
|
|
|
57
|
-
export { ActionBuildOptions, ActionBuildResult, ActionBuilder, ActionBundle, ActionConfig, ActionEntries, ActionPersistLocalOptions, ActionValidation, ActionValidationOptions, ActionYml, ActionYmlBranding, ActionYmlBrandingColor, ActionYmlBrandingIcon, ActionYmlInput, ActionYmlOutput, ActionYmlPathError, ActionYmlRuns, BUNDLE_MANIFEST_FILENAME, BuildCollector, BuildCollectorTag, BuildFailed, BuildFormat, BuildIssuesSchema, BuildJournal, BuildPlatform, BuildReport, BuildResult, BundleConfig, BundleFailed, BundleManifest, BundleManifestEmitError, BundleManifestError, BundleManifestSourceError, BundleOpenGraphConfig, BundleOpenGraphImage, BundleRegistryRef, BundleResult, BundleStats, Bundler, BundlerBuildResult, BundlerError, BundlerPhase, CleanError, ConfigValidationError, ConfigValidator, CopyEntry, DEFAULT_EXE_NODE_VERSION, DiagnosticEntry, EffectedConfig, EffectedConfigError, EffectedConfigFile, EmittedFile, EntryOverride, ExeConfig, ExeSeaConfig, ExeTargetConfig, IssueJournal, JsxConfig, KNOWN_REGISTRY_TYPES, LooseFileSpec, MANIFEST_SPEC, ManifestConfig, ManifestSource, MetaConfig, MetaGenerationError, OgGenerateError, OpenGraphConfig, OpenGraphImage, PackageBuildConfig, PackageConfig, PassReport, PersistLocal, PersistLocalError, PersistLocalResult, PlainDiagnosticSchema, PluginLoadError, ProjectIdentity, RELEASE_CHANNELS, RegistryRef, ReportTimings, ResolvedConfig, ResolvedEffectedConfig, SbomRef, TargetGroupReport, TsdocConfig, TsdocTagDefinition, ValidationFailed, ValidationIssue, ValidationResult, WarningSuppressionRule, WriteError, ambientOutName, analyzeReexportBarrel, assertNoEntryCollisions, buildEmittedManifest, buildMetricsPlugin, buildResolvedTsconfig, buildTargetGroups, cjsDefaultInterop, classifyDtsExport, collectExportNames, composeBundleManifest, computeExeFileName, copyAmbientDts, copyPublicDir, createEntryName, createTimer, createTsdownLogger, declarationExt, declarationsDirFor, decodeBundleManifest, decodeManifestSource, defaultManifestTransform, deriveDeclarationsPassOptions, deriveDtsPassOptions, deriveExportPaths, deriveTargetGroupOptions, dtsPassDtsOptions, emitManifest, encodeBundleManifest, extractAmbientDts, extractEntries, findRelativeSpecifiers, flattenIssues, formatTime, githubOwnerRepo, isKnownRegistryType, isTargetObject, loadBundleManifestSources, loadPlugins, manifestNeedsCatalogResolution, merge, mixedDtsExportError, nodeBuiltinDefaultInterop, normalizeBinPaths, normalizeExeOptions, normalizeLooseFiles, normalizeMetaOptions, ogImageInfoOf, outDirFor, packageJsonEntries, readTsconfigJsx, registriesFromTargets, releaseWarnings, removeDeclarationMaps, renderCiAnnotations, renderReexportStub, resolveJsxConfig, resolveManifest, resolveNextVersions, resolveOgCacheSalt, resolveOgGenerator, resolvePortableTsconfig, resolveTargets, rewriteMetaVersions, runExeBuild, serializeIssues, transformBin, transformExports, transformManifest, writeDtsEmitTsconfig, writeGeneratedOgImage, writeIssuesArtifact, writeResolvedTsconfig, writeTargetsBinding };
|
|
57
|
+
export { ActionBuildOptions, ActionBuildResult, ActionBuilder, ActionBundle, ActionConfig, ActionEntries, ActionPersistLocalOptions, ActionValidation, ActionValidationOptions, ActionWorker, ActionYml, ActionYmlBranding, ActionYmlBrandingColor, ActionYmlBrandingIcon, ActionYmlInput, ActionYmlOutput, ActionYmlPathError, ActionYmlRuns, BUNDLE_MANIFEST_FILENAME, BuildCollector, BuildCollectorTag, BuildFailed, BuildFormat, BuildIssuesSchema, BuildJournal, BuildPlatform, BuildReport, BuildResult, BundleConfig, BundleFailed, BundleManifest, BundleManifestEmitError, BundleManifestError, BundleManifestSourceError, BundleOpenGraphConfig, BundleOpenGraphImage, BundleRegistryRef, BundleResult, BundleStats, Bundler, BundlerBuildResult, BundlerError, BundlerPhase, CleanError, ConfigValidationError, ConfigValidator, CopyEntry, DEFAULT_EXE_NODE_VERSION, DiagnosticEntry, EffectedConfig, EffectedConfigError, EffectedConfigFile, EmittedFile, EntryOverride, ExeConfig, ExeSeaConfig, ExeTargetConfig, IssueJournal, JsxConfig, KNOWN_REGISTRY_TYPES, LooseFileSpec, MANIFEST_SPEC, ManifestConfig, ManifestSource, MetaConfig, MetaGenerationError, OgGenerateError, OpenGraphConfig, OpenGraphImage, PackageBuildConfig, PackageConfig, PassReport, PersistLocal, PersistLocalError, PersistLocalResult, PlainDiagnosticSchema, PluginLoadError, ProjectIdentity, RELEASE_CHANNELS, RegistryRef, ReportTimings, ResolvedConfig, ResolvedEffectedConfig, SbomRef, TargetGroupReport, TsdocConfig, TsdocTagDefinition, ValidationFailed, ValidationIssue, ValidationResult, WarningSuppressionRule, WriteError, ambientOutName, analyzeReexportBarrel, assertNoEntryCollisions, buildEmittedManifest, buildMetricsPlugin, buildResolvedTsconfig, buildTargetGroups, cjsDefaultInterop, classifyDtsExport, collectExportNames, composeBundleManifest, computeExeFileName, copyAmbientDts, copyPublicDir, createEntryName, createTimer, createTsdownLogger, declarationExt, declarationsDirFor, decodeBundleManifest, decodeManifestSource, defaultManifestTransform, deriveDeclarationsPassOptions, deriveDtsPassOptions, deriveExportPaths, deriveTargetGroupOptions, dtsPassDtsOptions, emitManifest, encodeBundleManifest, extractAmbientDts, extractEntries, findRelativeSpecifiers, flattenIssues, formatTime, githubOwnerRepo, isKnownRegistryType, isTargetObject, loadBundleManifestSources, loadPlugins, manifestNeedsCatalogResolution, merge, mixedDtsExportError, nodeBuiltinDefaultInterop, normalizeBinPaths, normalizeExeOptions, normalizeLooseFiles, normalizeMetaOptions, ogImageInfoOf, outDirFor, packageJsonEntries, readTsconfigJsx, registriesFromTargets, releaseWarnings, removeDeclarationMaps, renderCiAnnotations, renderReexportStub, resolveJsxConfig, resolveManifest, resolveNextVersions, resolveOgCacheSalt, resolveOgGenerator, resolvePortableTsconfig, resolveTargets, rewriteMetaVersions, runExeBuild, serializeIssues, transformBin, transformExports, transformManifest, writeDtsEmitTsconfig, writeGeneratedOgImage, writeIssuesArtifact, writeResolvedTsconfig, writeTargetsBinding };
|
package/meta/og-satori.js
CHANGED
|
@@ -111,7 +111,7 @@ const ogImage = { satori(options = {}) {
|
|
|
111
111
|
};
|
|
112
112
|
const cacheSalt = JSON.stringify({
|
|
113
113
|
renderer: "@effected/bundler/og#satori",
|
|
114
|
-
version: "0.
|
|
114
|
+
version: "0.4.0",
|
|
115
115
|
satori: peerVersion("satori"),
|
|
116
116
|
resvg: peerVersion("@resvg/resvg-js"),
|
|
117
117
|
colors
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/bundler",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The kit's build pipeline: effected.toml config, tsdown JS and declaration passes, API Extractor meta, SEA, GitHub Action bundles and build journals.",
|
|
6
6
|
"keywords": [
|
|
@@ -38,24 +38,24 @@
|
|
|
38
38
|
"./package.json": "./package.json"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@effect/platform-node": "
|
|
42
|
-
"@effected/changesets": "0.
|
|
43
|
-
"@effected/config-file": "^0.
|
|
44
|
-
"@effected/env": "^0.
|
|
45
|
-
"@effected/files": "^0.
|
|
46
|
-
"@effected/glob": "^0.
|
|
47
|
-
"@effected/images": "^0.
|
|
48
|
-
"@effected/jsonc": "^0.
|
|
49
|
-
"@effected/jsonl": "^0.
|
|
50
|
-
"@effected/manifest": "^0.
|
|
51
|
-
"@effected/npm": "^0.
|
|
52
|
-
"@effected/package-json": "^0.
|
|
53
|
-
"@effected/semver": "^0.
|
|
54
|
-
"@effected/toml": "^0.
|
|
55
|
-
"@effected/tsconfig-json": "^0.
|
|
56
|
-
"@effected/walker": "^0.
|
|
57
|
-
"@effected/workspaces": "^0.
|
|
58
|
-
"@effected/yaml": "^0.
|
|
41
|
+
"@effect/platform-node": "4.1.3",
|
|
42
|
+
"@effected/changesets": "0.4.1",
|
|
43
|
+
"@effected/config-file": "^0.27.1",
|
|
44
|
+
"@effected/env": "^0.12.0",
|
|
45
|
+
"@effected/files": "^0.3.0",
|
|
46
|
+
"@effected/glob": "^0.21.0",
|
|
47
|
+
"@effected/images": "^0.10.0",
|
|
48
|
+
"@effected/jsonc": "^0.25.0",
|
|
49
|
+
"@effected/jsonl": "^0.19.0",
|
|
50
|
+
"@effected/manifest": "^0.2.0",
|
|
51
|
+
"@effected/npm": "^0.34.0",
|
|
52
|
+
"@effected/package-json": "^0.32.1",
|
|
53
|
+
"@effected/semver": "^0.24.0",
|
|
54
|
+
"@effected/toml": "^0.20.0",
|
|
55
|
+
"@effected/tsconfig-json": "^0.21.1",
|
|
56
|
+
"@effected/walker": "^0.28.0",
|
|
57
|
+
"@effected/workspaces": "^0.46.0",
|
|
58
|
+
"@effected/yaml": "^0.30.0",
|
|
59
59
|
"@jridgewell/sourcemap-codec": "^1.6.0",
|
|
60
60
|
"@microsoft/api-extractor": "^7.60.1",
|
|
61
61
|
"@microsoft/tsdoc": "~0.17.1",
|