@storm-software/workspace-tools
Version:
Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.
180 lines (177 loc) • 3.8 kB
JavaScript
import {
base_executor_untyped_default
} from "./chunk-DGC5L3Z7.mjs";
import {
__name
} from "./chunk-2BPV2XV2.mjs";
// src/base/typescript-build-executor.untyped.ts
import { defineUntypedSchema } from "untyped";
var typescript_build_executor_untyped_default = defineUntypedSchema({
...base_executor_untyped_default,
$schema: {
id: "TypeScriptBuildExecutorSchema",
title: "TypeScript Build Executor",
description: "A type definition for the base TypeScript build executor schema",
required: [
"entry",
"tsconfig"
]
},
entry: {
$schema: {
title: "Entry File(s)",
format: "path",
type: "array",
description: "The entry file or files to build",
items: {
type: "string"
}
},
$default: [
"{sourceRoot}/index.ts"
]
},
tsconfig: {
$schema: {
title: "TSConfig Path",
type: "string",
format: "path",
description: "The path to the tsconfig file"
},
$default: "{projectRoot}/tsconfig.json"
},
bundle: {
$schema: {
title: "Bundle",
type: "boolean",
description: "Bundle the output"
}
},
minify: {
$schema: {
title: "Minify",
type: "boolean",
description: "Minify the output"
}
},
debug: {
$schema: {
title: "Debug",
type: "boolean",
description: "Debug the output"
}
},
sourcemap: {
$schema: {
title: "Sourcemap",
type: "boolean",
description: "Generate a sourcemap"
}
},
silent: {
$schema: {
title: "Silent",
type: "boolean",
description: "Should the build run silently - only report errors back to the user"
},
$default: false
},
target: {
$schema: {
title: "Target",
type: "string",
description: "The target to build",
enum: [
"es3",
"es5",
"es6",
"es2015",
"es2016",
"es2017",
"es2018",
"es2019",
"es2020",
"es2021",
"es2022",
"es2023",
"es2024",
"esnext",
"node12",
"node14",
"node16",
"node18",
"node20",
"node22",
"browser",
"chrome58",
"chrome59",
"chrome60"
]
},
$default: "esnext",
$resolve: /* @__PURE__ */ __name((val = "esnext") => val.toLowerCase(), "$resolve")
},
format: {
$schema: {
title: "Format",
type: "array",
description: "The format to build",
items: {
type: "string",
enum: [
"cjs",
"esm",
"iife"
]
}
},
$resolve: /* @__PURE__ */ __name((val = [
"cjs",
"esm"
]) => [].concat(val), "$resolve")
},
platform: {
$schema: {
title: "Platform",
type: "string",
description: "The platform to build",
enum: [
"neutral",
"node",
"browser"
]
},
$default: "neutral"
},
external: {
$schema: {
title: "External",
type: "array",
description: "The external dependencies"
},
$resolve: /* @__PURE__ */ __name((val = []) => [].concat(val), "$resolve")
},
define: {
$schema: {
title: "Define",
type: "object",
tsType: "Record<string, string>",
description: "The define values"
},
$resolve: /* @__PURE__ */ __name((val = {}) => val, "$resolve"),
$default: {}
},
env: {
$schema: {
title: "Environment Variables",
type: "object",
tsType: "Record<string, string>",
description: "The environment variable values"
},
$resolve: /* @__PURE__ */ __name((val = {}) => val, "$resolve"),
$default: {}
}
});
export {
typescript_build_executor_untyped_default
};