@sse-ui/builder 1.1.0 → 1.3.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.
- package/dist/acorn-RZKYEOCN.js +3130 -0
- package/dist/angular-65ZVA2AO.js +3070 -0
- package/dist/babel-6NAC7UZ3.js +7296 -0
- package/dist/babel-6NHCDM3A.js +12 -0
- package/dist/babel-config.js +17 -13
- package/dist/{babel-QBNMMXUJ.js → chunk-6NNEV5YX.js} +33 -25
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/{chunk-44E7L73Q.js → chunk-N46AJ2OI.js} +19 -9
- package/dist/cli.js +727 -365
- package/dist/config.d.ts +48 -36
- package/dist/config.js +2 -0
- package/dist/estree-SLPC3MKU.js +4612 -0
- package/dist/flow-JKSA2WQA.js +27546 -0
- package/dist/glimmer-KH4FHVWK.js +2894 -0
- package/dist/graphql-X7RDVKKC.js +1266 -0
- package/dist/html-A2DZMMEZ.js +2933 -0
- package/dist/markdown-35RS3VXW.js +3553 -0
- package/dist/meriyah-UIMGFPH2.js +2684 -0
- package/dist/postcss-CITECRUH.js +5080 -0
- package/dist/typescript-42L4XZEH.js +20538 -0
- package/dist/typescript-CFZSZQGQ.js +13203 -0
- package/dist/yaml-RAY3ED75.js +4224 -0
- package/package.json +16 -5
- package/dist/typescript-3J237V7Q.js +0 -217
package/dist/config.d.ts
CHANGED
|
@@ -1,46 +1,58 @@
|
|
|
1
1
|
import { B as BundleType } from './build-DZbrXe0V.js';
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
/** The bundles to build. */
|
|
5
|
-
bundle: BundleType[];
|
|
6
|
-
/** The large files to build. */
|
|
7
|
-
hasLargeFiles: boolean;
|
|
8
|
-
/** Whether to skip generating a package.json file in the /esm folder. */
|
|
9
|
-
skipBundlePackageJson: boolean;
|
|
10
|
-
/** Whether to enable verbose logging. */
|
|
11
|
-
verbose: boolean;
|
|
12
|
-
/** Whether to build types for the package. */
|
|
13
|
-
buildTypes: boolean;
|
|
14
|
-
/** Whether to build types for the package. */
|
|
15
|
-
skipTsc: boolean;
|
|
16
|
-
/** Whether to skip checking for Babel runtime dependencies in the package. */
|
|
17
|
-
skipBabelRuntimeCheck: boolean;
|
|
18
|
-
/** Whether to skip generating the package.json file in the bundle output. */
|
|
19
|
-
skipPackageJson: boolean;
|
|
20
|
-
/** Whether to skip checking for main field in package.json. */
|
|
21
|
-
skipMainCheck: boolean;
|
|
3
|
+
interface BabelOptions {
|
|
22
4
|
/** Globs to be ignored by Babel. */
|
|
23
|
-
ignore
|
|
24
|
-
/**
|
|
25
|
-
|
|
5
|
+
ignore?: string[];
|
|
6
|
+
/** Set to `true` if you know you are transpiling large files. */
|
|
7
|
+
hasLargeFiles?: boolean;
|
|
26
8
|
/** Whether to use the React compiler. */
|
|
27
|
-
enableReactCompiler
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
/** Bundle the package into single files for each format using esbuild (tsup style). */
|
|
33
|
-
bundleSingleFile: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Available extensions for generating exports wildcards.
|
|
36
|
-
* @default [".js", ".mjs", ".cjs"]
|
|
9
|
+
enableReactCompiler?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface EsbuildOptions {
|
|
12
|
+
/** * Entry points for esbuild.
|
|
13
|
+
* Example: "src/index.ts" or ["src/index.ts"] or { main: "src/index.ts" }
|
|
37
14
|
*/
|
|
38
|
-
|
|
15
|
+
entry: string | string[] | Record<string, string>;
|
|
16
|
+
/** Target environment for the generated JavaScript. */
|
|
17
|
+
target?: string | string[];
|
|
18
|
+
/** External dependencies to exclude from the bundle. */
|
|
19
|
+
external?: string[];
|
|
39
20
|
}
|
|
40
|
-
|
|
21
|
+
interface BaseBuildConfig {
|
|
22
|
+
/** The bundles to build. Default: ["esm", "cjs"] */
|
|
23
|
+
bundle?: BundleType[];
|
|
24
|
+
/** Builds the package in a flat structure without subdirectories */
|
|
25
|
+
flat?: boolean;
|
|
26
|
+
/** Enable verbose logging */
|
|
27
|
+
verbose?: boolean;
|
|
28
|
+
/** Whether to build types for the package */
|
|
29
|
+
buildTypes?: boolean;
|
|
30
|
+
/** Skip running TypeScript compiler */
|
|
31
|
+
skipTsc?: boolean;
|
|
32
|
+
/** Uses tsgo cli instead of tsc for type generation */
|
|
33
|
+
tsgo?: boolean;
|
|
34
|
+
/** Available extensions for generating exports wildcards */
|
|
35
|
+
exportExtensions?: string[];
|
|
36
|
+
/** Files/Directories to be copied */
|
|
37
|
+
copy?: string[];
|
|
38
|
+
/** Skip generating a package.json file in the bundle output */
|
|
39
|
+
skipBundlePackageJson?: boolean;
|
|
40
|
+
/** Minify the generated bundle. */
|
|
41
|
+
minify?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The user can define EITHER `babel` OR `esbuild` configuration.
|
|
45
|
+
*/
|
|
46
|
+
type BuildConfig = BaseBuildConfig & ({
|
|
47
|
+
babel?: BabelOptions;
|
|
48
|
+
esbuild?: never;
|
|
49
|
+
} | {
|
|
50
|
+
esbuild: EsbuildOptions;
|
|
51
|
+
babel?: never;
|
|
52
|
+
});
|
|
41
53
|
/**
|
|
42
54
|
* Helper to provide autocomplete and type checking for the sse-tools config.
|
|
43
55
|
*/
|
|
44
|
-
declare function defineConfig(config:
|
|
56
|
+
declare function defineConfig(config: BuildConfig): BuildConfig;
|
|
45
57
|
|
|
46
|
-
export { type
|
|
58
|
+
export { type BabelOptions, type BaseBuildConfig, type BuildConfig, type EsbuildOptions, defineConfig };
|