@nestjs/cli 12.0.0-alpha.2 → 12.0.0-alpha.4

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/bin/nest.js CHANGED
File without changes
@@ -5,12 +5,14 @@ import { appendTsExtension } from '../helpers/append-extension.js';
5
5
  const require = createRequire(import.meta.url);
6
6
  function loadRspackDeps() {
7
7
  try {
8
+ const rspack = require('@rspack/core');
8
9
  const externals = require('webpack-node-externals');
9
10
  const { TsconfigPathsPlugin } = require('tsconfig-paths-webpack-plugin');
10
- return { nodeExternals: externals, TsconfigPathsPlugin };
11
+ return { nodeExternals: externals, TsconfigPathsPlugin, rspack };
11
12
  }
12
13
  catch (e) {
13
- const pkg = e?.message?.match?.(/Cannot find.*'([^']+)'/)?.[1] ?? 'webpack-node-externals';
14
+ const pkg = e?.message?.match?.(/Cannot find.*'([^']+)'/)?.[1] ??
15
+ 'webpack-node-externals';
14
16
  throw new Error(`The "${pkg}" package is required when using the rspack compiler but could not be found. ` +
15
17
  `Please install it:\n\n npm install --save-dev @rspack/core webpack-node-externals tsconfig-paths-webpack-plugin\n`);
16
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/cli",
3
- "version": "12.0.0-alpha.2",
3
+ "version": "12.0.0-alpha.4",
4
4
  "type": "module",
5
5
  "description": "Nest - modern, fast, powerful node.js web framework (@cli)",
6
6
  "publishConfig": {
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "scripts": {
16
16
  "build": "tsc",
17
- "clean": "gulp clean:bundle",
17
+ "clean": "node tools/clean.js",
18
18
  "format": "prettier --write \"**/*.ts\"",
19
19
  "lint": "eslint 'lib/**/*.ts' 'commands/**/*.ts' 'actions/**/*.ts' --fix",
20
20
  "start": "node bin/nest.js",