@rsbuild/plugin-source-build 0.7.0-beta.5 → 0.7.0-beta.7

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 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, import_shared5.TS_CONFIG_FILE)).filter((filePath) => import_node_fs2.default.existsSync(filePath));
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
- import_shared5.fse.readFileSync(api.context.tsconfigPath, "utf-8")
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, TS_CONFIG_FILE)).filter((filePath) => fs2.existsSync(filePath));
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
- fse5.readFileSync(api.context.tsconfigPath, "utf-8")
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.5",
3
+ "version": "0.7.0-beta.7",
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.5"
27
+ "@rsbuild/shared": "0.7.0-beta.7"
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.5",
33
- "@rsbuild/plugin-babel": "0.7.0-beta.5",
34
- "@scripts/test-helper": "0.7.0-beta.5"
32
+ "@rsbuild/core": "0.7.0-beta.7",
33
+ "@rsbuild/plugin-babel": "0.7.0-beta.7",
34
+ "@scripts/test-helper": "0.7.0-beta.7"
35
35
  },
36
36
  "peerDependencies": {
37
- "@rsbuild/core": "^0.7.0-beta.5"
37
+ "@rsbuild/core": "^0.7.0-beta.7"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",