@savvy-web/bundler 2.7.0 → 2.7.1

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/og.js CHANGED
@@ -121,7 +121,7 @@ const ogImage = { satori(options = {}) {
121
121
  };
122
122
  const cacheSalt = JSON.stringify({
123
123
  renderer: "@savvy-web/bundler/og#satori",
124
- version: "2.7.0",
124
+ version: "2.7.1",
125
125
  satori: peerVersion("satori"),
126
126
  resvg: peerVersion("@resvg/resvg-js"),
127
127
  colors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvy-web/bundler",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "private": false,
5
5
  "description": "Zero-config tsdown-based bundler for Silk Suite TypeScript packages",
6
6
  "homepage": "https://github.com/savvy-web/systems/tree/main/packages/bundler",
@@ -37,10 +37,10 @@
37
37
  "./package.json": "./package.json"
38
38
  },
39
39
  "dependencies": {
40
- "@effected/env": "^0.6.0",
41
- "@savvy-web/tsdown-plugins": "^2.11.2",
40
+ "@effected/env": "^0.7.0",
41
+ "@savvy-web/tsdown-plugins": "^2.11.3",
42
42
  "@tsdown/exe": "^0.23.2",
43
- "effect": "^4.0.6",
43
+ "effect": "^4.0.7",
44
44
  "rolldown": "^1.2.15",
45
45
  "tsdown": "^0.23.2"
46
46
  },
package/run.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineBuild, parseArgs } from "./config.js";
2
- import { ProcessStdoutTerminal, isCi, reportNoColor } from "./runtime-env.js";
2
+ import { isCi, reportNoColor } from "./runtime-env.js";
3
3
  import { BuildCollector, ConfigValidationError, ConfigValidator, ReportPipeline, assertNoEntryCollisions, buildEmittedManifest, buildTargetGroups, computeExeFileName, createEntryName, deriveExportPaths, extractAmbientDts, normalizeExeOptions, normalizeLooseFiles, packageJsonEntries, readTsconfigJsx, releaseWarnings, removeDeclarationMaps, renderReport, resolveJsxConfig, resolveTargets, runExeBuild, runMetaPass, writeIssuesArtifact, writeResolvedTsconfig, writeTargetsBinding } from "@savvy-web/tsdown-plugins";
4
4
  import { copyFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
5
5
  import { dirname, join } from "node:path";
@@ -239,11 +239,11 @@ async function runBuild(config, options) {
239
239
  const explicitFormat = config.output?.format;
240
240
  const writeOutput = options.writeOutput ?? ((o) => process.stdout.write(`${o.content}\n`));
241
241
  renderAndWrite = async () => {
242
- const rendered = await Effect.runPromise(Effect.flatMap(reportNoColor, (noColor) => renderReport(collector.snapshot(packageName), {
242
+ const rendered = await Effect.runPromise(renderReport(collector.snapshot(packageName), {
243
243
  ...explicitFormat !== void 0 ? { explicitFormat } : {},
244
244
  verbose,
245
- noColor
246
- })).pipe(Effect.provide(ReportPipeline), Effect.provide(ProcessStdoutTerminal)));
245
+ noColor: reportNoColor()
246
+ }).pipe(Effect.provide(ReportPipeline)));
247
247
  for (const output of rendered) writeOutput(output);
248
248
  };
249
249
  if (hasJsEntries || config.exe === void 0) await build({
package/runtime-env.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Effect, Option, Stdio } from "effect";
1
+ import { Option } from "effect";
2
2
  import { RuntimeEnv, TerminalEnv } from "@effected/env";
3
3
 
4
4
  // src/runtime-env.ts
@@ -10,18 +10,11 @@ import { RuntimeEnv, TerminalEnv } from "@effected/env";
10
10
  */
11
11
  const isCi = (env = process.env) => Option.isSome(RuntimeEnv.fromRecord(env).ci);
12
12
  /**
13
- * Whether the build report must be painted without colour: `@effected/env`'s stdout colour level is `none`.
13
+ * Whether the build report must be painted without colour: `@effected/env`'s colour level for stdout is `none`.
14
14
  * `FORCE_COLOR` decides alone when set, then a non-TTY stdout, `NO_COLOR` / `TERM=dumb`, and the terminal table.
15
15
  *
16
16
  * @internal
17
17
  */
18
- const reportNoColor = Effect.map(TerminalEnv.colorLevel("stdout"), (level) => level === "none");
19
- /**
20
- * The one `Stdio` fact the colour decision reads — whether `process.stdout` is a TTY — without taking a runtime
21
- * dependency on `@effect/platform-node`. Every other `Stdio` member is inert and never used.
22
- *
23
- * @internal
24
- */
25
- const ProcessStdoutTerminal = Stdio.layerTest({ stdoutIsTerminal: Effect.sync(() => process.stdout.isTTY === true) });
18
+ const reportNoColor = (env = process.env, isTTY = process.stdout.isTTY === true) => TerminalEnv.colorLevelFrom(env, isTTY) === "none";
26
19
 
27
- export { ProcessStdoutTerminal, isCi, reportNoColor };
20
+ export { isCi, reportNoColor };
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.59.4"
8
+ "packageVersion": "7.60.0"
9
9
  }
10
10
  ]
11
11
  }