@storm-software/workspace-tools 1.41.0 → 1.42.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/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/config/nx.json +10 -15
- package/index.js +88 -81
- package/meta.json +1 -1
- package/package.json +3 -1
- package/src/base/index.js +21 -38
- package/src/executors/design-tokens/executor.js +21 -38
- package/src/executors/tsup/executor.js +90853 -90846
- package/src/executors/tsup-browser/executor.js +79 -73
- package/src/executors/tsup-neutral/executor.js +84 -76
- package/src/executors/tsup-node/executor.js +80 -74
- package/src/generators/browser-library/generator.js +3 -1
- package/src/generators/config-schema/generator.js +3 -1
- package/src/generators/neutral-library/generator.js +3 -1
- package/src/generators/node-library/generator.js +3 -1
- package/src/generators/preset/files/biome.json +4 -0
- package/src/generators/preset/files/lefthook.json +6 -0
- package/src/generators/preset/generator.js +3 -1
- package/src/generators/preset/files/.husky/post-checkout +0 -5
- package/src/generators/preset/files/.husky/post-commit +0 -4
- package/src/generators/preset/files/.husky/post-merge +0 -5
- package/src/generators/preset/files/.husky/pre-commit +0 -4
- package/src/generators/preset/files/.husky/pre-push +0 -4
- package/src/generators/preset/files/eslint.config.js +0 -59
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.41.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.41.0...workspace-tools-v1.41.1) (2024-01-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Cleaned up dependanies and option defaulting in tsup ([0ae0dd3](https://github.com/storm-software/storm-ops/commit/0ae0dd327ed646e6dbcd1c33b44aef820403cd77))
|
|
7
|
+
|
|
8
|
+
# [1.41.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.40.1...workspace-tools-v1.41.0) (2024-01-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **git-tools:** Improved all CLI tools and git hooks to use the `zx` package ([a905c21](https://github.com/storm-software/storm-ops/commit/a905c213d710d995cc114b32a90bf4d042c550d6))
|
|
14
|
+
|
|
1
15
|
## [1.40.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.40.0...workspace-tools-v1.40.1) (2024-01-14)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
16
16
|
|
|
17
17
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
18
18
|
|
|
19
|
-
[](https://prettier.io/)
|
|
20
20
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
21
21
|
|
|
22
22
|
<h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
|
package/config/nx.json
CHANGED
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
"affected": {
|
|
5
5
|
"defaultBase": "main"
|
|
6
6
|
},
|
|
7
|
-
"workspaceLayout": {
|
|
8
|
-
"projectNameAndRootFormat": "as-provided"
|
|
9
|
-
},
|
|
10
7
|
"tasksRunnerOptions": {
|
|
11
8
|
"default": {
|
|
12
9
|
"runner": "nx/tasks-runners/default",
|
|
@@ -26,9 +23,12 @@
|
|
|
26
23
|
"namedInputs": {
|
|
27
24
|
"globalBuildAffectingConfig": [
|
|
28
25
|
"{workspaceRoot}/tsconfig.base.json",
|
|
29
|
-
"{workspaceRoot}/package.json"
|
|
26
|
+
"{workspaceRoot}/package.json",
|
|
27
|
+
"{workspaceRoot}/storm.json"
|
|
30
28
|
],
|
|
31
29
|
"globalNonBuildAffectingConfig": [
|
|
30
|
+
"{workspaceRoot}/**/biome.json",
|
|
31
|
+
"{workspaceRoot}/**/lefthook.json",
|
|
32
32
|
"{workspaceRoot}/.log4brains.yml",
|
|
33
33
|
"{workspaceRoot}/.eslintrc.json",
|
|
34
34
|
"{workspaceRoot}/.all-contributorsrc",
|
|
@@ -81,20 +81,15 @@
|
|
|
81
81
|
},
|
|
82
82
|
"lint": {
|
|
83
83
|
"cache": true,
|
|
84
|
-
"executor": "
|
|
84
|
+
"executor": "nx:run-commands",
|
|
85
85
|
"outputs": ["{options.outputFile}"],
|
|
86
86
|
"options": {
|
|
87
|
-
"
|
|
88
|
-
"{projectRoot}
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
"commands": [
|
|
88
|
+
"npx biome lint --apply --no-errors-on-unmatched --files-ignore-unknown=true {projectRoot}"
|
|
89
|
+
],
|
|
90
|
+
"color": true
|
|
91
91
|
},
|
|
92
|
-
"inputs": [
|
|
93
|
-
"default",
|
|
94
|
-
"{workspaceRoot}/.eslintrc.json",
|
|
95
|
-
"{workspaceRoot}/.eslintignore",
|
|
96
|
-
"{workspaceRoot}/eslint.config.js"
|
|
97
|
-
]
|
|
92
|
+
"inputs": ["default", "{workspaceRoot}/**/biome.json"]
|
|
98
93
|
},
|
|
99
94
|
"test": {
|
|
100
95
|
"cache": true,
|
package/index.js
CHANGED
|
@@ -127893,7 +127893,9 @@ var getConfigFile = async (filePath) => {
|
|
|
127893
127893
|
return void 0;
|
|
127894
127894
|
}
|
|
127895
127895
|
const config = cosmiconfigResult.config ?? {};
|
|
127896
|
-
|
|
127896
|
+
if (cosmiconfigResult.filepath) {
|
|
127897
|
+
config.configFile = cosmiconfigResult.filepath;
|
|
127898
|
+
}
|
|
127897
127899
|
config.runtimeVersion = "0.0.1";
|
|
127898
127900
|
_static_cache = config;
|
|
127899
127901
|
return config;
|
|
@@ -131997,14 +131999,13 @@ var applyWorkspaceTokens = (options, config, tokenizerFn) => {
|
|
|
131997
131999
|
var withRunExecutor = (name, executorFn, executorOptions = {
|
|
131998
132000
|
skipReadingConfig: false,
|
|
131999
132001
|
hooks: {}
|
|
132000
|
-
}) => async (
|
|
132002
|
+
}) => async (_options, context) => {
|
|
132001
132003
|
const startTime = Date.now();
|
|
132004
|
+
let options = _options;
|
|
132002
132005
|
try {
|
|
132003
|
-
console.info(
|
|
132004
|
-
chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...
|
|
132006
|
+
console.info(chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...
|
|
132005
132007
|
|
|
132006
|
-
`)
|
|
132007
|
-
);
|
|
132008
|
+
`));
|
|
132008
132009
|
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
132009
132010
|
throw new Error(
|
|
132010
132011
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -132029,19 +132030,11 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
|
|
|
132029
132030
|
);
|
|
132030
132031
|
}
|
|
132031
132032
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
132032
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(
|
|
132033
|
-
options = await Promise.resolve(
|
|
132034
|
-
|
|
132035
|
-
);
|
|
132036
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(`Completed the applyDefaultOptions hook...`));
|
|
132033
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim("Running the applyDefaultOptions hook..."));
|
|
132034
|
+
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
132035
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim("Completed the applyDefaultOptions hook..."));
|
|
132037
132036
|
}
|
|
132038
|
-
getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(
|
|
132039
|
-
chalk.hex("#0ea5e9").italic(`
|
|
132040
|
-
|
|
132041
|
-
\u2699\uFE0F Executor schema options:
|
|
132042
|
-
`),
|
|
132043
|
-
options
|
|
132044
|
-
);
|
|
132037
|
+
getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(chalk.hex("#0ea5e9").italic("\n\n \u2699\uFE0F Executor schema options: \n"), options);
|
|
132045
132038
|
const tokenized = applyWorkspaceTokens(
|
|
132046
132039
|
options,
|
|
132047
132040
|
{
|
|
@@ -132056,44 +132049,34 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
|
|
|
132056
132049
|
applyWorkspaceExecutorTokens
|
|
132057
132050
|
);
|
|
132058
132051
|
if (executorOptions?.hooks?.preProcess) {
|
|
132059
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(
|
|
132060
|
-
await Promise.resolve(
|
|
132061
|
-
|
|
132062
|
-
);
|
|
132063
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(`Completed the preProcess hook...`));
|
|
132052
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim("Running the preProcess hook..."));
|
|
132053
|
+
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
132054
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim("Completed the preProcess hook..."));
|
|
132064
132055
|
}
|
|
132065
|
-
const result = await Promise.resolve(
|
|
132066
|
-
executorFn(tokenized, context, config)
|
|
132067
|
-
);
|
|
132056
|
+
const result = await Promise.resolve(executorFn(tokenized, context, config));
|
|
132068
132057
|
if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
|
|
132069
132058
|
throw new Error(`The ${name} executor failed to run`, {
|
|
132070
|
-
cause: result
|
|
132059
|
+
cause: result?.error
|
|
132071
132060
|
});
|
|
132072
132061
|
}
|
|
132073
132062
|
if (executorOptions?.hooks?.postProcess) {
|
|
132074
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(
|
|
132063
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim("Running the postProcess hook..."));
|
|
132075
132064
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
132076
|
-
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(
|
|
132065
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim("Completed the postProcess hook..."));
|
|
132077
132066
|
}
|
|
132078
132067
|
console.info(
|
|
132079
|
-
chalk.bold.hex("#087f5b")(
|
|
132080
|
-
`
|
|
132068
|
+
chalk.bold.hex("#087f5b")(`
|
|
132081
132069
|
|
|
132082
132070
|
\u{1F389} Successfully completed running the ${name} executor!
|
|
132083
132071
|
|
|
132084
|
-
`
|
|
132085
|
-
)
|
|
132072
|
+
`)
|
|
132086
132073
|
);
|
|
132087
132074
|
return {
|
|
132088
132075
|
success: true
|
|
132089
132076
|
};
|
|
132090
132077
|
} catch (error) {
|
|
132091
132078
|
console.error(
|
|
132092
|
-
chalk.bold.hex("#7d1a1a")(
|
|
132093
|
-
`\u274C An error occurred while running the executor
|
|
132094
|
-
|
|
132095
|
-
`
|
|
132096
|
-
),
|
|
132079
|
+
chalk.bold.hex("#7d1a1a")("\u274C An error occurred while running the executor\n\n"),
|
|
132097
132080
|
error
|
|
132098
132081
|
);
|
|
132099
132082
|
return {
|
|
@@ -139003,10 +138986,10 @@ var import_transform = __toESM(require_transform());
|
|
|
139003
138986
|
var getTypiaTransform = (program, diagnostics) => (0, import_transform.default)(program, {}, { addDiagnostic: (input) => diagnostics.push(input) });
|
|
139004
138987
|
|
|
139005
138988
|
// packages/workspace-tools/src/executors/tsup/executor.ts
|
|
139006
|
-
async function tsupExecutorFn(options, context) {
|
|
138989
|
+
async function tsupExecutorFn(options, context, config) {
|
|
139007
138990
|
try {
|
|
139008
138991
|
console.log("\u{1F4E6} Running Storm build executor on the workspace");
|
|
139009
|
-
|
|
138992
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.log(
|
|
139010
138993
|
`\u2699\uFE0F Executor options:
|
|
139011
138994
|
${Object.keys(options).map(
|
|
139012
138995
|
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
@@ -139022,7 +139005,9 @@ ${Object.keys(options).map(
|
|
|
139022
139005
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
139023
139006
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
139024
139007
|
if (options.clean !== false) {
|
|
139025
|
-
|
|
139008
|
+
if (getLogLevel(config?.logLevel) >= LogLevel.DEBUG) {
|
|
139009
|
+
console.log(`\u{1F9F9} Cleaning output path: ${options.outputPath}`);
|
|
139010
|
+
}
|
|
139026
139011
|
(0, import_fs_extra.removeSync)(options.outputPath);
|
|
139027
139012
|
}
|
|
139028
139013
|
const assets = Array.from(options.assets);
|
|
@@ -139091,11 +139076,15 @@ ${Object.keys(options).map(
|
|
|
139091
139076
|
const implicitDependencies = context.projectsConfigurations.projects[context.projectName].implicitDependencies;
|
|
139092
139077
|
const internalDependencies = [];
|
|
139093
139078
|
const projectConfigs = await Promise.resolve(getProjectConfigurations());
|
|
139094
|
-
|
|
139095
|
-
|
|
139079
|
+
if (getLogLevel(config?.logLevel) >= LogLevel.TRACE) {
|
|
139080
|
+
console.log("Project Configs:");
|
|
139081
|
+
console.log(projectConfigs);
|
|
139082
|
+
}
|
|
139096
139083
|
if (implicitDependencies && implicitDependencies.length > 0) {
|
|
139097
139084
|
options.external = implicitDependencies.reduce((ret, key) => {
|
|
139098
|
-
|
|
139085
|
+
if (getLogLevel(config?.logLevel) >= LogLevel.DEBUG) {
|
|
139086
|
+
console.log(`\u26A1 Adding implicit dependency: ${key}`);
|
|
139087
|
+
}
|
|
139099
139088
|
const projectConfig = projectConfigs[key];
|
|
139100
139089
|
if (projectConfig?.targets?.build) {
|
|
139101
139090
|
const projectPackageJson = (0, import_devkit3.readJsonFile)(projectConfig.targets?.build.options.project);
|
|
@@ -139121,10 +139110,12 @@ ${Object.keys(options).map(
|
|
|
139121
139110
|
}
|
|
139122
139111
|
}
|
|
139123
139112
|
}
|
|
139124
|
-
|
|
139113
|
+
if (getLogLevel(config?.logLevel) >= LogLevel.TRACE) {
|
|
139114
|
+
console.log(`Building with the following dependencies marked as external:
|
|
139125
139115
|
${externalDependencies.map((dep) => {
|
|
139126
|
-
|
|
139127
|
-
|
|
139116
|
+
return `name: ${dep.name}, node: ${dep.node}, outputs: ${dep.outputs}`;
|
|
139117
|
+
}).join("\n")}`);
|
|
139118
|
+
}
|
|
139128
139119
|
const prettierOptions = {
|
|
139129
139120
|
plugins: ["prettier-plugin-packagejson"],
|
|
139130
139121
|
trailingComma: "none",
|
|
@@ -139161,12 +139152,14 @@ ${externalDependencies.map((dep) => {
|
|
|
139161
139152
|
while (propertyKey.startsWith("/")) {
|
|
139162
139153
|
propertyKey = propertyKey.substring(1);
|
|
139163
139154
|
}
|
|
139164
|
-
|
|
139165
|
-
|
|
139166
|
-
|
|
139167
|
-
|
|
139168
|
-
|
|
139169
|
-
|
|
139155
|
+
if (getLogLevel(config?.logLevel) >= LogLevel.DEBUG) {
|
|
139156
|
+
console.debug(
|
|
139157
|
+
`Trying to add entry point ${propertyKey} at "${(0, import_devkit3.joinPathFragments)(
|
|
139158
|
+
filePath.path,
|
|
139159
|
+
filePath.name
|
|
139160
|
+
)}"`
|
|
139161
|
+
);
|
|
139162
|
+
}
|
|
139170
139163
|
if (!(propertyKey in ret)) {
|
|
139171
139164
|
ret[propertyKey] = (0, import_devkit3.joinPathFragments)(filePath.path, filePath.name);
|
|
139172
139165
|
}
|
|
@@ -139282,7 +139275,9 @@ ${externalDependencies.map((dep) => {
|
|
|
139282
139275
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
139283
139276
|
packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_path4.join)("packages", context.projectName);
|
|
139284
139277
|
const packageJsonPath = (0, import_path4.join)(context.root, options.outputPath, "package.json");
|
|
139285
|
-
|
|
139278
|
+
if (getLogLevel(config?.logLevel) >= LogLevel.DEBUG) {
|
|
139279
|
+
console.debug(`\u26A1 Writing package.json file to: ${packageJsonPath}`);
|
|
139280
|
+
}
|
|
139286
139281
|
(0, import_fs4.writeFileSync)(
|
|
139287
139282
|
packageJsonPath,
|
|
139288
139283
|
await (0, import_prettier.format)(JSON.stringify(packageJson), {
|
|
@@ -139345,7 +139340,7 @@ ${(0, import_fs4.readFileSync)(file, "utf-8")}`,
|
|
|
139345
139340
|
...options,
|
|
139346
139341
|
watch: false,
|
|
139347
139342
|
main: options.entry,
|
|
139348
|
-
transformers: ["typia/lib/transform"]
|
|
139343
|
+
transformers: options.skipTypia ? [] : ["typia/lib/transform"]
|
|
139349
139344
|
},
|
|
139350
139345
|
context.root,
|
|
139351
139346
|
sourceRoot,
|
|
@@ -139369,21 +139364,26 @@ ${options.banner}
|
|
|
139369
139364
|
getTransform: options.skipTypia ? void 0 : getTypiaTransform
|
|
139370
139365
|
};
|
|
139371
139366
|
if (options.getConfig) {
|
|
139367
|
+
if (getLogLevel(config?.logLevel) >= LogLevel.INFO) {
|
|
139368
|
+
console.log("\u26A1 Running the Build process");
|
|
139369
|
+
}
|
|
139372
139370
|
const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
|
|
139373
|
-
const
|
|
139371
|
+
const tsupConfig = (0, import_tsup.defineConfig)(
|
|
139374
139372
|
getConfigFns.map(
|
|
139375
139373
|
(getConfigFn) => getConfig(context.root, projectRoot, getConfigFn, getConfigOptions)
|
|
139376
139374
|
)
|
|
139377
139375
|
);
|
|
139378
|
-
if (_isFunction(
|
|
139379
|
-
await build(await Promise.resolve(
|
|
139376
|
+
if (_isFunction(tsupConfig)) {
|
|
139377
|
+
await build(await Promise.resolve(tsupConfig({})), config);
|
|
139380
139378
|
} else {
|
|
139381
|
-
await build(config);
|
|
139379
|
+
await build(tsupConfig, config);
|
|
139382
139380
|
}
|
|
139383
|
-
} else {
|
|
139384
|
-
console.
|
|
139381
|
+
} else if (getLogLevel(config?.logLevel) >= LogLevel.WARN) {
|
|
139382
|
+
console.warn("The Build process did not run because no `getConfig` parameter was provided");
|
|
139383
|
+
}
|
|
139384
|
+
if (getLogLevel(config?.logLevel) >= LogLevel.INFO) {
|
|
139385
|
+
console.log("\u26A1 The Build process has completed successfully");
|
|
139385
139386
|
}
|
|
139386
|
-
console.log("\u26A1 The Build process has completed successfully");
|
|
139387
139387
|
return {
|
|
139388
139388
|
success: true
|
|
139389
139389
|
};
|
|
@@ -139409,6 +139409,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
139409
139409
|
esModuleInterop: true,
|
|
139410
139410
|
downlevelIteration: true,
|
|
139411
139411
|
forceConsistentCasingInFileNames: true,
|
|
139412
|
+
emitDeclarationOnly: true,
|
|
139412
139413
|
declaration: true,
|
|
139413
139414
|
declarationMap: true,
|
|
139414
139415
|
declarationDir: (0, import_path4.join)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
@@ -139423,12 +139424,19 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
139423
139424
|
}
|
|
139424
139425
|
return tsConfig;
|
|
139425
139426
|
}
|
|
139426
|
-
var build = async (options) => {
|
|
139427
|
-
|
|
139428
|
-
|
|
139429
|
-
|
|
139430
|
-
|
|
139431
|
-
|
|
139427
|
+
var build = async (options, config) => {
|
|
139428
|
+
try {
|
|
139429
|
+
if (Array.isArray(options)) {
|
|
139430
|
+
await Promise.all(options.map((buildOptions) => build(buildOptions, config)));
|
|
139431
|
+
} else {
|
|
139432
|
+
if (getLogLevel(config?.logLevel) >= LogLevel.TRACE && !options.silent) {
|
|
139433
|
+
console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
|
|
139434
|
+
}
|
|
139435
|
+
await (0, import_tsup.build)(options);
|
|
139436
|
+
}
|
|
139437
|
+
} catch (e) {
|
|
139438
|
+
console.error("\u26A0\uFE0F A failure occured during the Tsup Build executor");
|
|
139439
|
+
console.error(e);
|
|
139432
139440
|
}
|
|
139433
139441
|
};
|
|
139434
139442
|
var applyDefaultOptions = (options) => {
|
|
@@ -139458,7 +139466,6 @@ var applyDefaultOptions = (options) => {
|
|
|
139458
139466
|
options.skipTypia ??= false;
|
|
139459
139467
|
options.define ??= {};
|
|
139460
139468
|
options.env ??= {};
|
|
139461
|
-
options.verbose ??= !!process.env.CI;
|
|
139462
139469
|
options.getConfig ??= { dist: defaultConfig };
|
|
139463
139470
|
return options;
|
|
139464
139471
|
};
|
|
@@ -139502,6 +139509,9 @@ function neutralConfig({
|
|
|
139502
139509
|
metafile = false,
|
|
139503
139510
|
define: define2,
|
|
139504
139511
|
env: env2,
|
|
139512
|
+
apiReport = true,
|
|
139513
|
+
docModel = true,
|
|
139514
|
+
tsdocMetadata = true,
|
|
139505
139515
|
plugins,
|
|
139506
139516
|
generatePackageJson,
|
|
139507
139517
|
dtsTsConfig,
|
|
@@ -139542,9 +139552,9 @@ function neutralConfig({
|
|
|
139542
139552
|
}
|
|
139543
139553
|
}
|
|
139544
139554
|
},
|
|
139545
|
-
apiReport
|
|
139546
|
-
docModel
|
|
139547
|
-
tsdocMetadata
|
|
139555
|
+
apiReport,
|
|
139556
|
+
docModel,
|
|
139557
|
+
tsdocMetadata,
|
|
139548
139558
|
sourcemap: debug,
|
|
139549
139559
|
clean: false,
|
|
139550
139560
|
tsconfigDecoratorMetadata: true,
|
|
@@ -139570,13 +139580,11 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
|
139570
139580
|
{
|
|
139571
139581
|
...options,
|
|
139572
139582
|
getConfig: {
|
|
139573
|
-
|
|
139583
|
+
dist: neutralConfig
|
|
139574
139584
|
},
|
|
139575
139585
|
platform: "neutral",
|
|
139576
139586
|
banner: getFileBanner(
|
|
139577
|
-
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
139578
|
-
(s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : ""
|
|
139579
|
-
).join(" ") : "TypeScript (Neutral Platform)"
|
|
139587
|
+
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : "").join(" ") : "TypeScript (Neutral Platform)"
|
|
139580
139588
|
),
|
|
139581
139589
|
define: {
|
|
139582
139590
|
...options.define
|
|
@@ -139698,12 +139706,10 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
|
139698
139706
|
return tsupExecutorFn(
|
|
139699
139707
|
{
|
|
139700
139708
|
...options,
|
|
139701
|
-
getConfig: {
|
|
139709
|
+
getConfig: { dist: nodeConfig },
|
|
139702
139710
|
platform: "node",
|
|
139703
139711
|
banner: getFileBanner(
|
|
139704
|
-
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
139705
|
-
(s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : ""
|
|
139706
|
-
).join(" ") : "TypeScript (NodeJs Platform)"
|
|
139712
|
+
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : "").join(" ") : "TypeScript (NodeJs Platform)"
|
|
139707
139713
|
),
|
|
139708
139714
|
define: {
|
|
139709
139715
|
...options.define
|
|
@@ -139712,7 +139718,8 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
|
139712
139718
|
...process.env
|
|
139713
139719
|
}
|
|
139714
139720
|
},
|
|
139715
|
-
context
|
|
139721
|
+
context,
|
|
139722
|
+
config
|
|
139716
139723
|
);
|
|
139717
139724
|
};
|
|
139718
139725
|
var applyDefaultOptions3 = (options) => {
|