@savvy-web/rslib-builder 0.18.0 → 0.18.1
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/index.js +6 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1143,7 +1143,7 @@ async function bundleDtsFiles(options) {
|
|
|
1143
1143
|
const bundledFiles = new Map();
|
|
1144
1144
|
const apiModelPaths = new Map();
|
|
1145
1145
|
let tsdocMetadataPath;
|
|
1146
|
-
const apiModelEnabled = true === apiModel || "object" == typeof apiModel;
|
|
1146
|
+
const apiModelEnabled = (true === apiModel || "object" == typeof apiModel) && "dev" !== options.buildMode;
|
|
1147
1147
|
const tsdocOptions = "object" == typeof apiModel ? apiModel.tsdoc : void 0;
|
|
1148
1148
|
const tsdocMetadataOption = "object" == typeof apiModel ? apiModel.tsdocMetadata : void 0;
|
|
1149
1149
|
const tsdocWarnings = tsdocOptions?.warnings ?? (TsDocConfigBuilder.isCI() ? "fail" : "log");
|
|
@@ -1613,6 +1613,9 @@ function runTsgo(options) {
|
|
|
1613
1613
|
},
|
|
1614
1614
|
...options.format && {
|
|
1615
1615
|
format: options.format
|
|
1616
|
+
},
|
|
1617
|
+
...options.buildMode && {
|
|
1618
|
+
buildMode: options.buildMode
|
|
1616
1619
|
}
|
|
1617
1620
|
});
|
|
1618
1621
|
let apiModelPath;
|
|
@@ -2927,7 +2930,6 @@ if (module.exports && module.exports.__esModule && 'default' in module.exports)
|
|
|
2927
2930
|
target: void 0,
|
|
2928
2931
|
pkg
|
|
2929
2932
|
}) : void 0;
|
|
2930
|
-
const apiModelForMode = "npm" === mode ? options.apiModel : void 0;
|
|
2931
2933
|
const sourceMap = "dev" === mode;
|
|
2932
2934
|
const externalsConfig = options.externals && options.externals.length > 0 ? {
|
|
2933
2935
|
externals: options.externals
|
|
@@ -2989,8 +2991,8 @@ if (module.exports && module.exports.__esModule && 'default' in module.exports)
|
|
|
2989
2991
|
},
|
|
2990
2992
|
buildMode: mode,
|
|
2991
2993
|
format: primaryFormat,
|
|
2992
|
-
...void 0 !==
|
|
2993
|
-
apiModel:
|
|
2994
|
+
...void 0 !== options.apiModel && {
|
|
2995
|
+
apiModel: options.apiModel
|
|
2994
2996
|
},
|
|
2995
2997
|
...isDualFormat && {
|
|
2996
2998
|
dtsPathPrefix: primaryFormat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/rslib-builder",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "RSlib-based build system for Node.js libraries with automatic package.json transformation, TypeScript declaration bundling, and multi-target support",
|
|
6
6
|
"keywords": [
|