proca 0.6.0 → 0.6.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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/util/flags.mjs +0 -33
package/README.md
CHANGED
package/package.json
CHANGED
package/src/util/flags.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* inspired by https://github.com/salesforcecli/cli/blob/main/src/flags.ts
|
|
3
|
-
* Copyright (c) 2020, salesforce.com, inc.
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Licensed under the BSD 3-Clause license.
|
|
6
|
-
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
// -------------------------------------------------------------------------------
|
|
10
|
-
// No requires or imports since this is loaded early in the cli lifecycle and we
|
|
11
|
-
// want to minimize the number of packages that load before enabling require
|
|
12
|
-
// instrumentation.
|
|
13
|
-
// -------------------------------------------------------------------------------
|
|
14
|
-
|
|
15
|
-
export function _preprocessCliFlags(process) {
|
|
16
|
-
process.argv.map((arg) => {
|
|
17
|
-
if (arg === "--dev-debug") {
|
|
18
|
-
let debug = "*";
|
|
19
|
-
const filterIndex = process.argv.indexOf("--debug-filter");
|
|
20
|
-
if (filterIndex > 0) {
|
|
21
|
-
debug = process.argv[filterIndex + 1];
|
|
22
|
-
|
|
23
|
-
process.argv.splice(filterIndex, 2);
|
|
24
|
-
}
|
|
25
|
-
// convert --dev-debug into a set of environment variables
|
|
26
|
-
process.env.DEBUG = debug;
|
|
27
|
-
process.env.PROCA_ENV = "development";
|
|
28
|
-
|
|
29
|
-
// need to calculate indexOf --dev-debug here because it might've changed based on --debug-filter
|
|
30
|
-
process.argv.splice(process.argv.indexOf("--dev-debug"), 1);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|