@git.zone/tsbundle 2.11.4 → 2.12.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 (37) hide show
  1. package/dist_ts/00_commitinfo_data.js +1 -1
  2. package/dist_ts/interfaces/index.d.ts +1 -0
  3. package/dist_ts/mod_custom/index.d.ts +10 -3
  4. package/dist_ts/mod_custom/index.js +277 -86
  5. package/dist_ts/mod_esbuild/index.child.d.ts +4 -8
  6. package/dist_ts/mod_esbuild/index.child.js +51 -44
  7. package/dist_ts/mod_esbuild/plugins.d.ts +5 -2
  8. package/dist_ts/mod_esbuild/plugins.js +5 -3
  9. package/dist_ts/mod_esbuild/workerplugin.d.ts +12 -0
  10. package/dist_ts/mod_esbuild/workerplugin.js +254 -0
  11. package/dist_ts/mod_output/artifactpublisher.d.ts +43 -0
  12. package/dist_ts/mod_output/artifactpublisher.js +925 -0
  13. package/dist_ts/mod_output/index.d.ts +1 -0
  14. package/dist_ts/mod_output/index.js +11 -3
  15. package/dist_ts/mod_rolldown/index.child.d.ts +4 -2
  16. package/dist_ts/mod_rolldown/index.child.js +47 -36
  17. package/dist_ts/mod_rspack/index.child.d.ts +4 -2
  18. package/dist_ts/mod_rspack/index.child.js +73 -115
  19. package/dist_ts/plugins.d.ts +3 -1
  20. package/dist_ts/plugins.js +4 -2
  21. package/dist_ts/tsbundle.class.tsbundle.js +98 -16
  22. package/package.json +7 -5
  23. package/readme.hints.md +20 -4
  24. package/readme.md +23 -6
  25. package/third-party-notices.md +29 -0
  26. package/ts/00_commitinfo_data.ts +1 -1
  27. package/ts/interfaces/index.ts +1 -0
  28. package/ts/mod_custom/index.ts +347 -96
  29. package/ts/mod_esbuild/index.child.ts +78 -47
  30. package/ts/mod_esbuild/plugins.ts +9 -2
  31. package/ts/mod_esbuild/workerplugin.ts +328 -0
  32. package/ts/mod_output/artifactpublisher.ts +1185 -0
  33. package/ts/mod_output/index.ts +10 -2
  34. package/ts/mod_rolldown/index.child.ts +65 -42
  35. package/ts/mod_rspack/index.child.ts +95 -127
  36. package/ts/plugins.ts +3 -1
  37. package/ts/tsbundle.class.tsbundle.ts +102 -14
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@git.zone/tsbundle',
6
- version: '2.11.4',
6
+ version: '2.12.0',
7
7
  description: 'a multi-bundler tool supporting esbuild, rolldown, and rspack for painless bundling of web projects'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxvQkFBb0I7SUFDMUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHFHQUFxRztDQUNuSCxDQUFBIn0=
@@ -4,6 +4,7 @@ export interface ICliOptions {
4
4
  production?: boolean;
5
5
  sourcemap?: boolean;
6
6
  keepTemp?: boolean;
7
+ chunkOwner?: string;
7
8
  bundler: 'esbuild' | 'rolldown' | 'rspack';
8
9
  }
9
10
  export interface ICustomBundleCliOptions {
@@ -4,6 +4,7 @@ export declare class CustomBundleHandler {
4
4
  private config;
5
5
  private cliOptions;
6
6
  private didRunStartupCleanup;
7
+ private readonly invocationId;
7
8
  constructor(cwd?: string, cliOptions?: interfaces.ICustomBundleCliOptions);
8
9
  /**
9
10
  * Load configuration from .smartconfig.json
@@ -19,14 +20,20 @@ export declare class CustomBundleHandler {
19
20
  processSingleBundle(bundleConfig: interfaces.IBundleConfig): Promise<void>;
20
21
  cleanupStaleTempWorkspace(thresholdMsArg?: number): Promise<boolean>;
21
22
  private getTempDir;
22
- private assertExpectedTempDir;
23
+ private getProjectTempRoot;
23
24
  private assertManagedTempDir;
24
25
  private isTruthy;
26
+ private hasErrorCode;
27
+ private isTempMarkerActive;
28
+ private markersMatch;
25
29
  private shouldKeepTemp;
26
30
  private prepareTempWorkspace;
27
31
  private createIsolatedTempWorkspace;
32
+ private clearTempBuildArtifacts;
33
+ private listBundleArtifacts;
28
34
  private writeTempMarker;
29
35
  private readTempMarker;
36
+ private cleanupStaleMarkedTempWorkspaces;
30
37
  private getDirectorySize;
31
38
  private formatBytes;
32
39
  private cleanupTempWorkspace;
@@ -39,9 +46,9 @@ export declare class CustomBundleHandler {
39
46
  */
40
47
  private handleBundleOutput;
41
48
  /**
42
- * Copy files matching a pattern to the output directory
49
+ * Resolve files matching a pattern for transactional publication.
43
50
  */
44
- private copyIncludedFiles;
51
+ private collectIncludedFiles;
45
52
  }
46
53
  /**
47
54
  * Run the custom bundle command