@rsbuild/plugin-source-build 0.0.20 → 0.0.22

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.js CHANGED
@@ -35,8 +35,8 @@ __export(src_exports, {
35
35
  pluginSourceBuild: () => pluginSourceBuild
36
36
  });
37
37
  module.exports = __toCommonJS(src_exports);
38
+ var import_fs = __toESM(require("fs"));
38
39
  var import_path = __toESM(require("path"));
39
- var import_fs_extra = require("@rsbuild/shared/fs-extra");
40
40
  var import_shared = require("@rsbuild/shared");
41
41
  var import_monorepo_utils = require("@rsbuild/monorepo-utils");
42
42
  var pluginName = "plugin-source-build";
@@ -87,7 +87,7 @@ function pluginSourceBuild(options) {
87
87
  const { TS_CONFIG_PATHS } = CHAIN_ID.RESOLVE_PLUGIN;
88
88
  if (chain.resolve.plugins.has(TS_CONFIG_PATHS)) {
89
89
  chain.resolve.plugin(TS_CONFIG_PATHS).tap((options2) => {
90
- const references = projects.map((project) => import_path.default.join(project.dir, import_shared.TS_CONFIG_FILE)).filter((filePath) => import_fs_extra.fs.existsSync(filePath));
90
+ const references = projects.map((project) => import_path.default.join(project.dir, import_shared.TS_CONFIG_FILE)).filter((filePath) => import_fs.default.existsSync(filePath));
91
91
  return options2.map((option) => ({
92
92
  ...option,
93
93
  references
package/dist/index.mjs CHANGED
@@ -7,8 +7,8 @@ import { createRequire } from "module";
7
7
  global.require = createRequire(import.meta.url);
8
8
 
9
9
  // src/index.ts
10
+ import fs from "fs";
10
11
  import path2 from "path";
11
- import { fs } from "@rsbuild/shared/fs-extra";
12
12
  import { TS_CONFIG_FILE } from "@rsbuild/shared";
13
13
  import {
14
14
  filterByField,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-source-build",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "Source build plugin of Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -22,18 +22,18 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@rsbuild/monorepo-utils": "0.0.20",
26
- "@rsbuild/shared": "0.0.20"
25
+ "@rsbuild/shared": "0.0.22",
26
+ "@rsbuild/monorepo-utils": "0.0.22"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.23.2",
30
30
  "typescript": "^5.2.2",
31
- "@rsbuild/core": "0.0.20",
32
- "@rsbuild/test-helper": "0.0.20",
33
- "@rsbuild/webpack": "0.0.20"
31
+ "@rsbuild/webpack": "0.0.22",
32
+ "@rsbuild/test-helper": "0.0.22",
33
+ "@rsbuild/core": "0.0.22"
34
34
  },
35
35
  "peerDependencies": {
36
- "@rsbuild/core": "^0.0.20"
36
+ "@rsbuild/core": "^0.0.22"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public",