@effected/bundler 0.6.2 → 0.7.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.
Files changed (48) hide show
  1. package/Bundler.js +3 -3
  2. package/BundlerError.js +1 -1
  3. package/action/ActionBuilder.js +101 -23
  4. package/action/ActionBundle.js +15 -11
  5. package/action/ActionCheck.js +71 -0
  6. package/action/ActionErrors.js +68 -2
  7. package/action/ActionValidation.js +7 -4
  8. package/action/PersistLocal.js +111 -83
  9. package/action/PersistTarget.js +119 -0
  10. package/action/tree.js +25 -0
  11. package/catalog/resolve-catalogs.js +1 -1
  12. package/changesets/next-versions.js +2 -2
  13. package/config/ActionConfig.js +16 -9
  14. package/config/BuildConfig.js +1 -1
  15. package/config/EffectedConfigFile.js +3 -3
  16. package/config/plugins.js +2 -2
  17. package/config-validation/ConfigValidator.js +1 -1
  18. package/dts/bundled-siblings.js +2 -2
  19. package/dts/reexport-stub.js +1 -1
  20. package/dts/relative-imports.js +1 -1
  21. package/dts/resolved-tsconfig.js +4 -4
  22. package/exe/build.js +3 -3
  23. package/index.d.ts +229 -22
  24. package/index.js +6 -4
  25. package/internal/native-realpath.js +1 -1
  26. package/journal/BuildJournal.js +2 -2
  27. package/jsx/config.js +1 -1
  28. package/manifest/emit-manifest.js +2 -2
  29. package/manifest/manifest-set.js +1 -1
  30. package/manifest/transform.js +1 -1
  31. package/meta/api-extractor.js +5 -5
  32. package/meta/bundle-source.js +2 -2
  33. package/meta/generate.js +2 -2
  34. package/meta/og-image.js +2 -2
  35. package/meta/og-satori.js +3 -3
  36. package/meta/run-pass.js +1 -1
  37. package/meta/scrub-declaration-maps.js +1 -1
  38. package/meta/tsconfig-resolver.js +2 -2
  39. package/meta/tsdoc-config.js +1 -1
  40. package/package.json +3 -3
  41. package/passes/build-target-groups.js +1 -1
  42. package/passes/bundled-deps.js +1 -1
  43. package/passes/loose-files.js +1 -1
  44. package/passes/strip-maps.js +1 -1
  45. package/passes/sync-public.js +3 -3
  46. package/passes/target-groups.js +2 -2
  47. package/report/collector.js +1 -1
  48. package/report/issues-artifact.js +1 -1
@@ -1,5 +1,5 @@
1
- import { Result } from "effect";
2
1
  import { GlobPattern } from "@effected/glob";
2
+ import { Result } from "effect";
3
3
 
4
4
  // src/passes/bundled-deps.ts
5
5
  /** A bare package name, `name` or `@scope/name`, with no subpath and no glob syntax. */
@@ -1,5 +1,5 @@
1
- import { ConfigValidationError } from "../errors.js";
2
1
  import { basename, extname } from "node:path";
2
+ import { ConfigValidationError } from "../errors.js";
3
3
 
4
4
  // src/passes/loose-files.ts
5
5
  /** Extension to its implied format; `.js` is ambiguous (undefined). */
@@ -1,6 +1,6 @@
1
- import { Effect, FileSystem, Path, Result } from "effect";
2
1
  import { GlobPattern, GlobPatternOptions } from "@effected/glob";
3
2
  import { descend } from "@effected/walker";
3
+ import { Effect, FileSystem, Path, Result } from "effect";
4
4
 
5
5
  // src/passes/strip-maps.ts
6
6
  /** `.d.ts.map` / `.d.cts.map` at any depth, dot-directories included. */
@@ -1,9 +1,9 @@
1
+ import { GlobPattern, GlobPatternOptions } from "@effected/glob";
2
+ import { descend } from "@effected/walker";
3
+ import { Effect, FileSystem, Path, Result } from "effect";
1
4
  import { findRelativeSpecifiers } from "../dts/relative-imports.js";
2
5
  import { ConfigValidationError } from "../errors.js";
3
6
  import { existsLikeNode } from "../internal/exists.js";
4
- import { Effect, FileSystem, Path, Result } from "effect";
5
- import { GlobPattern, GlobPatternOptions } from "@effected/glob";
6
- import { descend } from "@effected/walker";
7
7
 
8
8
  // src/passes/sync-public.ts
9
9
  /** Every file at any depth, dotfiles included. */
@@ -1,9 +1,9 @@
1
- import { createRequire } from "node:module";
2
- import { Result } from "effect";
3
1
  import { readFileSync } from "node:fs";
2
+ import { createRequire } from "node:module";
4
3
  import { join } from "node:path";
5
4
  import { fileURLToPath } from "node:url";
6
5
  import { SemVer } from "@effected/semver";
6
+ import { Result } from "effect";
7
7
 
8
8
  // src/passes/target-groups.ts
9
9
  /** The `file://` URL of the TypeScript module this package resolves (its own pinned dependency). */
@@ -1,5 +1,5 @@
1
- import { BuildReport, DiagnosticEntry, EmittedFile, PassReport, ReportTimings, TargetGroupReport } from "./schema.js";
2
1
  import { Context } from "effect";
2
+ import { BuildReport, DiagnosticEntry, EmittedFile, PassReport, ReportTimings, TargetGroupReport } from "./schema.js";
3
3
 
4
4
  // src/report/collector.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { DiagnosticEntry } from "./schema.js";
2
1
  import { Clock, Effect, FileSystem, Path, Schema } from "effect";
2
+ import { DiagnosticEntry } from "./schema.js";
3
3
 
4
4
  // src/report/issues-artifact.ts
5
5
  /**