@savvy-web/rslib-builder 0.18.1 → 0.18.2
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 +10 -3
- package/package.json +7 -7
- package/tsdoc-metadata.json +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*!
|
|
1
|
+
/*! LICENSE: index.js.LICENSE.txt */
|
|
2
2
|
import { constants, cpSync, existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { dirname, isAbsolute, join, normalize, relative, resolve as external_node_path_resolve } from "node:path";
|
|
4
4
|
import { defineConfig } from "@rslib/core";
|
|
@@ -548,7 +548,7 @@ class TSConfigFile {
|
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
class LibraryTSConfigFile extends TSConfigFile {
|
|
551
|
-
writeBundleTempConfig(_mode) {
|
|
551
|
+
writeBundleTempConfig(_mode, options) {
|
|
552
552
|
const cwd = process.cwd();
|
|
553
553
|
const baseConfig = this.config;
|
|
554
554
|
const absoluteConfig = {
|
|
@@ -565,6 +565,9 @@ class LibraryTSConfigFile extends TSConfigFile {
|
|
|
565
565
|
join(cwd, "node_modules/@types"),
|
|
566
566
|
join(cwd, "types")
|
|
567
567
|
],
|
|
568
|
+
types: options?.types ?? [
|
|
569
|
+
"node"
|
|
570
|
+
],
|
|
568
571
|
declarationMap: true,
|
|
569
572
|
emitDeclarationOnly: false
|
|
570
573
|
},
|
|
@@ -1460,7 +1463,11 @@ function runTsgo(options) {
|
|
|
1460
1463
|
const originalCwd = process.cwd();
|
|
1461
1464
|
try {
|
|
1462
1465
|
process.chdir(cwd);
|
|
1463
|
-
|
|
1466
|
+
const projectConfigPath = findTsConfig(cwd);
|
|
1467
|
+
const projectTypes = projectConfigPath ? loadTsConfig(projectConfigPath).options.types : void 0;
|
|
1468
|
+
configTsconfigPath = TSConfigs.node.ecma.lib.writeBundleTempConfig(options.buildMode, projectTypes ? {
|
|
1469
|
+
types: projectTypes
|
|
1470
|
+
} : void 0);
|
|
1464
1471
|
} finally{
|
|
1465
1472
|
process.chdir(originalCwd);
|
|
1466
1473
|
}
|
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.2",
|
|
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": [
|
|
@@ -49,20 +49,20 @@
|
|
|
49
49
|
"@pnpm/catalogs.protocol-parser": "^1001.0.0",
|
|
50
50
|
"@pnpm/exportable-manifest": "^1000.4.1",
|
|
51
51
|
"@pnpm/lockfile.fs": "^1001.1.31",
|
|
52
|
-
"@pnpm/workspace.read-manifest": "^1000.
|
|
53
|
-
"@typescript-eslint/parser": "^8.
|
|
52
|
+
"@pnpm/workspace.read-manifest": "^1000.3.0",
|
|
53
|
+
"@typescript-eslint/parser": "^8.57.1",
|
|
54
54
|
"deep-equal": "^2.2.3",
|
|
55
|
-
"eslint": "^10.0.
|
|
55
|
+
"eslint": "^10.0.3",
|
|
56
56
|
"eslint-plugin-tsdoc": "^0.5.2",
|
|
57
57
|
"glob": "^13.0.6",
|
|
58
58
|
"picocolors": "^1.1.1",
|
|
59
59
|
"sort-package-json": "^3.6.1",
|
|
60
|
-
"tmp": "^0.2.
|
|
60
|
+
"tmp": "^0.2.4",
|
|
61
61
|
"workspace-tools": "^0.41.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@microsoft/api-extractor": "^7.57.
|
|
65
|
-
"@rslib/core": "^0.
|
|
64
|
+
"@microsoft/api-extractor": "^7.57.7",
|
|
65
|
+
"@rslib/core": "^0.20.0",
|
|
66
66
|
"@types/node": "^25.2.0",
|
|
67
67
|
"@typescript/native-preview": "^7.0.0-dev.20260124.1",
|
|
68
68
|
"typescript": "^5.9.3"
|