@rsbuild/plugin-source-build 0.7.0-beta.5 → 0.7.0-beta.6
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/index.cjs +2 -3
- package/dist/index.js +2 -3
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -348,7 +348,6 @@ module.exports = __toCommonJS(src_exports);
|
|
|
348
348
|
// src/plugin.ts
|
|
349
349
|
var import_node_fs2 = __toESM(require("fs"));
|
|
350
350
|
var import_node_path8 = __toESM(require("path"));
|
|
351
|
-
var import_shared5 = require("@rsbuild/shared");
|
|
352
351
|
|
|
353
352
|
// src/project-utils/getDependentProjects.ts
|
|
354
353
|
var import_node_path7 = __toESM(require("path"));
|
|
@@ -569,11 +568,11 @@ function pluginSourceBuild(options) {
|
|
|
569
568
|
}
|
|
570
569
|
});
|
|
571
570
|
const getReferences = async () => {
|
|
572
|
-
const refers = projects.map((project) => import_node_path8.default.join(project.dir,
|
|
571
|
+
const refers = projects.map((project) => import_node_path8.default.join(project.dir, "tsconfig.json")).filter((filePath) => import_node_fs2.default.existsSync(filePath));
|
|
573
572
|
if (api.context.tsconfigPath) {
|
|
574
573
|
const { default: json52 } = await import("@rsbuild/shared/json5");
|
|
575
574
|
const { references } = json52.parse(
|
|
576
|
-
|
|
575
|
+
import_node_fs2.default.readFileSync(api.context.tsconfigPath, "utf-8")
|
|
577
576
|
);
|
|
578
577
|
return Array.isArray(references) ? references.map((r) => r.path).filter(Boolean).concat(refers) : refers;
|
|
579
578
|
}
|
package/dist/index.js
CHANGED
|
@@ -336,7 +336,6 @@ init_esm();
|
|
|
336
336
|
init_esm();
|
|
337
337
|
import fs2 from "fs";
|
|
338
338
|
import path9 from "path";
|
|
339
|
-
import { TS_CONFIG_FILE, fse as fse5 } from "@rsbuild/shared";
|
|
340
339
|
|
|
341
340
|
// src/project-utils/index.ts
|
|
342
341
|
init_esm();
|
|
@@ -568,11 +567,11 @@ function pluginSourceBuild(options) {
|
|
|
568
567
|
}
|
|
569
568
|
});
|
|
570
569
|
const getReferences = async () => {
|
|
571
|
-
const refers = projects.map((project) => path9.join(project.dir,
|
|
570
|
+
const refers = projects.map((project) => path9.join(project.dir, "tsconfig.json")).filter((filePath) => fs2.existsSync(filePath));
|
|
572
571
|
if (api.context.tsconfigPath) {
|
|
573
572
|
const { default: json52 } = await import("@rsbuild/shared/json5");
|
|
574
573
|
const { references } = json52.parse(
|
|
575
|
-
|
|
574
|
+
fs2.readFileSync(api.context.tsconfigPath, "utf-8")
|
|
576
575
|
);
|
|
577
576
|
return Array.isArray(references) ? references.map((r) => r.path).filter(Boolean).concat(refers) : refers;
|
|
578
577
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-source-build",
|
|
3
|
-
"version": "0.7.0-beta.
|
|
3
|
+
"version": "0.7.0-beta.6",
|
|
4
4
|
"description": "Source build plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"fast-glob": "^3.3.2",
|
|
27
|
-
"@rsbuild/shared": "0.7.0-beta.
|
|
27
|
+
"@rsbuild/shared": "0.7.0-beta.6"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@babel/core": "^7.24.5",
|
|
31
31
|
"typescript": "^5.4.2",
|
|
32
|
-
"@rsbuild/core": "0.7.0-beta.
|
|
33
|
-
"@rsbuild/plugin-babel": "0.7.0-beta.
|
|
34
|
-
"@scripts/test-helper": "0.7.0-beta.
|
|
32
|
+
"@rsbuild/core": "0.7.0-beta.6",
|
|
33
|
+
"@rsbuild/plugin-babel": "0.7.0-beta.6",
|
|
34
|
+
"@scripts/test-helper": "0.7.0-beta.6"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@rsbuild/core": "^0.7.0-beta.
|
|
37
|
+
"@rsbuild/core": "^0.7.0-beta.6"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public",
|