@@ -23,13 +23,12 @@ Positional arguments:
23
23
check Checks each project's package.json files and ensures
24
24
that all dependencies are of the same version
25
25
throughout the repository.
26
- deploy (EXPERIMENTAL) Prepares a deployment by copying a
27
- subset of Rush projects and their dependencies to a
28
- target folder
26
+ deploy Prepares a deployment by copying a subset of Rush
27
+ projects and their dependencies to a target folder
29
28
init Initializes a new repository to be managed by Rush
30
29
init-autoinstaller Initializes a new autoinstaller
31
- init-deploy (EXPERIMENTAL) Creates a deployment scenario config
32
- file for use with \\"rush deploy\\".
30
+ init-deploy Creates a deployment scenario config file for use
31
+ with \\"rush deploy\\".
33
32
install Install package dependencies for all projects in the
34
33
repo according to the shrinkwrap file
35
34
link Create node_modules symlinks for all projects
@@ -38,16 +37,17 @@ Positional arguments:
38
37
requests generated by \\"rush change\\".
39
38
purge For diagnostic purposes, use this command to delete
40
39
caches and other temporary files used by Rush
41
- scan Scan the current project folder and display a report
42
- of imported packages.
40
+ scan When migrating projects into a Rush repo, this
41
+ command is helpful for detecting undeclared
42
+ dependencies.
43
43
unlink Delete node_modules symlinks for all projects in the
44
44
repo
45
45
update Install package dependencies for all projects in the
46
46
repo, and create or update the shrinkwrap file as
47
47
needed
48
48
update-autoinstaller
49
49
Updates autoinstaller package dependenices
50
- version (EXPERIMENTAL) Manage package versions in the repo.
50
+ version Manage package versions in the repo.
51
51
import-strings Imports translated strings into each project.
52
52
upload Uploads the built files to the server
53
53
build Build all projects that haven't been built, or have
@@ -241,11 +241,11 @@ exports[`CommandLineHelp prints the help for each action: deploy 1`] = `
241
241
[-t PATH] [--create-archive ARCHIVE_PATH]
242
242
243
243
244
- (EXPERIMENTAL) After building the repo, \\"rush deploy\\" can be used to prepare
245
- a deployment by copying a subset of Rush projects and their dependencies to a
246
- target folder, which can then be uploaded to a production server. The \\"rush
247
- deploy\\" behavior is specified by a scenario config file that must be created
248
- first, using the \\"rush init-deploy\\" command.
244
+ After building the repo, \\"rush deploy\\" can be used to prepare a deployment by
245
+ copying a subset of Rush projects and their dependencies to a target folder,
246
+ which can then be uploaded to a production server. The \\"rush deploy\\" behavior
247
+ is specified by a scenario config file that must be created first, using the
248
+ \\"rush init-deploy\\" command.
249
249
250
250
Optional arguments:
251
251
-h, --help Show this help message and exit.
@@ -372,10 +372,10 @@ Optional arguments:
372
372
exports[`CommandLineHelp prints the help for each action: init-deploy 1`] = `
373
373
"usage: rush init-deploy [-h] -p PROJECT_NAME [-s SCENARIO]
374
374
375
- (EXPERIMENTAL) Use this command to initialize a new scenario config file for
376
- use with \\"rush deploy\\". The default filename is common/config/rush/deploy.
377
- json. However, if you need to manage multiple deployments with different
378
- settings, you can use use \\"--scenario\\" to create additional config files.
375
+ Use this command to initialize a new scenario config file for use with \\"rush
376
+ deploy\\". The default filename is common/config/rush/deploy.json. However, if
377
+ you need to manage multiple deployments with different settings, you can use
378
+ use \\"--scenario\\" to create additional config files.
379
379
380
380
Optional arguments:
381
381
-h, --help Show this help message and exit.
@@ -657,14 +657,16 @@ Optional arguments:
657
657
exports[`CommandLineHelp prints the help for each action: scan 1`] = `
658
658
"usage: rush scan [-h]
659
659
660
- The NPM system allows a project to import dependencies without explicitly
661
- listing them in its package.json file. This is a dangerous practice, because
662
- there is no guarantee you will get a compatible version. The \\"rush scan\\"
663
- command reports a list of packages that are imported by your code, which you
664
- can compare against your package.json file to find mistakes. It searches the
665
- \\"./src\\" and \\"./lib\\" folders for typical import syntaxes such as \\"import __
666
- from '__'\\", \\"require('__')\\", \\"System.import('__'), etc. The results are only
667
- approximate, but generally pretty accurate.
660
+ The Node.js module system allows a project to import NPM packages without
661
+ explicitly declaring them as dependencies in the package.json file. Such
662
+ \\"phantom dependencies\\" can cause problems. Rush and PNPM use symlinks
663
+ specifically to protect against phantom dependencies. These protections may
664
+ cause runtime errors for existing projects when they are first migrated into
665
+ a Rush monorepo. The \\"rush scan\\" command is a handy tool for fixing these
666
+ errors. It scans the \\"./src\\" and \\"./lib\\" folders for import syntaxes such as
667
+ \\"import __ from '__'\\", \\"require('__')\\", and \\"System.import('__'). It prints a
668
+ report of the referenced packages. This heuristic is not perfect, but it can
669
+ save a lot of time when migrating projects.
668
670
669
671
Optional arguments:
670
672
-h, --help Show this help message and exit.
@@ -800,8 +802,7 @@ exports[`CommandLineHelp prints the help for each action: version 1`] = `
800
802
[--override-bump BUMPTYPE] [--override-prerelease-id ID]
801
803
802
804
803
- (EXPERIMENTAL) use this \\"rush version\\" command to ensure version policies and
804
- bump versions.
805
+ use this \\"rush version\\" command to ensure version policies and bump versions.
805
806
806
807
Optional arguments:
807
808
-h, --help Show this help message and exit.
0 commit comments