@rsbuild/plugin-source-build 0.0.20 → 0.0.21
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 +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
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) =>
|
|
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.
|
|
3
|
+
"version": "0.0.21",
|
|
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.
|
|
26
|
-
"@rsbuild/shared": "0.0.
|
|
25
|
+
"@rsbuild/monorepo-utils": "0.0.21",
|
|
26
|
+
"@rsbuild/shared": "0.0.21"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/core": "^7.23.2",
|
|
30
30
|
"typescript": "^5.2.2",
|
|
31
|
-
"@rsbuild/core": "0.0.
|
|
32
|
-
"@rsbuild/test-helper": "0.0.
|
|
33
|
-
"@rsbuild/webpack": "0.0.
|
|
31
|
+
"@rsbuild/core": "0.0.21",
|
|
32
|
+
"@rsbuild/test-helper": "0.0.21",
|
|
33
|
+
"@rsbuild/webpack": "0.0.21"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@rsbuild/core": "^0.0.
|
|
36
|
+
"@rsbuild/core": "^0.0.21"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public",
|