@normed/bundle 2.0.1 → 2.0.4

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.
@@ -0,0 +1,3 @@
1
+ import { Builder } from './types';
2
+ export declare const defaultBuilders: Builder[];
3
+ export declare function getBuilder(builders: Builder[], ext: string): Builder | null;
@@ -0,0 +1,3 @@
1
+ import '@normed/json-types';
2
+ import { APIOptions_Bundle } from './types';
3
+ export default function bundle(options?: APIOptions_Bundle): Promise<undefined>;
@@ -0,0 +1,2 @@
1
+ import { APIOptions_Clean } from './types';
2
+ export default function clean(options?: APIOptions_Clean): Promise<void>;
@@ -0,0 +1,9 @@
1
+ export declare function getOutDir(options: {
2
+ outdir?: string;
3
+ }): string;
4
+ export declare function getInDir(options: {
5
+ indir?: string;
6
+ }): string;
7
+ export declare function getRootDir({ indir }: {
8
+ indir?: string;
9
+ }): string;
@@ -0,0 +1,4 @@
1
+ import '@normed/json-types';
2
+ import { Entrypoint, BuildConfig } from './types';
3
+ import { NoMatchingBuilder } from './errors';
4
+ export default function getEntrypoints(buildConfig: BuildConfig): Promise<(Entrypoint | NoMatchingBuilder)[]>;
@@ -0,0 +1,3 @@
1
+ export declare class NoMatchingBuilder extends Error {
2
+ constructor(infile: string, inExt: string);
3
+ }
@@ -0,0 +1,11 @@
1
+ import type * as esbuild from 'esbuild';
2
+ import { Platform } from './types';
3
+ declare type Options = {
4
+ inbase: string;
5
+ outbase: string;
6
+ platform: Platform;
7
+ };
8
+ declare const plugin: (options: Options) => {
9
+ onLoad: (args: esbuild.OnLoadArgs) => Promise<esbuild.OnLoadResult>;
10
+ };
11
+ export default plugin;
@@ -0,0 +1,5 @@
1
+ import _clean from './clean';
2
+ import _bundle from './bundle';
3
+ export type { APIOptions } from './types';
4
+ export declare const clean: typeof _clean;
5
+ export declare const bundle: typeof _bundle;