parcel 2.0.0-canary.1540 → 2.0.0-dev.1422

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.
Files changed (3) hide show
  1. package/lib/cli.js +1 -31
  2. package/package.json +14 -14
  3. package/src/cli.js +1 -34
package/lib/cli.js CHANGED
@@ -131,42 +131,14 @@ process.on('unhandledRejection', handleUncaughtException);
131
131
  program.storeOptionsAsProperties();
132
132
  program.version(_package.version);
133
133
 
134
- // Only display choices available to callers OS
135
- let watcherBackendChoices = ['brute-force'];
136
- switch (process.platform) {
137
- case 'darwin':
138
- {
139
- watcherBackendChoices.push('watchman', 'fs-events');
140
- break;
141
- }
142
- case 'linux':
143
- {
144
- watcherBackendChoices.push('watchman', 'inotify');
145
- break;
146
- }
147
- case 'win32':
148
- {
149
- watcherBackendChoices.push('watchman', 'windows');
150
- break;
151
- }
152
- case 'freebsd' || 'openbsd':
153
- {
154
- watcherBackendChoices.push('watchman');
155
- break;
156
- }
157
- default:
158
- break;
159
- }
160
-
161
134
  // --no-cache, --cache-dir, --no-source-maps, --no-autoinstall, --global?, --public-url, --log-level
162
135
  // --no-content-hash, --experimental-scope-hoisting, --detailed-report
136
+
163
137
  const commonOptions = {
164
138
  '--no-cache': 'disable the filesystem cache',
165
139
  '--config <path>': 'specify which config to use. can be a path or a package name',
166
140
  '--cache-dir <path>': 'set the cache directory. defaults to ".parcel-cache"',
167
141
  '--watch-dir <path>': 'set the root watch directory. defaults to nearest lockfile or source control dir.',
168
- '--watch-ignore [path]': [`list of directories watcher should not be tracking for changes. defaults to ['.git', '.hg']`, dirs => dirs.split(',')],
169
- '--watch-backend': new (_commander().default.Option)('--watch-backend <name>', 'set watcher backend').choices(watcherBackendChoices),
170
142
  '--no-source-maps': 'disable sourcemaps',
171
143
  '--target [name]': ['only build given target(s)', (val, list) => list.concat([val]), []],
172
144
  '--log-level <level>': new (_commander().default.Option)('--log-level <level>', 'set the log level').choices(['none', 'error', 'warn', 'info', 'verbose']),
@@ -482,8 +454,6 @@ async function normalizeOptions(command, inputFS) {
482
454
  shouldDisableCache: command.cache === false,
483
455
  cacheDir: command.cacheDir,
484
456
  watchDir: command.watchDir,
485
- watchBackend: command.watchBackend,
486
- watchIgnore: command.watchIgnore,
487
457
  config: command.config,
488
458
  mode,
489
459
  hmrOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parcel",
3
- "version": "2.0.0-canary.1540+b6281c770",
3
+ "version": "2.0.0-dev.1422+7f6b4dbbc",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -21,18 +21,18 @@
21
21
  "node": ">= 12.0.0"
22
22
  },
23
23
  "dependencies": {
24
- "@parcel/config-default": "2.0.0-canary.1542+b6281c770",
25
- "@parcel/core": "2.0.0-canary.1540+b6281c770",
26
- "@parcel/diagnostic": "2.0.0-canary.1542+b6281c770",
27
- "@parcel/events": "2.0.0-canary.1542+b6281c770",
28
- "@parcel/feature-flags": "2.12.1-canary.3165+b6281c770",
29
- "@parcel/fs": "2.0.0-canary.1542+b6281c770",
30
- "@parcel/logger": "2.0.0-canary.1542+b6281c770",
31
- "@parcel/package-manager": "2.0.0-canary.1542+b6281c770",
32
- "@parcel/reporter-cli": "2.0.0-canary.1542+b6281c770",
33
- "@parcel/reporter-dev-server": "2.0.0-canary.1542+b6281c770",
34
- "@parcel/reporter-tracer": "2.12.1-canary.3165+b6281c770",
35
- "@parcel/utils": "2.0.0-canary.1542+b6281c770",
24
+ "@parcel/config-default": "2.0.0-dev.1424+7f6b4dbbc",
25
+ "@parcel/core": "2.0.0-dev.1422+7f6b4dbbc",
26
+ "@parcel/diagnostic": "2.0.0-dev.1424+7f6b4dbbc",
27
+ "@parcel/events": "2.0.0-dev.1424+7f6b4dbbc",
28
+ "@parcel/feature-flags": "2.12.1-dev.3238+7f6b4dbbc",
29
+ "@parcel/fs": "2.0.0-dev.1424+7f6b4dbbc",
30
+ "@parcel/logger": "2.0.0-dev.1424+7f6b4dbbc",
31
+ "@parcel/package-manager": "2.0.0-dev.1424+7f6b4dbbc",
32
+ "@parcel/reporter-cli": "2.0.0-dev.1424+7f6b4dbbc",
33
+ "@parcel/reporter-dev-server": "2.0.0-dev.1424+7f6b4dbbc",
34
+ "@parcel/reporter-tracer": "2.12.1-dev.3238+7f6b4dbbc",
35
+ "@parcel/utils": "2.0.0-dev.1424+7f6b4dbbc",
36
36
  "chalk": "^4.1.0",
37
37
  "commander": "^7.0.0",
38
38
  "get-port": "^4.2.0"
@@ -41,5 +41,5 @@
41
41
  "@babel/core": "^7.22.11",
42
42
  "@parcel/babel-register": "2.12.0"
43
43
  },
44
- "gitHead": "b6281c77053015bce0e5b715b0f8d187be177479"
44
+ "gitHead": "7f6b4dbbc56a203e0fce8794856c03598c4f6708"
45
45
  }
package/src/cli.js CHANGED
@@ -66,31 +66,9 @@ process.on('unhandledRejection', handleUncaughtException);
66
66
  program.storeOptionsAsProperties();
67
67
  program.version(version);
68
68
 
69
- // Only display choices available to callers OS
70
- let watcherBackendChoices = ['brute-force'];
71
- switch (process.platform) {
72
- case 'darwin': {
73
- watcherBackendChoices.push('watchman', 'fs-events');
74
- break;
75
- }
76
- case 'linux': {
77
- watcherBackendChoices.push('watchman', 'inotify');
78
- break;
79
- }
80
- case 'win32': {
81
- watcherBackendChoices.push('watchman', 'windows');
82
- break;
83
- }
84
- case 'freebsd' || 'openbsd': {
85
- watcherBackendChoices.push('watchman');
86
- break;
87
- }
88
- default:
89
- break;
90
- }
91
-
92
69
  // --no-cache, --cache-dir, --no-source-maps, --no-autoinstall, --global?, --public-url, --log-level
93
70
  // --no-content-hash, --experimental-scope-hoisting, --detailed-report
71
+
94
72
  const commonOptions = {
95
73
  '--no-cache': 'disable the filesystem cache',
96
74
  '--config <path>':
@@ -98,14 +76,6 @@ const commonOptions = {
98
76
  '--cache-dir <path>': 'set the cache directory. defaults to ".parcel-cache"',
99
77
  '--watch-dir <path>':
100
78
  'set the root watch directory. defaults to nearest lockfile or source control dir.',
101
- '--watch-ignore [path]': [
102
- `list of directories watcher should not be tracking for changes. defaults to ['.git', '.hg']`,
103
- dirs => dirs.split(','),
104
- ],
105
- '--watch-backend': new commander.Option(
106
- '--watch-backend <name>',
107
- 'set watcher backend',
108
- ).choices(watcherBackendChoices),
109
79
  '--no-source-maps': 'disable sourcemaps',
110
80
  '--target [name]': [
111
81
  'only build given target(s)',
@@ -527,13 +497,10 @@ async function normalizeOptions(
527
497
  if (typeof input !== 'string') return [];
528
498
  return input.split(',').map(value => value.trim());
529
499
  };
530
-
531
500
  return {
532
501
  shouldDisableCache: command.cache === false,
533
502
  cacheDir: command.cacheDir,
534
503
  watchDir: command.watchDir,
535
- watchBackend: command.watchBackend,
536
- watchIgnore: command.watchIgnore,
537
504
  config: command.config,
538
505
  mode,
539
506
  hmrOptions,