@atlaspack/cli 2.12.1-canary.3449 → 2.12.1-canary.3450
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/package.json +14 -14
- package/src/cli.js +10 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/cli",
|
|
3
|
-
"version": "2.12.1-canary.
|
|
3
|
+
"version": "2.12.1-canary.3450+d9092cb8e",
|
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
|
6
6
|
"publishConfig": {
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"node": ">= 16.0.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaspack/config-default": "2.12.1-canary.
|
|
27
|
-
"@atlaspack/core": "2.12.1-canary.
|
|
28
|
-
"@atlaspack/diagnostic": "2.12.1-canary.
|
|
29
|
-
"@atlaspack/events": "2.12.1-canary.
|
|
30
|
-
"@atlaspack/feature-flags": "2.12.1-canary.
|
|
31
|
-
"@atlaspack/fs": "2.12.1-canary.
|
|
32
|
-
"@atlaspack/logger": "2.12.1-canary.
|
|
33
|
-
"@atlaspack/package-manager": "2.12.1-canary.
|
|
34
|
-
"@atlaspack/reporter-cli": "2.12.1-canary.
|
|
35
|
-
"@atlaspack/reporter-dev-server": "2.12.1-canary.
|
|
36
|
-
"@atlaspack/reporter-tracer": "2.12.1-canary.
|
|
37
|
-
"@atlaspack/utils": "2.12.1-canary.
|
|
26
|
+
"@atlaspack/config-default": "2.12.1-canary.3450+d9092cb8e",
|
|
27
|
+
"@atlaspack/core": "2.12.1-canary.3450+d9092cb8e",
|
|
28
|
+
"@atlaspack/diagnostic": "2.12.1-canary.3450+d9092cb8e",
|
|
29
|
+
"@atlaspack/events": "2.12.1-canary.3450+d9092cb8e",
|
|
30
|
+
"@atlaspack/feature-flags": "2.12.1-canary.3450+d9092cb8e",
|
|
31
|
+
"@atlaspack/fs": "2.12.1-canary.3450+d9092cb8e",
|
|
32
|
+
"@atlaspack/logger": "2.12.1-canary.3450+d9092cb8e",
|
|
33
|
+
"@atlaspack/package-manager": "2.12.1-canary.3450+d9092cb8e",
|
|
34
|
+
"@atlaspack/reporter-cli": "2.12.1-canary.3450+d9092cb8e",
|
|
35
|
+
"@atlaspack/reporter-dev-server": "2.12.1-canary.3450+d9092cb8e",
|
|
36
|
+
"@atlaspack/reporter-tracer": "2.12.1-canary.3450+d9092cb8e",
|
|
37
|
+
"@atlaspack/utils": "2.12.1-canary.3450+d9092cb8e",
|
|
38
38
|
"chalk": "^4.1.0",
|
|
39
39
|
"commander": "^7.0.0",
|
|
40
40
|
"get-port": "^4.2.0"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@babel/core": "^7.22.11",
|
|
45
45
|
"rimraf": "^5.0.5"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "d9092cb8efbaed752761ddba4d11603533e2e063"
|
|
48
48
|
}
|
package/src/cli.js
CHANGED
|
@@ -47,10 +47,10 @@ async function logUncaughtError(e: mixed) {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
// A hack to definitely ensure we logged the uncaught exception
|
|
50
|
-
await new Promise(resolve => setTimeout(resolve, 100));
|
|
50
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
const handleUncaughtException = async exception => {
|
|
53
|
+
const handleUncaughtException = async (exception) => {
|
|
54
54
|
try {
|
|
55
55
|
await logUncaughtError(exception);
|
|
56
56
|
} catch (err) {
|
|
@@ -100,7 +100,7 @@ const commonOptions = {
|
|
|
100
100
|
'set the root watch directory. defaults to nearest lockfile or source control dir.',
|
|
101
101
|
'--watch-ignore [path]': [
|
|
102
102
|
`list of directories watcher should not be tracking for changes. defaults to ['.git', '.hg']`,
|
|
103
|
-
dirs => dirs.split(','),
|
|
103
|
+
(dirs) => dirs.split(','),
|
|
104
104
|
],
|
|
105
105
|
'--watch-backend': new commander.Option(
|
|
106
106
|
'--watch-backend <name>',
|
|
@@ -245,7 +245,7 @@ function makeDebugCommand() {
|
|
|
245
245
|
if (entries.length === 0) {
|
|
246
246
|
entries = ['.'];
|
|
247
247
|
}
|
|
248
|
-
entries = entries.map(entry => path.resolve(entry));
|
|
248
|
+
entries = entries.map((entry) => path.resolve(entry));
|
|
249
249
|
|
|
250
250
|
Object.assign(command, opts);
|
|
251
251
|
|
|
@@ -283,7 +283,7 @@ program
|
|
|
283
283
|
.command('help [command]')
|
|
284
284
|
.description('display help information for a command')
|
|
285
285
|
.action(function (command) {
|
|
286
|
-
let cmd = program.commands.find(c => c.name() === command) || program;
|
|
286
|
+
let cmd = program.commands.find((c) => c.name() === command) || program;
|
|
287
287
|
cmd.help();
|
|
288
288
|
});
|
|
289
289
|
|
|
@@ -312,7 +312,7 @@ commander.Command.prototype.optionMissingArgument = function (option) {
|
|
|
312
312
|
var args = process.argv;
|
|
313
313
|
if (args[2] === '--help' || args[2] === '-h') args[2] = 'help';
|
|
314
314
|
|
|
315
|
-
if (!args[2] || !program.commands.some(c => c.name() === args[2])) {
|
|
315
|
+
if (!args[2] || !program.commands.some((c) => c.name() === args[2])) {
|
|
316
316
|
args.splice(2, 0, 'serve');
|
|
317
317
|
}
|
|
318
318
|
|
|
@@ -331,7 +331,7 @@ async function run(
|
|
|
331
331
|
entries = ['.'];
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
entries = entries.map(entry => path.resolve(entry));
|
|
334
|
+
entries = entries.map((entry) => path.resolve(entry));
|
|
335
335
|
|
|
336
336
|
let Atlaspack = require('@atlaspack/core').default;
|
|
337
337
|
let fs = new NodeFS();
|
|
@@ -413,7 +413,7 @@ async function run(
|
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
if (isWatching) {
|
|
416
|
-
({unsubscribe} = await atlaspack.watch(err => {
|
|
416
|
+
({unsubscribe} = await atlaspack.watch((err) => {
|
|
417
417
|
if (err) {
|
|
418
418
|
throw err;
|
|
419
419
|
}
|
|
@@ -567,7 +567,7 @@ async function normalizeOptions(
|
|
|
567
567
|
|
|
568
568
|
let additionalReporters = [
|
|
569
569
|
{packageName: '@atlaspack/reporter-cli', resolveFrom: __filename},
|
|
570
|
-
...(command.reporter: Array<string>).map(packageName => ({
|
|
570
|
+
...(command.reporter: Array<string>).map((packageName) => ({
|
|
571
571
|
packageName,
|
|
572
572
|
resolveFrom: path.join(inputFS.cwd(), 'index'),
|
|
573
573
|
})),
|
|
@@ -586,7 +586,7 @@ async function normalizeOptions(
|
|
|
586
586
|
|
|
587
587
|
const normalizeIncludeExcludeList = (input?: string): string[] => {
|
|
588
588
|
if (typeof input !== 'string') return [];
|
|
589
|
-
return input.split(',').map(value => value.trim());
|
|
589
|
+
return input.split(',').map((value) => value.trim());
|
|
590
590
|
};
|
|
591
591
|
|
|
592
592
|
return {
|