@nx/rsbuild 23.2.1 → 23.3.0-beta.1
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/src/plugins/plugin.js +11 -8
- package/package.json +4 -4
|
@@ -85,19 +85,20 @@ async function createRsbuildTargets(configFilePath, projectRoot, options, tsConf
|
|
|
85
85
|
const namedInputs = (0, internal_1.getNamedInputs)(projectRoot, context);
|
|
86
86
|
const { buildOutputs } = getOutputs(rsbuildConfig.content, projectRoot, context.workspaceRoot);
|
|
87
87
|
const targets = {};
|
|
88
|
+
const buildInputs = [
|
|
89
|
+
...('production' in namedInputs
|
|
90
|
+
? ['production', '^production']
|
|
91
|
+
: ['default', '^default']),
|
|
92
|
+
{
|
|
93
|
+
externalDependencies: ['@rsbuild/core'],
|
|
94
|
+
},
|
|
95
|
+
];
|
|
88
96
|
targets[options.buildTargetName] = {
|
|
89
97
|
command: `rsbuild build`,
|
|
90
98
|
options: { cwd: projectRoot, args: ['--mode=production'] },
|
|
91
99
|
cache: true,
|
|
92
100
|
dependsOn: [`^${options.buildTargetName}`],
|
|
93
|
-
inputs: [
|
|
94
|
-
...('production' in namedInputs
|
|
95
|
-
? ['production', '^production']
|
|
96
|
-
: ['default', '^default']),
|
|
97
|
-
{
|
|
98
|
-
externalDependencies: ['@rsbuild/core'],
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
+
inputs: [...buildInputs],
|
|
101
102
|
outputs: buildOutputs,
|
|
102
103
|
metadata: {
|
|
103
104
|
technologies: ['rsbuild'],
|
|
@@ -114,6 +115,7 @@ async function createRsbuildTargets(configFilePath, projectRoot, options, tsConf
|
|
|
114
115
|
};
|
|
115
116
|
targets[options.devTargetName] = {
|
|
116
117
|
continuous: true,
|
|
118
|
+
inputs: [...buildInputs],
|
|
117
119
|
command: `rsbuild dev`,
|
|
118
120
|
options: {
|
|
119
121
|
cwd: projectRoot,
|
|
@@ -122,6 +124,7 @@ async function createRsbuildTargets(configFilePath, projectRoot, options, tsConf
|
|
|
122
124
|
};
|
|
123
125
|
targets[options.previewTargetName] = {
|
|
124
126
|
continuous: true,
|
|
127
|
+
inputs: [...buildInputs],
|
|
125
128
|
command: `rsbuild preview`,
|
|
126
129
|
dependsOn: [`${options.buildTargetName}`, `^${options.buildTargetName}`],
|
|
127
130
|
options: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/rsbuild",
|
|
3
3
|
"description": "The Nx Plugin for Rsbuild contains an Nx plugin, executors and utilities that support building applications using Rsbuild.",
|
|
4
|
-
"version": "23.
|
|
4
|
+
"version": "23.3.0-beta.1",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"minimatch": "10.2.5",
|
|
58
58
|
"semver": "^7.6.3",
|
|
59
59
|
"@phenomnomnominal/tsquery": "~6.2.0",
|
|
60
|
-
"@nx/devkit": "23.
|
|
61
|
-
"@nx/js": "23.
|
|
60
|
+
"@nx/devkit": "23.3.0-beta.1",
|
|
61
|
+
"@nx/js": "23.3.0-beta.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"nx": "23.
|
|
64
|
+
"nx": "23.3.0-beta.1"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@rsbuild/core": "^1.0.0 || ^2.0.0"
|