@storm-software/workspace-tools 1.43.18 → 1.43.19
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 +27 -23
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +2 -1
- package/src/executors/tsup/executor.js +21 -19
- package/src/executors/tsup/schema.d.ts +1 -0
- package/src/executors/tsup/schema.json +5 -0
- package/src/executors/tsup-browser/executor.js +27 -23
- package/src/executors/tsup-neutral/executor.js +24 -21
- package/src/executors/tsup-node/executor.js +24 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.43.18](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.17...workspace-tools-v1.43.18) (2024-01-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Removed call to transformer in nx typescript options formatter ([fce06b5](https://github.com/storm-software/storm-ops/commit/fce06b5ea3a5e8bea5b718f181bd6a0c0c0288a6))
|
|
7
|
+
|
|
1
8
|
## [1.43.17](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.16...workspace-tools-v1.43.17) (2024-01-17)
|
|
2
9
|
|
|
3
10
|
|
package/index.js
CHANGED
|
@@ -73213,7 +73213,7 @@ var require_util5 = __commonJS({
|
|
|
73213
73213
|
var normalize2 = createSafeHandler((url) => {
|
|
73214
73214
|
});
|
|
73215
73215
|
exports.normalize = normalize2;
|
|
73216
|
-
function
|
|
73216
|
+
function join6(aRoot, aPath) {
|
|
73217
73217
|
const pathType = getURLType(aPath);
|
|
73218
73218
|
const rootType = getURLType(aRoot);
|
|
73219
73219
|
aRoot = ensureDirectory(aRoot);
|
|
@@ -73239,7 +73239,7 @@ var require_util5 = __commonJS({
|
|
|
73239
73239
|
const newPath = withBase(aPath, withBase(aRoot, base));
|
|
73240
73240
|
return computeRelativeURL(base, newPath);
|
|
73241
73241
|
}
|
|
73242
|
-
exports.join =
|
|
73242
|
+
exports.join = join6;
|
|
73243
73243
|
function relative(rootURL, targetURL) {
|
|
73244
73244
|
const result = relativeIfPossible(rootURL, targetURL);
|
|
73245
73245
|
return typeof result === "string" ? result : normalize2(targetURL);
|
|
@@ -73269,9 +73269,9 @@ var require_util5 = __commonJS({
|
|
|
73269
73269
|
}
|
|
73270
73270
|
let url = normalize2(sourceURL || "");
|
|
73271
73271
|
if (sourceRoot)
|
|
73272
|
-
url =
|
|
73272
|
+
url = join6(sourceRoot, url);
|
|
73273
73273
|
if (sourceMapURL)
|
|
73274
|
-
url =
|
|
73274
|
+
url = join6(trimFilename(sourceMapURL), url);
|
|
73275
73275
|
return url;
|
|
73276
73276
|
}
|
|
73277
73277
|
exports.computeSourceURL = computeSourceURL;
|
|
@@ -75037,7 +75037,7 @@ var require_source_map = __commonJS({
|
|
|
75037
75037
|
var require_native = __commonJS({
|
|
75038
75038
|
"node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js"(exports, module2) {
|
|
75039
75039
|
var { existsSync: existsSync5 } = require("node:fs");
|
|
75040
|
-
var { join:
|
|
75040
|
+
var { join: join6 } = require("node:path");
|
|
75041
75041
|
var { platform, arch, report } = require("node:process");
|
|
75042
75042
|
var isMusl = () => !report.getReport().header.glibcVersionRuntime;
|
|
75043
75043
|
var bindingsByPlatformAndArch = {
|
|
@@ -75087,7 +75087,7 @@ If this is important to you, please consider supporting Rollup to make a native
|
|
|
75087
75087
|
return imported.base;
|
|
75088
75088
|
}
|
|
75089
75089
|
var localName = `./rollup.${packageBase}.node`;
|
|
75090
|
-
var { parse, parseAsync, xxhashBase64Url } = existsSync5(
|
|
75090
|
+
var { parse, parseAsync, xxhashBase64Url } = existsSync5(join6(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
|
|
75091
75091
|
module2.exports.parse = parse;
|
|
75092
75092
|
module2.exports.parseAsync = parseAsync;
|
|
75093
75093
|
module2.exports.xxhashBase64Url = xxhashBase64Url;
|
|
@@ -111229,7 +111229,7 @@ var require_TransformerError = __commonJS({
|
|
|
111229
111229
|
TransformerError2.from = function(method) {
|
|
111230
111230
|
return function(errors) {
|
|
111231
111231
|
var body = errors.map(function(e) {
|
|
111232
|
-
var subject = e.explore.object === null ? "" :
|
|
111232
|
+
var subject = e.explore.object === null ? "" : join6(e.explore.object)(e.explore.property);
|
|
111233
111233
|
var type = "".concat(subject.length ? "".concat(subject, ": ") : "").concat(e.name);
|
|
111234
111234
|
return "- ".concat(type, "\n").concat(e.messages.map(function(msg) {
|
|
111235
111235
|
return " - ".concat(msg);
|
|
@@ -111241,7 +111241,7 @@ var require_TransformerError = __commonJS({
|
|
|
111241
111241
|
});
|
|
111242
111242
|
};
|
|
111243
111243
|
};
|
|
111244
|
-
var
|
|
111244
|
+
var join6 = function(object) {
|
|
111245
111245
|
return function(key) {
|
|
111246
111246
|
if (key === null)
|
|
111247
111247
|
return object.name;
|
|
@@ -117321,13 +117321,13 @@ var require_application_object = __commonJS({
|
|
|
117321
117321
|
return __assign2(__assign2({ type: "object", properties, nullable: options.purpose === "swagger" ? nullable : void 0, required: required.length ? required : void 0, description: obj.description }, options.surplus ? { "x-typia-jsDocTags": obj.jsDocTags } : {}), options.purpose === "ajv" ? extraProps : options.surplus ? {
|
|
117322
117322
|
"x-typia-additionalProperties": extraProps.additionalProperties,
|
|
117323
117323
|
"x-typia-patternProperties": extraProps.patternProperties,
|
|
117324
|
-
additionalProperties:
|
|
117324
|
+
additionalProperties: join6(options)(components)(extraMeta)
|
|
117325
117325
|
} : {});
|
|
117326
117326
|
};
|
|
117327
117327
|
};
|
|
117328
117328
|
};
|
|
117329
117329
|
};
|
|
117330
|
-
var
|
|
117330
|
+
var join6 = function(options) {
|
|
117331
117331
|
return function(components) {
|
|
117332
117332
|
return function(extra) {
|
|
117333
117333
|
var _a;
|
|
@@ -130874,6 +130874,7 @@ function defaultConfig({
|
|
|
130874
130874
|
plugins,
|
|
130875
130875
|
generatePackageJson,
|
|
130876
130876
|
dtsTsConfig,
|
|
130877
|
+
minify = false,
|
|
130877
130878
|
getTransform
|
|
130878
130879
|
}) {
|
|
130879
130880
|
return {
|
|
@@ -130909,7 +130910,7 @@ function defaultConfig({
|
|
|
130909
130910
|
}
|
|
130910
130911
|
}
|
|
130911
130912
|
},
|
|
130912
|
-
minify
|
|
130913
|
+
minify,
|
|
130913
130914
|
apiReport,
|
|
130914
130915
|
docModel,
|
|
130915
130916
|
tsdocMetadata,
|
|
@@ -137710,9 +137711,9 @@ ${Object.keys(options).map(
|
|
|
137710
137711
|
if (!result.success) {
|
|
137711
137712
|
throw new Error("The Build process failed trying to copy assets");
|
|
137712
137713
|
}
|
|
137713
|
-
const pathToPackageJson = (0,
|
|
137714
|
+
const pathToPackageJson = (0, import_devkit3.joinPathFragments)(context.root, projectRoot, "package.json");
|
|
137714
137715
|
const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit3.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
|
|
137715
|
-
const workspacePackageJson = (0, import_devkit3.readJsonFile)((0,
|
|
137716
|
+
const workspacePackageJson = (0, import_devkit3.readJsonFile)((0, import_devkit3.joinPathFragments)(workspaceRoot, "package.json"));
|
|
137716
137717
|
options.external = options.external || [];
|
|
137717
137718
|
if (workspacePackageJson?.dependencies) {
|
|
137718
137719
|
options.external = Object.keys(workspacePackageJson?.dependencies).reduce(
|
|
@@ -137870,11 +137871,11 @@ ${externalDependencies.map((dep) => {
|
|
|
137870
137871
|
},
|
|
137871
137872
|
...(options.additionalEntryPoints ?? []).map((entryPoint) => ({
|
|
137872
137873
|
[removeExtension(entryPoint).replace(sourceRoot, "")]: {
|
|
137873
|
-
types: (0,
|
|
137874
|
+
types: (0, import_devkit3.joinPathFragments)(
|
|
137874
137875
|
`./${distPaths[0]}`,
|
|
137875
137876
|
`${removeExtension(entryPoint.replace(sourceRoot, ""))}.d.ts`
|
|
137876
137877
|
),
|
|
137877
|
-
default: (0,
|
|
137878
|
+
default: (0, import_devkit3.joinPathFragments)(
|
|
137878
137879
|
`./${distPaths[0]}`,
|
|
137879
137880
|
`${removeExtension(entryPoint.replace(sourceRoot, ""))}.js`
|
|
137880
137881
|
)
|
|
@@ -137920,7 +137921,7 @@ ${externalDependencies.map((dep) => {
|
|
|
137920
137921
|
if (distSrc.startsWith("/")) {
|
|
137921
137922
|
distSrc = distSrc.substring(1);
|
|
137922
137923
|
}
|
|
137923
|
-
packageJson.source ??= `${(0,
|
|
137924
|
+
packageJson.source ??= `${(0, import_devkit3.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
137924
137925
|
}
|
|
137925
137926
|
packageJson.sideEffects ??= false;
|
|
137926
137927
|
packageJson.files ??= ["dist/**/*"];
|
|
@@ -137938,8 +137939,8 @@ ${externalDependencies.map((dep) => {
|
|
|
137938
137939
|
packageJson.license ??= workspacePackageJson.license;
|
|
137939
137940
|
packageJson.keywords ??= workspacePackageJson.keywords;
|
|
137940
137941
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
137941
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot : (0,
|
|
137942
|
-
const packageJsonPath = (0,
|
|
137942
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_devkit3.joinPathFragments)("packages", context.projectName);
|
|
137943
|
+
const packageJsonPath = (0, import_devkit3.joinPathFragments)(context.root, options.outputPath, "package.json");
|
|
137943
137944
|
writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
|
|
137944
137945
|
(0, import_node_fs2.writeFileSync)(
|
|
137945
137946
|
packageJsonPath,
|
|
@@ -138071,7 +138072,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
138071
138072
|
emitDeclarationOnly: true,
|
|
138072
138073
|
declaration: true,
|
|
138073
138074
|
declarationMap: true,
|
|
138074
|
-
declarationDir: (0,
|
|
138075
|
+
declarationDir: (0, import_devkit3.joinPathFragments)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
138075
138076
|
}
|
|
138076
138077
|
},
|
|
138077
138078
|
ts.sys,
|
|
@@ -138113,6 +138114,7 @@ var applyDefaultOptions = (options) => {
|
|
|
138113
138114
|
options.assets ??= [];
|
|
138114
138115
|
options.plugins ??= [];
|
|
138115
138116
|
options.includeSrc ??= false;
|
|
138117
|
+
options.minify ??= false;
|
|
138116
138118
|
options.clean ??= true;
|
|
138117
138119
|
options.bundle ??= true;
|
|
138118
138120
|
options.debug ??= false;
|
|
@@ -138174,6 +138176,7 @@ var neutralConfig = ({
|
|
|
138174
138176
|
plugins,
|
|
138175
138177
|
generatePackageJson,
|
|
138176
138178
|
dtsTsConfig,
|
|
138179
|
+
minify = false,
|
|
138177
138180
|
getTransform
|
|
138178
138181
|
}) => {
|
|
138179
138182
|
const outputPath = (0, import_devkit4.joinPathFragments)(outDir, "dist");
|
|
@@ -138200,7 +138203,7 @@ var neutralConfig = ({
|
|
|
138200
138203
|
define: define2,
|
|
138201
138204
|
env: env2,
|
|
138202
138205
|
dts: false,
|
|
138203
|
-
minify
|
|
138206
|
+
minify,
|
|
138204
138207
|
experimentalDts: {
|
|
138205
138208
|
entry,
|
|
138206
138209
|
compilerOptions: {
|
|
@@ -138221,7 +138224,7 @@ var neutralConfig = ({
|
|
|
138221
138224
|
outExtension,
|
|
138222
138225
|
getTransform
|
|
138223
138226
|
};
|
|
138224
|
-
if (!debug) {
|
|
138227
|
+
if (!debug || minify) {
|
|
138225
138228
|
options.minify = "terser";
|
|
138226
138229
|
options.terserOptions = {
|
|
138227
138230
|
compress: true,
|
|
@@ -138301,6 +138304,7 @@ function nodeConfig({
|
|
|
138301
138304
|
plugins,
|
|
138302
138305
|
generatePackageJson,
|
|
138303
138306
|
dtsTsConfig,
|
|
138307
|
+
minify = false,
|
|
138304
138308
|
getTransform
|
|
138305
138309
|
}) {
|
|
138306
138310
|
const options = {
|
|
@@ -138326,7 +138330,7 @@ function nodeConfig({
|
|
|
138326
138330
|
define: define2,
|
|
138327
138331
|
env: env2,
|
|
138328
138332
|
dts: false,
|
|
138329
|
-
minify
|
|
138333
|
+
minify,
|
|
138330
138334
|
experimentalDts: {
|
|
138331
138335
|
entry,
|
|
138332
138336
|
compilerOptions: {
|
|
@@ -138347,7 +138351,7 @@ function nodeConfig({
|
|
|
138347
138351
|
outExtension,
|
|
138348
138352
|
getTransform
|
|
138349
138353
|
};
|
|
138350
|
-
if (!debug) {
|
|
138354
|
+
if (!debug || minify) {
|
|
138351
138355
|
options.minify = "terser";
|
|
138352
138356
|
options.terserOptions = {
|
|
138353
138357
|
compress: true,
|