@storm-software/workspace-tools 1.44.0 → 1.45.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 +7 -0
- package/index.js +16 -12
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +1 -3
- package/src/executors/tsup-browser/executor.js +1 -3
- package/src/executors/tsup-neutral/executor.js +1 -3
- package/src/executors/tsup-node/executor.js +1 -3
- package/src/executors/typia/executor.js +30171 -27964
- package/src/executors/typia/schema.d.ts +2 -1
- package/src/executors/typia/schema.json +12 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.44.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.21...workspace-tools-v1.44.0) (2024-01-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Added the `typia` executor ([feb49f7](https://github.com/storm-software/storm-ops/commit/feb49f71a2b54c14c4ea34ebbde529b89e6b4b42))
|
|
7
|
+
|
|
1
8
|
## [1.43.21](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.20...workspace-tools-v1.43.21) (2024-01-18)
|
|
2
9
|
|
|
3
10
|
|
package/index.js
CHANGED
|
@@ -33885,12 +33885,12 @@ var require_remove = __commonJS({
|
|
|
33885
33885
|
function remove(path3, callback) {
|
|
33886
33886
|
fs.rm(path3, { recursive: true, force: true }, callback);
|
|
33887
33887
|
}
|
|
33888
|
-
function
|
|
33888
|
+
function removeSync3(path3) {
|
|
33889
33889
|
fs.rmSync(path3, { recursive: true, force: true });
|
|
33890
33890
|
}
|
|
33891
33891
|
module2.exports = {
|
|
33892
33892
|
remove: u(remove),
|
|
33893
|
-
removeSync:
|
|
33893
|
+
removeSync: removeSync3
|
|
33894
33894
|
};
|
|
33895
33895
|
}
|
|
33896
33896
|
});
|
|
@@ -34498,7 +34498,7 @@ var require_move_sync = __commonJS({
|
|
|
34498
34498
|
var fs = require_graceful_fs();
|
|
34499
34499
|
var path3 = require("path");
|
|
34500
34500
|
var copySync = require_copy2().copySync;
|
|
34501
|
-
var
|
|
34501
|
+
var removeSync3 = require_remove().removeSync;
|
|
34502
34502
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
34503
34503
|
var stat = require_stat();
|
|
34504
34504
|
function moveSync(src, dest, opts) {
|
|
@@ -34519,7 +34519,7 @@ var require_move_sync = __commonJS({
|
|
|
34519
34519
|
if (isChangingCase)
|
|
34520
34520
|
return rename(src, dest, overwrite);
|
|
34521
34521
|
if (overwrite) {
|
|
34522
|
-
|
|
34522
|
+
removeSync3(dest);
|
|
34523
34523
|
return rename(src, dest, overwrite);
|
|
34524
34524
|
}
|
|
34525
34525
|
if (fs.existsSync(dest))
|
|
@@ -34542,7 +34542,7 @@ var require_move_sync = __commonJS({
|
|
|
34542
34542
|
preserveTimestamps: true
|
|
34543
34543
|
};
|
|
34544
34544
|
copySync(src, dest, opts);
|
|
34545
|
-
return
|
|
34545
|
+
return removeSync3(src);
|
|
34546
34546
|
}
|
|
34547
34547
|
module2.exports = moveSync;
|
|
34548
34548
|
}
|
|
@@ -138132,9 +138132,7 @@ ${Object.keys(options).map(
|
|
|
138132
138132
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
138133
138133
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
138134
138134
|
if (options.clean !== false) {
|
|
138135
|
-
|
|
138136
|
-
writeInfo(config, `\u{1F9F9} Cleaning output path: ${options.outputPath}`);
|
|
138137
|
-
}
|
|
138135
|
+
writeInfo(config, `\u{1F9F9} Cleaning output path: ${options.outputPath}`);
|
|
138138
138136
|
(0, import_fs_extra.removeSync)(options.outputPath);
|
|
138139
138137
|
}
|
|
138140
138138
|
const assets = Array.from(options.assets);
|
|
@@ -139061,10 +139059,15 @@ var executor_default4 = withRunExecutor(
|
|
|
139061
139059
|
);
|
|
139062
139060
|
|
|
139063
139061
|
// packages/workspace-tools/src/executors/typia/executor.ts
|
|
139062
|
+
var import_fs_extra2 = __toESM(require_lib4());
|
|
139064
139063
|
var import_TypiaProgrammer = __toESM(require_TypiaProgrammer());
|
|
139065
|
-
async function typiaExecutorFn(options, _,
|
|
139064
|
+
async function typiaExecutorFn(options, _, config) {
|
|
139065
|
+
if (options.clean !== false) {
|
|
139066
|
+
writeInfo(config, `\u{1F9F9} Cleaning output path: ${options.outputPath}`);
|
|
139067
|
+
(0, import_fs_extra2.removeSync)(options.outputPath);
|
|
139068
|
+
}
|
|
139066
139069
|
await import_TypiaProgrammer.TypiaProgrammer.build({
|
|
139067
|
-
input: options.
|
|
139070
|
+
input: options.entryPath,
|
|
139068
139071
|
output: options.outputPath,
|
|
139069
139072
|
project: options.tsConfig
|
|
139070
139073
|
});
|
|
@@ -139079,9 +139082,10 @@ var executor_default5 = withRunExecutor(
|
|
|
139079
139082
|
skipReadingConfig: false,
|
|
139080
139083
|
hooks: {
|
|
139081
139084
|
applyDefaultOptions: (options) => {
|
|
139082
|
-
options.
|
|
139085
|
+
options.entryPath ??= "{sourceRoot}";
|
|
139083
139086
|
options.outputPath ??= "{sourceRoot}/__generated__/typia";
|
|
139084
|
-
options.tsConfig ??= "tsconfig.json";
|
|
139087
|
+
options.tsConfig ??= "{projectRoot}/tsconfig.json";
|
|
139088
|
+
options.clean ??= true;
|
|
139085
139089
|
return options;
|
|
139086
139090
|
}
|
|
139087
139091
|
}
|