@serenity-is/tsbuild 6.9.8 → 6.9.9
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/dist/index.d.ts +63 -0
- package/package.json +3 -2
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export const importAsGlobalsMapping: Record<string, string>;
|
|
2
|
+
|
|
3
|
+
export interface TSBuildOptions {
|
|
4
|
+
/** Enable bundling of dependencies, default is true */
|
|
5
|
+
bundle?: boolean;
|
|
6
|
+
|
|
7
|
+
/** Chunk names to generate when code splitting is enabled. Default is '_chunks/[name]-[hash]' */
|
|
8
|
+
chunkNames?: string[];
|
|
9
|
+
|
|
10
|
+
/** True to enable the clean plugin. Default is true if splitting is true. */
|
|
11
|
+
clean?: boolean;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Determines the set of entry points that should be passed to the esbuild.
|
|
15
|
+
* Only use to specify full paths of entry points manually if you calculated them yourself.
|
|
16
|
+
* Prefer specifying entry point globs in sergen.json under TSBuild:EntryPoints which
|
|
17
|
+
* defaults to ['Modules/** /*Page.ts', 'Modules/** /*Page.tsx', 'Modules/** /ScriptInit.ts'] */
|
|
18
|
+
entryPoints?: string[];
|
|
19
|
+
|
|
20
|
+
/** @obsolete Determines the root directories to search for entry points when entryPointsRegEx is specified. The default is ["Modules"] */
|
|
21
|
+
entryPointRoots?: string[];
|
|
22
|
+
|
|
23
|
+
/** @obsolete Prefer specifying entry point globs in sergen.json */
|
|
24
|
+
entryPointsRegEx?: RegExp;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* A set of mappings to pass to the importAsGlobalsPlugin. If this is undefined or any object and the plugins
|
|
28
|
+
* is not specified, importAsGlobals plugin is enabled */
|
|
29
|
+
importAsGlobals?: Record<string, string>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* True to enable metafile generation by esbuild. Default is true.
|
|
33
|
+
* If this is false, clean plugin won't work properly.
|
|
34
|
+
*/
|
|
35
|
+
metafile?: boolean;
|
|
36
|
+
|
|
37
|
+
/** True to enable minification. Default is true. */
|
|
38
|
+
minify?: boolean;
|
|
39
|
+
|
|
40
|
+
/** Base directory for calculating output file locations in output directory. Default is "./" */
|
|
41
|
+
outbase?: string;
|
|
42
|
+
|
|
43
|
+
/** Base output directory. Default is wwwroot/esm */
|
|
44
|
+
outdir?: boolean;
|
|
45
|
+
|
|
46
|
+
/** True to enable code splitting. Default is true unless --nosplit is passed in process arguments. */
|
|
47
|
+
splitting?: boolean;
|
|
48
|
+
|
|
49
|
+
/** Set of plugins for esbuild */
|
|
50
|
+
plugins?: any[];
|
|
51
|
+
|
|
52
|
+
/** Should source maps be generated. Default is true. */
|
|
53
|
+
sourcemap?: boolean;
|
|
54
|
+
|
|
55
|
+
/* Javascript target for output files. Default is es6. */
|
|
56
|
+
target?: string;
|
|
57
|
+
|
|
58
|
+
/** True to watch, default is calculated from process args and true if it contains --watch */
|
|
59
|
+
watch?: boolean;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Processes passed options and converts it to options suitable for esbuild */
|
|
63
|
+
export const esbuildOptions: (opt: TSBuildOptions) => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-is/tsbuild",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.9",
|
|
4
4
|
"author": "Serenity (https://serenity.is)",
|
|
5
5
|
"bugs": "https://github.com/serenity-is/serenity/issues",
|
|
6
6
|
"description": "Serenity ESBuild functions",
|
|
@@ -30,5 +30,6 @@
|
|
|
30
30
|
],
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"repository": "https://github.com/serenity-is/serenity/packages/tsbuild",
|
|
33
|
-
"type": "module"
|
|
33
|
+
"type": "module",
|
|
34
|
+
"types": "dist/index.d.ts"
|
|
34
35
|
}
|