@trebired/bundler 3.0.0 → 3.1.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/CHANGELOG.md +14 -0
- package/README.md +94 -11
- package/dist/backend/utils/normalize.d.ts +2 -0
- package/dist/backend/utils/normalize.d.ts.map +1 -0
- package/dist/backend/utils/normalize.js +4 -0
- package/dist/backend/utils/normalize.js.map +1 -0
- package/dist/backend/utils/object.d.ts +3 -0
- package/dist/backend/utils/object.d.ts.map +1 -0
- package/dist/backend/utils/object.js +12 -0
- package/dist/backend/utils/object.js.map +1 -0
- package/dist/backend/utils/time.d.ts +3 -0
- package/dist/backend/utils/time.d.ts.map +1 -0
- package/dist/backend/utils/time.js +7 -0
- package/dist/backend/utils/time.js.map +1 -0
- package/dist/cli/run-cli.d.ts.map +1 -1
- package/dist/cli/run-cli.js +40 -36
- package/dist/cli/run-cli.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js.map +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/core/asset-manifest.d.ts +1 -4
- package/dist/core/asset-manifest.d.ts.map +1 -1
- package/dist/core/asset-manifest.js +1 -254
- package/dist/core/asset-manifest.js.map +1 -1
- package/dist/core/asset_manifest/runtime.d.ts +5 -0
- package/dist/core/asset_manifest/runtime.d.ts.map +1 -0
- package/dist/core/asset_manifest/runtime.js +252 -0
- package/dist/core/asset_manifest/runtime.js.map +1 -0
- package/dist/core/build.d.ts +1 -1
- package/dist/core/build.d.ts.map +1 -1
- package/dist/core/build.js +2 -2
- package/dist/core/build.js.map +1 -1
- package/dist/core/derive-manifest.d.ts +2 -9
- package/dist/core/derive-manifest.d.ts.map +1 -1
- package/dist/core/derive-manifest.js +1 -153
- package/dist/core/derive-manifest.js.map +1 -1
- package/dist/core/derive_manifest/runtime.d.ts +10 -0
- package/dist/core/derive_manifest/runtime.d.ts.map +1 -0
- package/dist/core/derive_manifest/runtime.js +133 -0
- package/dist/core/derive_manifest/runtime.js.map +1 -0
- package/dist/core/discovery/aggregate.d.ts +32 -0
- package/dist/core/discovery/aggregate.d.ts.map +1 -0
- package/dist/core/discovery/aggregate.js +124 -0
- package/dist/core/discovery/aggregate.js.map +1 -0
- package/dist/core/discovery/emit.d.ts +22 -0
- package/dist/core/discovery/emit.d.ts.map +1 -0
- package/dist/core/discovery/emit.js +37 -0
- package/dist/core/discovery/emit.js.map +1 -0
- package/dist/core/discovery/normalize.d.ts +8 -0
- package/dist/core/discovery/normalize.d.ts.map +1 -0
- package/dist/core/discovery/normalize.js +130 -0
- package/dist/core/discovery/normalize.js.map +1 -0
- package/dist/core/discovery/public.d.ts +5 -0
- package/dist/core/discovery/public.d.ts.map +1 -0
- package/dist/core/discovery/public.js +25 -0
- package/dist/core/discovery/public.js.map +1 -0
- package/dist/core/discovery/resolve.d.ts +9 -0
- package/dist/core/discovery/resolve.d.ts.map +1 -0
- package/dist/core/discovery/resolve.js +235 -0
- package/dist/core/discovery/resolve.js.map +1 -0
- package/dist/core/discovery/scan.d.ts +29 -0
- package/dist/core/discovery/scan.d.ts.map +1 -0
- package/dist/core/discovery/scan.js +105 -0
- package/dist/core/discovery/scan.js.map +1 -0
- package/dist/core/discovery/shared.d.ts +100 -0
- package/dist/core/discovery/shared.d.ts.map +1 -0
- package/dist/core/discovery/shared.js +187 -0
- package/dist/core/discovery/shared.js.map +1 -0
- package/dist/core/discovery-watch.d.ts +1 -8
- package/dist/core/discovery-watch.d.ts.map +1 -1
- package/dist/core/discovery-watch.js +1 -100
- package/dist/core/discovery-watch.js.map +1 -1
- package/dist/core/discovery.d.ts +4 -31
- package/dist/core/discovery.d.ts.map +1 -1
- package/dist/core/discovery.js +3 -468
- package/dist/core/discovery.js.map +1 -1
- package/dist/core/discovery_watch/runtime.d.ts +9 -0
- package/dist/core/discovery_watch/runtime.d.ts.map +1 -0
- package/dist/core/discovery_watch/runtime.js +127 -0
- package/dist/core/discovery_watch/runtime.js.map +1 -0
- package/dist/core/esbuild-options.d.ts +1 -1
- package/dist/core/esbuild-options.d.ts.map +1 -1
- package/dist/core/esbuild-options.js +38 -38
- package/dist/core/esbuild-options.js.map +1 -1
- package/dist/core/import-graph.d.ts +1 -3
- package/dist/core/import-graph.d.ts.map +1 -1
- package/dist/core/import-graph.js +1 -409
- package/dist/core/import-graph.js.map +1 -1
- package/dist/core/import_graph/parse.d.ts +6 -0
- package/dist/core/import_graph/parse.d.ts.map +1 -0
- package/dist/core/import_graph/parse.js +134 -0
- package/dist/core/import_graph/parse.js.map +1 -0
- package/dist/core/import_graph/resolve.d.ts +4 -0
- package/dist/core/import_graph/resolve.d.ts.map +1 -0
- package/dist/core/import_graph/resolve.js +105 -0
- package/dist/core/import_graph/resolve.js.map +1 -0
- package/dist/core/import_graph/shared.d.ts +21 -0
- package/dist/core/import_graph/shared.d.ts.map +1 -0
- package/dist/core/import_graph/shared.js +27 -0
- package/dist/core/import_graph/shared.js.map +1 -0
- package/dist/core/import_graph/tsconfig.d.ts +7 -0
- package/dist/core/import_graph/tsconfig.d.ts.map +1 -0
- package/dist/core/import_graph/tsconfig.js +111 -0
- package/dist/core/import_graph/tsconfig.js.map +1 -0
- package/dist/core/manifest.d.ts +1 -1
- package/dist/core/manifest.d.ts.map +1 -1
- package/dist/core/manifest.js.map +1 -1
- package/dist/core/shared.d.ts +5 -4
- package/dist/core/shared.d.ts.map +1 -1
- package/dist/core/shared.js +12 -4
- package/dist/core/shared.js.map +1 -1
- package/dist/core/watch.d.ts +1 -1
- package/dist/core/watch.d.ts.map +1 -1
- package/dist/core/watch.js +143 -135
- package/dist/core/watch.js.map +1 -1
- package/dist/frontend/js/utils/text.d.ts +2 -0
- package/dist/frontend/js/utils/text.d.ts.map +1 -0
- package/dist/frontend/js/utils/text.js +4 -0
- package/dist/frontend/js/utils/text.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/logging.d.ts.map +1 -1
- package/dist/logging.js.map +1 -1
- package/dist/plugins/scss.d.ts +1 -1
- package/dist/plugins/scss.d.ts.map +1 -1
- package/dist/plugins/scss.js.map +1 -1
- package/dist/plugins/source-annotations.d.ts +1 -1
- package/dist/plugins/source-annotations.d.ts.map +1 -1
- package/dist/plugins/source-annotations.js.map +1 -1
- package/dist/plugins/virtual-entries.d.ts +1 -1
- package/dist/plugins/virtual-entries.d.ts.map +1 -1
- package/dist/plugins/virtual-entries.js +1 -1
- package/dist/plugins/virtual-entries.js.map +1 -1
- package/dist/src/backend/utils/normalize.d.ts +2 -0
- package/dist/src/backend/utils/normalize.d.ts.map +1 -0
- package/dist/src/backend/utils/normalize.js +4 -0
- package/dist/src/backend/utils/normalize.js.map +1 -0
- package/dist/src/backend/utils/object.d.ts +3 -0
- package/dist/src/backend/utils/object.d.ts.map +1 -0
- package/dist/src/backend/utils/object.js +12 -0
- package/dist/src/backend/utils/object.js.map +1 -0
- package/dist/src/backend/utils/time.d.ts +3 -0
- package/dist/src/backend/utils/time.d.ts.map +1 -0
- package/dist/src/backend/utils/time.js +7 -0
- package/dist/src/backend/utils/time.js.map +1 -0
- package/dist/src/cli/run-cli.d.ts +14 -0
- package/dist/src/cli/run-cli.d.ts.map +1 -0
- package/dist/src/cli/run-cli.js +108 -0
- package/dist/src/cli/run-cli.js.map +1 -0
- package/dist/src/cli.d.ts +5 -0
- package/dist/src/cli.d.ts.map +1 -0
- package/dist/src/cli.js +10 -0
- package/dist/src/cli.js.map +1 -0
- package/dist/src/config/index.d.ts +5 -0
- package/dist/src/config/index.d.ts.map +1 -0
- package/dist/src/config/index.js +32 -0
- package/dist/src/config/index.js.map +1 -0
- package/dist/src/constants.d.ts +4 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/constants.js +4 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/core/asset-manifest.d.ts +2 -0
- package/dist/src/core/asset-manifest.d.ts.map +1 -0
- package/dist/src/core/asset-manifest.js +2 -0
- package/dist/src/core/asset-manifest.js.map +1 -0
- package/dist/src/core/asset_manifest/runtime.d.ts +5 -0
- package/dist/src/core/asset_manifest/runtime.d.ts.map +1 -0
- package/dist/src/core/asset_manifest/runtime.js +252 -0
- package/dist/src/core/asset_manifest/runtime.js.map +1 -0
- package/dist/src/core/build.d.ts +4 -0
- package/dist/src/core/build.d.ts.map +1 -0
- package/dist/src/core/build.js +49 -0
- package/dist/src/core/build.js.map +1 -0
- package/dist/src/core/derive-manifest.d.ts +3 -0
- package/dist/src/core/derive-manifest.d.ts.map +1 -0
- package/dist/src/core/derive-manifest.js +2 -0
- package/dist/src/core/derive-manifest.js.map +1 -0
- package/dist/src/core/derive_manifest/runtime.d.ts +10 -0
- package/dist/src/core/derive_manifest/runtime.d.ts.map +1 -0
- package/dist/src/core/derive_manifest/runtime.js +133 -0
- package/dist/src/core/derive_manifest/runtime.js.map +1 -0
- package/dist/src/core/discovery/aggregate.d.ts +32 -0
- package/dist/src/core/discovery/aggregate.d.ts.map +1 -0
- package/dist/src/core/discovery/aggregate.js +124 -0
- package/dist/src/core/discovery/aggregate.js.map +1 -0
- package/dist/src/core/discovery/emit.d.ts +22 -0
- package/dist/src/core/discovery/emit.d.ts.map +1 -0
- package/dist/src/core/discovery/emit.js +37 -0
- package/dist/src/core/discovery/emit.js.map +1 -0
- package/dist/src/core/discovery/normalize.d.ts +8 -0
- package/dist/src/core/discovery/normalize.d.ts.map +1 -0
- package/dist/src/core/discovery/normalize.js +130 -0
- package/dist/src/core/discovery/normalize.js.map +1 -0
- package/dist/src/core/discovery/public.d.ts +5 -0
- package/dist/src/core/discovery/public.d.ts.map +1 -0
- package/dist/src/core/discovery/public.js +25 -0
- package/dist/src/core/discovery/public.js.map +1 -0
- package/dist/src/core/discovery/resolve.d.ts +9 -0
- package/dist/src/core/discovery/resolve.d.ts.map +1 -0
- package/dist/src/core/discovery/resolve.js +235 -0
- package/dist/src/core/discovery/resolve.js.map +1 -0
- package/dist/src/core/discovery/scan.d.ts +29 -0
- package/dist/src/core/discovery/scan.d.ts.map +1 -0
- package/dist/src/core/discovery/scan.js +105 -0
- package/dist/src/core/discovery/scan.js.map +1 -0
- package/dist/src/core/discovery/shared.d.ts +100 -0
- package/dist/src/core/discovery/shared.d.ts.map +1 -0
- package/dist/src/core/discovery/shared.js +187 -0
- package/dist/src/core/discovery/shared.js.map +1 -0
- package/dist/src/core/discovery-watch.d.ts +2 -0
- package/dist/src/core/discovery-watch.d.ts.map +1 -0
- package/dist/src/core/discovery-watch.js +2 -0
- package/dist/src/core/discovery-watch.js.map +1 -0
- package/dist/src/core/discovery.d.ts +5 -0
- package/dist/src/core/discovery.d.ts.map +1 -0
- package/dist/src/core/discovery.js +4 -0
- package/dist/src/core/discovery.js.map +1 -0
- package/dist/src/core/discovery_watch/runtime.d.ts +9 -0
- package/dist/src/core/discovery_watch/runtime.d.ts.map +1 -0
- package/dist/src/core/discovery_watch/runtime.js +127 -0
- package/dist/src/core/discovery_watch/runtime.js.map +1 -0
- package/dist/src/core/esbuild-options.d.ts +30 -0
- package/dist/src/core/esbuild-options.d.ts.map +1 -0
- package/dist/src/core/esbuild-options.js +93 -0
- package/dist/src/core/esbuild-options.js.map +1 -0
- package/dist/src/core/import-graph.d.ts +2 -0
- package/dist/src/core/import-graph.d.ts.map +1 -0
- package/dist/src/core/import-graph.js +2 -0
- package/dist/src/core/import-graph.js.map +1 -0
- package/dist/src/core/import_graph/parse.d.ts +6 -0
- package/dist/src/core/import_graph/parse.d.ts.map +1 -0
- package/dist/src/core/import_graph/parse.js +134 -0
- package/dist/src/core/import_graph/parse.js.map +1 -0
- package/dist/src/core/import_graph/resolve.d.ts +4 -0
- package/dist/src/core/import_graph/resolve.d.ts.map +1 -0
- package/dist/src/core/import_graph/resolve.js +105 -0
- package/dist/src/core/import_graph/resolve.js.map +1 -0
- package/dist/src/core/import_graph/shared.d.ts +21 -0
- package/dist/src/core/import_graph/shared.d.ts.map +1 -0
- package/dist/src/core/import_graph/shared.js +27 -0
- package/dist/src/core/import_graph/shared.js.map +1 -0
- package/dist/src/core/import_graph/tsconfig.d.ts +7 -0
- package/dist/src/core/import_graph/tsconfig.d.ts.map +1 -0
- package/dist/src/core/import_graph/tsconfig.js +111 -0
- package/dist/src/core/import_graph/tsconfig.js.map +1 -0
- package/dist/src/core/manifest.d.ts +15 -0
- package/dist/src/core/manifest.d.ts.map +1 -0
- package/dist/src/core/manifest.js +29 -0
- package/dist/src/core/manifest.js.map +1 -0
- package/dist/src/core/shared.d.ts +17 -0
- package/dist/src/core/shared.d.ts.map +1 -0
- package/dist/src/core/shared.js +71 -0
- package/dist/src/core/shared.js.map +1 -0
- package/dist/src/core/watch.d.ts +4 -0
- package/dist/src/core/watch.d.ts.map +1 -0
- package/dist/src/core/watch.js +185 -0
- package/dist/src/core/watch.js.map +1 -0
- package/dist/src/frontend/js/utils/text.d.ts +2 -0
- package/dist/src/frontend/js/utils/text.d.ts.map +1 -0
- package/dist/src/frontend/js/utils/text.js +4 -0
- package/dist/src/frontend/js/utils/text.js.map +1 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +13 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/logging.d.ts +5 -0
- package/dist/src/logging.d.ts.map +1 -0
- package/dist/src/logging.js +35 -0
- package/dist/src/logging.js.map +1 -0
- package/dist/src/plugins/scss.d.ts +11 -0
- package/dist/src/plugins/scss.d.ts.map +1 -0
- package/dist/src/plugins/scss.js +44 -0
- package/dist/src/plugins/scss.js.map +1 -0
- package/dist/src/plugins/source-annotations.d.ts +17 -0
- package/dist/src/plugins/source-annotations.d.ts.map +1 -0
- package/dist/src/plugins/source-annotations.js +78 -0
- package/dist/src/plugins/source-annotations.js.map +1 -0
- package/dist/src/plugins/virtual-entries.d.ts +11 -0
- package/dist/src/plugins/virtual-entries.d.ts.map +1 -0
- package/dist/src/plugins/virtual-entries.js +39 -0
- package/dist/src/plugins/virtual-entries.js.map +1 -0
- package/dist/src/types/discovery.d.ts +91 -0
- package/dist/src/types/discovery.d.ts.map +1 -0
- package/dist/src/types/discovery.js +2 -0
- package/dist/src/types/discovery.js.map +1 -0
- package/dist/src/types/import_graph.d.ts +29 -0
- package/dist/src/types/import_graph.d.ts.map +1 -0
- package/dist/src/types/import_graph.js +2 -0
- package/dist/src/types/import_graph.js.map +1 -0
- package/dist/src/types/logging.d.ts +9 -0
- package/dist/src/types/logging.d.ts.map +1 -0
- package/dist/src/types/logging.js +2 -0
- package/dist/src/types/logging.js.map +1 -0
- package/dist/src/types/manifest.d.ts +106 -0
- package/dist/src/types/manifest.d.ts.map +1 -0
- package/dist/src/types/manifest.js +2 -0
- package/dist/src/types/manifest.js.map +1 -0
- package/dist/src/types/runtime.d.ts +53 -0
- package/dist/src/types/runtime.d.ts.map +1 -0
- package/dist/src/types/runtime.js +2 -0
- package/dist/src/types/runtime.js.map +1 -0
- package/dist/src/types.d.ts +6 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +2 -0
- package/dist/src/types.js.map +1 -0
- package/dist/types/discovery.d.ts +91 -0
- package/dist/types/discovery.d.ts.map +1 -0
- package/dist/types/discovery.js +2 -0
- package/dist/types/discovery.js.map +1 -0
- package/dist/types/import_graph.d.ts +29 -0
- package/dist/types/import_graph.d.ts.map +1 -0
- package/dist/types/import_graph.js +2 -0
- package/dist/types/import_graph.js.map +1 -0
- package/dist/types/logging.d.ts +9 -0
- package/dist/types/logging.d.ts.map +1 -0
- package/dist/types/logging.js +2 -0
- package/dist/types/logging.js.map +1 -0
- package/dist/types/manifest.d.ts +106 -0
- package/dist/types/manifest.d.ts.map +1 -0
- package/dist/types/manifest.js +2 -0
- package/dist/types/manifest.js.map +1 -0
- package/dist/types/runtime.d.ts +53 -0
- package/dist/types/runtime.d.ts.map +1 -0
- package/dist/types/runtime.js +2 -0
- package/dist/types/runtime.js.map +1 -0
- package/dist/types.d.ts +5 -216
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +119 -41
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Format, Metafile } from "esbuild";
|
|
2
|
+
import type { ResultLike } from "@trebired/result";
|
|
3
|
+
import type { BundlerResolvedDiscovery } from "./discovery.js";
|
|
4
|
+
import type { BundlerLogger, BundlerLoggerAdapter } from "./logging.js";
|
|
5
|
+
import type { BundlerAssetManifest, BundlerManifestOptions } from "./manifest.js";
|
|
6
|
+
type BundlerEnvironment = "browser" | "node" | "neutral";
|
|
7
|
+
type BundlerOptions = {
|
|
8
|
+
discover: import("./discovery.js").BundlerDiscoverOptions | import("./discovery.js").BundlerDiscoverOptions[];
|
|
9
|
+
outDir: string;
|
|
10
|
+
rootDir?: string;
|
|
11
|
+
environment?: BundlerEnvironment;
|
|
12
|
+
format?: Format;
|
|
13
|
+
target?: string | string[];
|
|
14
|
+
minify?: boolean;
|
|
15
|
+
stripComments?: boolean;
|
|
16
|
+
sourcemap?: boolean | "inline" | "external";
|
|
17
|
+
splitting?: boolean;
|
|
18
|
+
publicPath?: string;
|
|
19
|
+
external?: string[];
|
|
20
|
+
define?: Record<string, string>;
|
|
21
|
+
clean?: boolean;
|
|
22
|
+
annotateSources?: boolean;
|
|
23
|
+
manifest?: BundlerManifestOptions;
|
|
24
|
+
onRebuilt?: (result: BundlerBuildResult) => void | Promise<void>;
|
|
25
|
+
onEntrySetChanged?: (entries: Record<string, string>) => void | Promise<void>;
|
|
26
|
+
logger?: BundlerLogger;
|
|
27
|
+
loggerAdapter?: BundlerLoggerAdapter;
|
|
28
|
+
};
|
|
29
|
+
type BundlerBuildResult = {
|
|
30
|
+
entries: Record<string, string>;
|
|
31
|
+
outputs: string[];
|
|
32
|
+
warnings: number;
|
|
33
|
+
metafile?: Metafile;
|
|
34
|
+
assetManifest?: BundlerAssetManifest;
|
|
35
|
+
manifestPath?: string;
|
|
36
|
+
durationMs: number;
|
|
37
|
+
resolvedDiscovery: BundlerResolvedDiscovery;
|
|
38
|
+
result?: ResultLike<{
|
|
39
|
+
durationMs: number;
|
|
40
|
+
outputs: string[];
|
|
41
|
+
warnings: number;
|
|
42
|
+
}>;
|
|
43
|
+
};
|
|
44
|
+
type BundlerWatchSession = {
|
|
45
|
+
rebuild(): Promise<BundlerBuildResult>;
|
|
46
|
+
dispose(): Promise<void>;
|
|
47
|
+
};
|
|
48
|
+
type LoadedBundlerConfig = {
|
|
49
|
+
config: BundlerOptions;
|
|
50
|
+
configPath: string;
|
|
51
|
+
};
|
|
52
|
+
export type { BundlerBuildResult, BundlerEnvironment, BundlerOptions, BundlerWatchSession, LoadedBundlerConfig, };
|
|
53
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/types/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAElF,KAAK,kBAAkB,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAEzD,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,OAAO,gBAAgB,EAAE,sBAAsB,GAAG,OAAO,gBAAgB,EAAE,sBAAsB,EAAE,CAAC;IAC9G,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjE,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9E,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACtC,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C,MAAM,CAAC,EAAE,UAAU,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC,CAAC;CACJ,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,OAAO,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACvC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,GACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/types/runtime.ts"],"names":[],"mappings":""}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,217 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
type
|
|
5
|
-
type
|
|
6
|
-
type BundlerGenericLogMethod = LoggerAdapterGenericLogMethod;
|
|
7
|
-
type BundlerLogEvent = LoggerAdapterEvent;
|
|
8
|
-
type NormalizedBundlerLogger = NormalizedLoggerAdapter;
|
|
9
|
-
type BundlerVirtualEntryLoader = "css" | "ts";
|
|
10
|
-
type BundlerDiscoverRuleStrategy = "entry" | "bundle" | "ignore";
|
|
11
|
-
type BundlerEntryKind = "entry" | "bundle";
|
|
12
|
-
type BundlerEntrySource = "discover" | "internal";
|
|
13
|
-
type BundlerDiscoverRule = {
|
|
14
|
-
key: string;
|
|
15
|
-
include: string[];
|
|
16
|
-
exclude?: string[];
|
|
17
|
-
strategy: BundlerDiscoverRuleStrategy;
|
|
18
|
-
maxBundleSize?: number | string;
|
|
19
|
-
};
|
|
20
|
-
type BundlerDiscoverOptions = {
|
|
21
|
-
dir: string;
|
|
22
|
-
rules: BundlerDiscoverRule[];
|
|
23
|
-
ignoreDirs?: string[];
|
|
24
|
-
};
|
|
25
|
-
type BundlerManifestOptions = boolean | {
|
|
26
|
-
file?: string;
|
|
27
|
-
};
|
|
28
|
-
type BundlerEnvironment = "browser" | "node" | "neutral";
|
|
29
|
-
type BundlerEntryRecord = {
|
|
30
|
-
contents?: string;
|
|
31
|
-
entrySource?: string;
|
|
32
|
-
key: string;
|
|
33
|
-
kind: BundlerEntryKind;
|
|
34
|
-
name: string;
|
|
35
|
-
ownedSources: string[];
|
|
36
|
-
path: string;
|
|
37
|
-
ruleKey: string;
|
|
38
|
-
source: BundlerEntrySource;
|
|
39
|
-
strategy: Exclude<BundlerDiscoverRuleStrategy, "ignore">;
|
|
40
|
-
virtualLoader?: BundlerVirtualEntryLoader;
|
|
41
|
-
};
|
|
42
|
-
type BundlerResolvedRule = {
|
|
43
|
-
entryKeys: string[];
|
|
44
|
-
ignoredSources: string[];
|
|
45
|
-
ruleKey: string;
|
|
46
|
-
strategy: BundlerDiscoverRuleStrategy;
|
|
47
|
-
};
|
|
48
|
-
type BundlerResolvedDiscovery = {
|
|
49
|
-
entries: BundlerEntryRecord[];
|
|
50
|
-
rules: Record<string, BundlerResolvedRule>;
|
|
51
|
-
sourceOwners: Record<string, string>;
|
|
52
|
-
};
|
|
53
|
-
type BundlerDerivedManifestEntry = {
|
|
54
|
-
entryOutput: string;
|
|
55
|
-
entryName?: string;
|
|
56
|
-
inputs: string[];
|
|
57
|
-
js: string[];
|
|
58
|
-
css: string[];
|
|
59
|
-
imports: string[];
|
|
60
|
-
};
|
|
61
|
-
type BundlerDerivedManifestChunk = {
|
|
62
|
-
output: string;
|
|
63
|
-
inputs: string[];
|
|
64
|
-
css: string[];
|
|
65
|
-
imports: string[];
|
|
66
|
-
};
|
|
67
|
-
type BundlerDerivedManifestOutputKind = "asset" | "chunk" | "entry";
|
|
68
|
-
type BundlerDerivedManifestOutput = {
|
|
69
|
-
output: string;
|
|
70
|
-
kind: BundlerDerivedManifestOutputKind;
|
|
71
|
-
entryPoint?: string;
|
|
72
|
-
entryName?: string;
|
|
73
|
-
inputs: string[];
|
|
74
|
-
css: string[];
|
|
75
|
-
imports: string[];
|
|
76
|
-
bytes: number;
|
|
77
|
-
};
|
|
78
|
-
type BundlerDerivedManifest = {
|
|
79
|
-
entries: Record<string, BundlerDerivedManifestEntry>;
|
|
80
|
-
chunks: Record<string, BundlerDerivedManifestChunk>;
|
|
81
|
-
allOutputs: Record<string, BundlerDerivedManifestOutput>;
|
|
82
|
-
};
|
|
83
|
-
type BundlerAssetManifestEntry = {
|
|
84
|
-
assets: string[];
|
|
85
|
-
css: string[];
|
|
86
|
-
entryOutput: string;
|
|
87
|
-
entrySource?: string;
|
|
88
|
-
file: string;
|
|
89
|
-
imports: string[];
|
|
90
|
-
js: string[];
|
|
91
|
-
key: string;
|
|
92
|
-
kind: BundlerEntryKind;
|
|
93
|
-
outputs: string[];
|
|
94
|
-
ruleKey: string;
|
|
95
|
-
sources: string[];
|
|
96
|
-
strategy: Exclude<BundlerDiscoverRuleStrategy, "ignore">;
|
|
97
|
-
};
|
|
98
|
-
type BundlerAssetManifestSource = {
|
|
99
|
-
entryKey: string;
|
|
100
|
-
outputs: string[];
|
|
101
|
-
ruleKey: string;
|
|
102
|
-
source: string;
|
|
103
|
-
strategy: Exclude<BundlerDiscoverRuleStrategy, "ignore">;
|
|
104
|
-
};
|
|
105
|
-
type BundlerAssetManifestRule = {
|
|
106
|
-
entryKeys: string[];
|
|
107
|
-
ignoredSources: string[];
|
|
108
|
-
ruleKey: string;
|
|
109
|
-
strategy: BundlerDiscoverRuleStrategy;
|
|
110
|
-
};
|
|
111
|
-
type BundlerAssetManifestOutput = {
|
|
112
|
-
bytes: number;
|
|
113
|
-
css: string[];
|
|
114
|
-
entryKey?: string;
|
|
115
|
-
entryPoint?: string;
|
|
116
|
-
imports: string[];
|
|
117
|
-
inputs: string[];
|
|
118
|
-
kind: BundlerDerivedManifestOutputKind;
|
|
119
|
-
output: string;
|
|
120
|
-
ruleKey?: string;
|
|
121
|
-
strategy?: Exclude<BundlerDiscoverRuleStrategy, "ignore">;
|
|
122
|
-
};
|
|
123
|
-
type BundlerAssetManifest = {
|
|
124
|
-
entries: Record<string, BundlerAssetManifestEntry>;
|
|
125
|
-
entryOutputs: Record<string, string>;
|
|
126
|
-
outputs: Record<string, BundlerAssetManifestOutput>;
|
|
127
|
-
rules: Record<string, BundlerAssetManifestRule>;
|
|
128
|
-
sources: Record<string, BundlerAssetManifestSource>;
|
|
129
|
-
};
|
|
130
|
-
type BundlerBuildAssetManifestOptions = {
|
|
131
|
-
metafile: Metafile;
|
|
132
|
-
resolvedDiscovery?: BundlerResolvedDiscovery;
|
|
133
|
-
rootDir: string;
|
|
134
|
-
outDir: string;
|
|
135
|
-
};
|
|
136
|
-
type BundlerCollectAssetLinksLookup = "auto" | "entryKey" | "entryOutput" | "source";
|
|
137
|
-
type BundlerCollectAssetLinksOptions = {
|
|
138
|
-
from?: BundlerCollectAssetLinksLookup;
|
|
139
|
-
publicPath?: string;
|
|
140
|
-
};
|
|
141
|
-
type BundlerCollectedAssetLinks = {
|
|
142
|
-
entryKeys: string[];
|
|
143
|
-
scripts: string[];
|
|
144
|
-
styles: string[];
|
|
145
|
-
assets: string[];
|
|
146
|
-
outputs: string[];
|
|
147
|
-
missing: string[];
|
|
148
|
-
};
|
|
149
|
-
type BundlerTsconfigPaths = Record<string, string[]>;
|
|
150
|
-
type BundlerImportGraphTsconfigOptions = boolean | string | {
|
|
151
|
-
file?: string;
|
|
152
|
-
baseUrl?: string;
|
|
153
|
-
paths?: BundlerTsconfigPaths;
|
|
154
|
-
};
|
|
155
|
-
type BundlerImportGraphImportKind = "dynamic-import" | "export-from" | "import";
|
|
156
|
-
type BundlerImportGraphImport = {
|
|
157
|
-
specifier: string;
|
|
158
|
-
kind: BundlerImportGraphImportKind;
|
|
159
|
-
resolved?: string;
|
|
160
|
-
external: boolean;
|
|
161
|
-
};
|
|
162
|
-
type BundlerImportGraphFile = {
|
|
163
|
-
path: string;
|
|
164
|
-
imports: BundlerImportGraphImport[];
|
|
165
|
-
};
|
|
166
|
-
type BundlerImportGraph = {
|
|
167
|
-
entries: string[];
|
|
168
|
-
files: Record<string, BundlerImportGraphFile>;
|
|
169
|
-
};
|
|
170
|
-
type BundlerImportGraphOptions = {
|
|
171
|
-
entries: string | string[];
|
|
172
|
-
rootDir?: string;
|
|
173
|
-
extensions?: string[];
|
|
174
|
-
tsconfig?: BundlerImportGraphTsconfigOptions;
|
|
175
|
-
};
|
|
176
|
-
type BundlerOptions = {
|
|
177
|
-
discover: BundlerDiscoverOptions | BundlerDiscoverOptions[];
|
|
178
|
-
outDir: string;
|
|
179
|
-
rootDir?: string;
|
|
180
|
-
environment?: BundlerEnvironment;
|
|
181
|
-
format?: Format;
|
|
182
|
-
target?: string | string[];
|
|
183
|
-
minify?: boolean;
|
|
184
|
-
stripComments?: boolean;
|
|
185
|
-
sourcemap?: boolean | "inline" | "external";
|
|
186
|
-
splitting?: boolean;
|
|
187
|
-
publicPath?: string;
|
|
188
|
-
external?: string[];
|
|
189
|
-
define?: Record<string, string>;
|
|
190
|
-
clean?: boolean;
|
|
191
|
-
annotateSources?: boolean;
|
|
192
|
-
manifest?: BundlerManifestOptions;
|
|
193
|
-
onRebuilt?: (result: BundlerBuildResult) => void | Promise<void>;
|
|
194
|
-
onEntrySetChanged?: (entries: Record<string, string>) => void | Promise<void>;
|
|
195
|
-
logger?: BundlerLogger;
|
|
196
|
-
loggerAdapter?: BundlerLoggerAdapter;
|
|
197
|
-
};
|
|
198
|
-
type BundlerBuildResult = {
|
|
199
|
-
entries: Record<string, string>;
|
|
200
|
-
outputs: string[];
|
|
201
|
-
warnings: number;
|
|
202
|
-
metafile?: Metafile;
|
|
203
|
-
assetManifest?: BundlerAssetManifest;
|
|
204
|
-
manifestPath?: string;
|
|
205
|
-
durationMs: number;
|
|
206
|
-
resolvedDiscovery: BundlerResolvedDiscovery;
|
|
207
|
-
};
|
|
208
|
-
type BundlerWatchSession = {
|
|
209
|
-
rebuild(): Promise<BundlerBuildResult>;
|
|
210
|
-
dispose(): Promise<void>;
|
|
211
|
-
};
|
|
212
|
-
type LoadedBundlerConfig = {
|
|
213
|
-
config: BundlerOptions;
|
|
214
|
-
configPath: string;
|
|
215
|
-
};
|
|
216
|
-
export type { BundlerAssetManifest, BundlerAssetManifestEntry, BundlerAssetManifestOutput, BundlerAssetManifestRule, BundlerAssetManifestSource, BundlerBuildAssetManifestOptions, BundlerBuildResult, BundlerCollectedAssetLinks, BundlerCollectAssetLinksLookup, BundlerCollectAssetLinksOptions, BundlerDerivedManifest, BundlerDerivedManifestChunk, BundlerDerivedManifestEntry, BundlerDerivedManifestOutput, BundlerDerivedManifestOutputKind, BundlerDiscoverOptions, BundlerDiscoverRule, BundlerDiscoverRuleStrategy, BundlerEntryKind, BundlerEntryRecord, BundlerEntrySource, BundlerEnvironment, BundlerGenericLogMethod, BundlerImportGraph, BundlerImportGraphFile, BundlerImportGraphImport, BundlerImportGraphImportKind, BundlerImportGraphOptions, BundlerImportGraphTsconfigOptions, BundlerLogEvent, BundlerLogger, BundlerLoggerAdapter, BundlerLogMethod, BundlerManifestOptions, BundlerOptions, BundlerResolvedDiscovery, BundlerResolvedRule, BundlerTsconfigPaths, BundlerVirtualEntryLoader, BundlerWatchSession, LoadedBundlerConfig, NormalizedBundlerLogger, };
|
|
1
|
+
export type { BundlerGenericLogMethod, BundlerLogEvent, BundlerLogger, BundlerLoggerAdapter, BundlerLogMethod, NormalizedBundlerLogger, } from "./types/logging.js";
|
|
2
|
+
export type { BundlerAggregateEntryMetadata, BundlerAggregateKind, BundlerAggregateModuleMap, BundlerAggregateModuleMapExports, BundlerAggregateRuleMetadata, BundlerDiscoverAggregateRule, BundlerDiscoverBundleRule, BundlerDiscoverEntryRule, BundlerDiscoverIgnoreRule, BundlerDiscoverOptions, BundlerDiscoverRule, BundlerDiscoverRuleStrategy, BundlerEntryKind, BundlerEntryRecord, BundlerEntrySource, BundlerResolvedDiscovery, BundlerResolvedRule, BundlerVirtualEntryLoader, } from "./types/discovery.js";
|
|
3
|
+
export type { BundlerAssetManifest, BundlerAssetManifestEntry, BundlerAssetManifestOutput, BundlerAssetManifestRule, BundlerAssetManifestSource, BundlerBuildAssetManifestOptions, BundlerCollectedAssetLinks, BundlerCollectAssetLinksLookup, BundlerCollectAssetLinksOptions, BundlerDerivedManifest, BundlerDerivedManifestChunk, BundlerDerivedManifestEntry, BundlerDerivedManifestOutput, BundlerDerivedManifestOutputKind, BundlerManifestOptions, } from "./types/manifest.js";
|
|
4
|
+
export type { BundlerImportGraph, BundlerImportGraphFile, BundlerImportGraphImport, BundlerImportGraphImportKind, BundlerImportGraphOptions, BundlerImportGraphTsconfigOptions, BundlerTsconfigPaths, } from "./types/import_graph.js";
|
|
5
|
+
export type { BundlerBuildResult, BundlerEnvironment, BundlerOptions, BundlerWatchSession, LoadedBundlerConfig, } from "./types/runtime.js";
|
|
217
6
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,6BAA6B,EAC7B,oBAAoB,EACpB,yBAAyB,EACzB,gCAAgC,EAChC,4BAA4B,EAC5B,4BAA4B,EAC5B,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,mBAAmB,EACnB,2BAA2B,EAC3B,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC1B,gCAAgC,EAChC,0BAA0B,EAC1B,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,gCAAgC,EAChC,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EACzB,iCAAiC,EACjC,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC"}
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,43 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"description": "Discover-only esbuild bundler wrapper with SCSS support, watch mode, and runtime asset manifests.",
|
|
5
|
-
"license": "AGPL-3.0-only",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"bundler",
|
|
8
|
-
"esbuild",
|
|
9
|
-
"scss",
|
|
10
|
-
"typescript",
|
|
11
|
-
"bun",
|
|
12
|
-
"node"
|
|
13
|
-
],
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "https://github.com/Trebired/bundler"
|
|
2
|
+
"bin": {
|
|
3
|
+
"trebired-bundler": "./dist/cli.js"
|
|
17
4
|
},
|
|
18
5
|
"bugs": {
|
|
19
6
|
"url": "https://github.com/Trebired/bundler/issues"
|
|
20
7
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@trebired/logger-adapter": "^0.2.2",
|
|
10
|
+
"@trebired/result": "^0.2.0",
|
|
11
|
+
"esbuild": "^0.28.0",
|
|
12
|
+
"sass-embedded": "^1.100.0"
|
|
26
13
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
14
|
+
"description": "Discover-only esbuild bundler wrapper with SCSS support, watch mode, and runtime asset manifests.",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@trebired/code-discipline": "^3.1.1",
|
|
17
|
+
"@types/bun": "^1.3.4",
|
|
18
|
+
"@types/node": "^24.10.1",
|
|
19
|
+
"typescript": "^6.0.2"
|
|
30
20
|
},
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"bin": {
|
|
35
|
-
"trebired-bundler": "./dist/cli.js"
|
|
21
|
+
"engines": {
|
|
22
|
+
"bun": ">=1.0.0",
|
|
23
|
+
"node": ">=18"
|
|
36
24
|
},
|
|
37
25
|
"exports": {
|
|
38
26
|
".": {
|
|
39
|
-
"
|
|
40
|
-
"
|
|
27
|
+
"import": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts"
|
|
41
29
|
}
|
|
42
30
|
},
|
|
43
31
|
"files": [
|
|
@@ -46,21 +34,111 @@
|
|
|
46
34
|
"LICENSE",
|
|
47
35
|
"README.md"
|
|
48
36
|
],
|
|
37
|
+
"homepage": "https://github.com/Trebired/bundler#readme",
|
|
38
|
+
"imports": {
|
|
39
|
+
"#06pzcq19xy5h": "./test/specs/discovery-watch.spec.ts",
|
|
40
|
+
"#0c1loaldfmda": "./test/specs/helpers.ts",
|
|
41
|
+
"#0e84q8f4ubat": "./src/constants.ts",
|
|
42
|
+
"#17f3fba84f54": "./src/core/asset-manifest.ts",
|
|
43
|
+
"#18o0cf9c108j": "./src/plugins/virtual-entries.ts",
|
|
44
|
+
"#2fp58v7071qe": "./src/cli/run-cli.ts",
|
|
45
|
+
"#2hmco05zhfpg": "./src/core/import_graph/parse.ts",
|
|
46
|
+
"#2uykeoj5sj91": "./test/specs/asset-manifest.spec.ts",
|
|
47
|
+
"#3c8d8166992a": "./src/types.ts",
|
|
48
|
+
"#3vcuvpnm2226": "./test/specs/aggregate.spec.ts",
|
|
49
|
+
"#47cd321d28f1": "./src/core/shared.ts",
|
|
50
|
+
"#577a7bee60a4": "./src/core/esbuild-options.ts",
|
|
51
|
+
"#5cf84759faf3": "./src/core/discovery-watch.ts",
|
|
52
|
+
"#5kd9snhn6zft": "./src/core/discovery.ts",
|
|
53
|
+
"#5zpn5tshpwdi": "./src/backend/utils/object.ts",
|
|
54
|
+
"#644f3e1f42a8": "./src/core/watch.ts",
|
|
55
|
+
"#68011e944d8d": "./src/core/import-graph.ts",
|
|
56
|
+
"#6wgcj9fvnm87": "./src/types/runtime.ts",
|
|
57
|
+
"#7411257gf9xf": "./src/backend/utils/time.ts",
|
|
58
|
+
"#751yrciipoz0": "./src/plugins/scss.ts",
|
|
59
|
+
"#7h0tnral48hu": "./src/core/shared.ts",
|
|
60
|
+
"#96uow2p60uw3": "./test/specs/aggregate.spec.ts",
|
|
61
|
+
"#9b50ca986572": "./src/core/build.ts",
|
|
62
|
+
"#9vdbrjjdq8x7": "./test/specs/discovery-watch.spec.ts",
|
|
63
|
+
"#a222003f1819": "./src/core/manifest.ts",
|
|
64
|
+
"#ac4df8b0b80a": "./src/cli/run-cli.ts",
|
|
65
|
+
"#aojehsmd54nq": "./src/core/manifest.ts",
|
|
66
|
+
"#arl4fcea8kjn": "./test/specs/watch.spec.ts",
|
|
67
|
+
"#axis79i54k87": "./src/core/discovery/normalize.ts",
|
|
68
|
+
"#b78ku6qgmf3o": "./src/backend/utils/normalize.ts",
|
|
69
|
+
"#bekyanw1fl4u": "./test/specs/discover.spec.ts",
|
|
70
|
+
"#bsf2dvgwb1qx": "./examples/dummy.ts",
|
|
71
|
+
"#c16c81be3058": "./src/core/discovery.ts",
|
|
72
|
+
"#c460d1e7c1c3": "./src/core/derive-manifest.ts",
|
|
73
|
+
"#cjs3kmwh1gzy": "./src/frontend/js/utils/text.ts",
|
|
74
|
+
"#dcx0jw9bw3ka": "./src/logging.ts",
|
|
75
|
+
"#df3icj7pr6k8": "./src/core/discovery_watch/runtime.ts",
|
|
76
|
+
"#dg8wh29x5weu": "./src/types/import_graph.ts",
|
|
77
|
+
"#eb7rqmr004o0": "./test/specs/import-graph.spec.ts",
|
|
78
|
+
"#f9bmvntxjm9y": "./src/core/esbuild-options.ts",
|
|
79
|
+
"#fh85ej1nxzyx": "./src/core/derive-manifest.ts",
|
|
80
|
+
"#fhq2k4sah2li": "./test/specs/bundler.spec.ts",
|
|
81
|
+
"#g4ahcnf1grw5": "./src/core/import_graph/shared.ts",
|
|
82
|
+
"#gfzv65eazagz": "./test/specs/helpers.ts",
|
|
83
|
+
"#gpv7u9smtpqh": "./src/types/logging.ts",
|
|
84
|
+
"#jb343639kom2": "./src/types.ts",
|
|
85
|
+
"#kvj92sieo97a": "./src/core/build.ts",
|
|
86
|
+
"#l7l0wczeqcwq": "./src/core/discovery/resolve.ts",
|
|
87
|
+
"#lc29x958kzin": "./src/core/discovery/emit.ts",
|
|
88
|
+
"#lxr3ttzj8fq9": "./src/cli.ts",
|
|
89
|
+
"#m35wkcxfbmmu": "./src/core/derive_manifest/runtime.ts",
|
|
90
|
+
"#n02ctrtxmyrd": "./src/core/import_graph/tsconfig.ts",
|
|
91
|
+
"#ohy99nrb7lqv": "./src/core/import_graph/resolve.ts",
|
|
92
|
+
"#pc2n5fbvybrx": "./test/specs/bundler.spec.ts",
|
|
93
|
+
"#qtumhoozbdq4": "./src/core/discovery/aggregate.ts",
|
|
94
|
+
"#sc6jk1vpnpzo": "./test/specs/cli.spec.ts",
|
|
95
|
+
"#sof0gxa0cxhk": "./src/index.ts",
|
|
96
|
+
"#sv3iqugy67ty": "./src/core/discovery-watch.ts",
|
|
97
|
+
"#t2refevky8d1": "./src/core/asset_manifest/runtime.ts",
|
|
98
|
+
"#t611lc2isw2l": "./test/specs/asset-manifest.spec.ts",
|
|
99
|
+
"#trglgs9kwl1b": "./src/core/import-graph.ts",
|
|
100
|
+
"#tsnh4vdfql8p": "./src/core/discovery/shared.ts",
|
|
101
|
+
"#uay0nmzt2ox2": "./test/specs/import-graph.spec.ts",
|
|
102
|
+
"#ulrbecj1la7z": "./src/plugins/source-annotations.ts",
|
|
103
|
+
"#uo5sa4lisay5": "./src/types/manifest.ts",
|
|
104
|
+
"#uutmr3kbt43m": "./src/types/discovery.ts",
|
|
105
|
+
"#vdgeebq510yo": "./test/specs/cli.spec.ts",
|
|
106
|
+
"#vhzzq1blfah0": "./examples/dummy.ts",
|
|
107
|
+
"#wh8pyoy2mjjn": "./src/core/asset-manifest.ts",
|
|
108
|
+
"#wvd9yyh9fpc9": "./tb.code-discipline.ts",
|
|
109
|
+
"#wxjjkq160kiw": "./src/core/watch.ts",
|
|
110
|
+
"#ymbmz1vdz4oa": "./src/core/discovery/public.ts",
|
|
111
|
+
"#z1hxysbp7ydt": "./src/config/index.ts",
|
|
112
|
+
"#ze7c8hijtyk0": "./src/core/discovery/scan.ts"
|
|
113
|
+
},
|
|
114
|
+
"keywords": [
|
|
115
|
+
"bundler",
|
|
116
|
+
"esbuild",
|
|
117
|
+
"scss",
|
|
118
|
+
"typescript",
|
|
119
|
+
"bun",
|
|
120
|
+
"node"
|
|
121
|
+
],
|
|
122
|
+
"license": "AGPL-3.0-only",
|
|
123
|
+
"main": "./dist/index.js",
|
|
124
|
+
"name": "@trebired/bundler",
|
|
125
|
+
"packageManager": "bun@1.3.12",
|
|
126
|
+
"private": false,
|
|
127
|
+
"publishConfig": {
|
|
128
|
+
"access": "public"
|
|
129
|
+
},
|
|
130
|
+
"repository": {
|
|
131
|
+
"type": "git",
|
|
132
|
+
"url": "https://github.com/Trebired/bundler"
|
|
133
|
+
},
|
|
49
134
|
"scripts": {
|
|
50
|
-
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
135
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && node ./scripts/prepare-dist.mjs",
|
|
51
136
|
"demo": "bun run examples/dummy.ts",
|
|
52
137
|
"prepublishOnly": "bun run typecheck && bun test && bun run build",
|
|
53
138
|
"test": "bun test",
|
|
54
139
|
"typecheck": "tsc --noEmit"
|
|
55
140
|
},
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"sass-embedded": "^1.100.0"
|
|
60
|
-
},
|
|
61
|
-
"devDependencies": {
|
|
62
|
-
"@types/bun": "^1.3.4",
|
|
63
|
-
"@types/node": "^24.10.1",
|
|
64
|
-
"typescript": "^6.0.2"
|
|
65
|
-
}
|
|
141
|
+
"type": "module",
|
|
142
|
+
"types": "./dist/index.d.ts",
|
|
143
|
+
"version": "3.1.1"
|
|
66
144
|
}
|