@nx/rspack 23.3.0-beta.0 → 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.
@@ -95,6 +95,14 @@ async function createRspackTargets(configFilePath, projectRoot, options, context
95
95
  customConditions: null,
96
96
  });
97
97
  }
98
+ const buildInputs = [
99
+ ...('production' in namedInputs
100
+ ? ['production', '^production']
101
+ : ['default', '^default']),
102
+ {
103
+ externalDependencies: ['@rspack/cli'],
104
+ },
105
+ ];
98
106
  targets[options.buildTargetName] = {
99
107
  command: `rspack build`,
100
108
  options: {
@@ -110,12 +118,7 @@ async function createRspackTargets(configFilePath, projectRoot, options, context
110
118
  cache: true,
111
119
  dependsOn: [`^${options.buildTargetName}`],
112
120
  inputs: [
113
- ...('production' in namedInputs
114
- ? ['production', '^production']
115
- : ['default', '^default']),
116
- {
117
- externalDependencies: ['@rspack/cli'],
118
- },
121
+ ...buildInputs,
119
122
  // The build can emit a pruned pnpm deploy output (NxAppRspackPlugin
120
123
  // with generatePackageJson), whose install settings come from these
121
124
  // otherwise-unhashed root sources.
@@ -127,6 +130,7 @@ async function createRspackTargets(configFilePath, projectRoot, options, context
127
130
  };
128
131
  targets[options.serveTargetName] = {
129
132
  continuous: true,
133
+ inputs: [...buildInputs],
130
134
  command: `rspack serve`,
131
135
  options: {
132
136
  cwd: projectRoot,
@@ -136,6 +140,7 @@ async function createRspackTargets(configFilePath, projectRoot, options, context
136
140
  };
137
141
  targets[options.previewTargetName] = {
138
142
  continuous: true,
143
+ inputs: [...buildInputs],
139
144
  command: `rspack serve`,
140
145
  options: {
141
146
  cwd: projectRoot,
@@ -146,6 +151,7 @@ async function createRspackTargets(configFilePath, projectRoot, options, context
146
151
  targets[options.serveStaticTargetName] = {
147
152
  dependsOn: [`${options.buildTargetName}`],
148
153
  continuous: true,
154
+ inputs: [...buildInputs],
149
155
  executor: '@nx/web:file-server',
150
156
  options: {
151
157
  buildTarget: options.buildTargetName,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nx/rspack",
3
3
  "description": "The Nx Plugin for Rspack contains executors and generators that support building applications using Rspack.",
4
- "version": "23.3.0-beta.0",
4
+ "version": "23.3.0-beta.1",
5
5
  "type": "commonjs",
6
6
  "files": [
7
7
  "dist",
@@ -151,14 +151,14 @@
151
151
  "tslib": "^2.3.0",
152
152
  "webpack": "5.105.2",
153
153
  "webpack-node-externals": "^3.0.0",
154
- "@nx/js": "23.3.0-beta.0",
155
- "@nx/devkit": "23.3.0-beta.0",
156
- "@nx/module-federation": "23.3.0-beta.0",
157
- "@nx/web": "23.3.0-beta.0"
154
+ "@nx/devkit": "23.3.0-beta.1",
155
+ "@nx/js": "23.3.0-beta.1",
156
+ "@nx/module-federation": "23.3.0-beta.1",
157
+ "@nx/web": "23.3.0-beta.1"
158
158
  },
159
159
  "devDependencies": {
160
- "nx": "23.3.0-beta.0",
161
- "@nx/nest": "23.3.0-beta.0"
160
+ "nx": "23.3.0-beta.1",
161
+ "@nx/nest": "23.3.0-beta.1"
162
162
  },
163
163
  "peerDependencies": {
164
164
  "@rspack/cli": "^1.0.0 || ^2.0.0",