opentool 0.7.13 → 0.7.14
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/cli/index.d.ts +5 -0
- package/dist/cli/index.js +58 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2526,7 +2526,7 @@ async function transpileWithEsbuild(options) {
|
|
|
2526
2526
|
format: options.format,
|
|
2527
2527
|
platform: "node",
|
|
2528
2528
|
target: "node20",
|
|
2529
|
-
logLevel: "warning",
|
|
2529
|
+
logLevel: options.logLevel ?? "warning",
|
|
2530
2530
|
sourcesContent: false,
|
|
2531
2531
|
sourcemap: false,
|
|
2532
2532
|
loader: {
|
|
@@ -2540,13 +2540,16 @@ async function transpileWithEsbuild(options) {
|
|
|
2540
2540
|
".cjs": "js",
|
|
2541
2541
|
".json": "json"
|
|
2542
2542
|
},
|
|
2543
|
-
metafile: false,
|
|
2543
|
+
metafile: options.metafile ?? false,
|
|
2544
2544
|
allowOverwrite: true,
|
|
2545
2545
|
absWorkingDir: projectRoot
|
|
2546
2546
|
};
|
|
2547
2547
|
if (options.external && options.external.length > 0) {
|
|
2548
2548
|
buildOptions.external = options.external;
|
|
2549
2549
|
}
|
|
2550
|
+
if (options.outBase) {
|
|
2551
|
+
buildOptions.outbase = options.outBase;
|
|
2552
|
+
}
|
|
2550
2553
|
if (!buildOptions.bundle) {
|
|
2551
2554
|
buildOptions.packages = "external";
|
|
2552
2555
|
}
|