@toptal/davinci-engine 10.5.5 → 10.5.6
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/CHANGELOG.md +13 -0
- package/bin/davinci-engine.js +2 -21
- package/package.json +3 -3
- package/src/commands/__snapshots__/analyze.test.js.snap +44 -6
- package/src/commands/__snapshots__/build.test.js.snap +122 -23
- package/src/commands/__snapshots__/compile-package.test.js.snap +89 -16
- package/src/commands/__snapshots__/publish-package.test.js.snap +94 -17
- package/src/commands/__snapshots__/release-package.test.js.snap +94 -17
- package/src/commands/__snapshots__/sentry-upload-sourcemaps.test.js.snap +54 -9
- package/src/commands/__snapshots__/size.test.js.snap +64 -11
- package/src/commands/analyze.js +10 -15
- package/src/commands/analyze.test.js +21 -4
- package/src/commands/build.js +50 -66
- package/src/commands/build.test.js +11 -5
- package/src/commands/compile-package.js +58 -69
- package/src/commands/compile-package.test.js +21 -4
- package/src/commands/publish-package.js +44 -63
- package/src/commands/publish-package.test.js +15 -4
- package/src/commands/release-package.js +35 -41
- package/src/commands/release-package.test.js +20 -4
- package/src/commands/sentry-upload-sourcemaps.js +12 -25
- package/src/commands/sentry-upload-sourcemaps.test.js +23 -4
- package/src/commands/size.js +15 -33
- package/src/commands/size.test.js +21 -4
- package/src/index.js +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 10.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2021](https://github.com/toptal/davinci/pull/2021) [`97abce92`](https://github.com/toptal/davinci/commit/97abce922d3a0720e0806ae9cd2f2866f355a1bc) Thanks [@dmaklygin](https://github.com/dmaklygin)!
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
- standardize command syntax for consistency
|
|
12
|
+
- Updated dependencies [[`97abce92`](https://github.com/toptal/davinci/commit/97abce922d3a0720e0806ae9cd2f2866f355a1bc), [`97abce92`](https://github.com/toptal/davinci/commit/97abce922d3a0720e0806ae9cd2f2866f355a1bc)]:
|
|
13
|
+
- @toptal/davinci-cli-shared@2.3.1
|
|
14
|
+
- @toptal/davinci-monorepo@8.2.1
|
|
15
|
+
|
|
3
16
|
## 10.5.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/bin/davinci-engine.js
CHANGED
|
@@ -1,26 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import cliEngine from '@toptal/davinci-cli-shared'
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import buildCommandCreator from '../src/commands/build.js'
|
|
6
|
-
import compilePackageCommandCreator from '../src/commands/compile-package.js'
|
|
7
|
-
import publishPackageCommandCreator from '../src/commands/publish-package.js'
|
|
8
|
-
import releasePackageCommandCreator from '../src/commands/release-package.js'
|
|
9
|
-
import analyzeCommandCreator from '../src/commands/analyze.js'
|
|
10
|
-
import sizeCommandCreator from '../src/commands/size.js'
|
|
11
|
-
import sentryUploadSourceMaps from '../src/commands/sentry-upload-sourcemaps.js'
|
|
4
|
+
import { commands } from '../src/index.js'
|
|
12
5
|
|
|
13
|
-
cliEngine.loadCommands(
|
|
14
|
-
[
|
|
15
|
-
createStartCommand,
|
|
16
|
-
buildCommandCreator,
|
|
17
|
-
compilePackageCommandCreator,
|
|
18
|
-
publishPackageCommandCreator,
|
|
19
|
-
releasePackageCommandCreator,
|
|
20
|
-
analyzeCommandCreator,
|
|
21
|
-
sizeCommandCreator,
|
|
22
|
-
sentryUploadSourceMaps,
|
|
23
|
-
],
|
|
24
|
-
'davinci-engine'
|
|
25
|
-
)
|
|
6
|
+
cliEngine.loadCommands(commands, 'davinci-engine')
|
|
26
7
|
cliEngine.bootstrap()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/davinci-engine",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.6",
|
|
4
4
|
"description": "Build tool for frontend projects",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"@sentry/cli": "^2.1.0",
|
|
48
48
|
"@size-limit/file": "^8.1.0",
|
|
49
49
|
"@svgr/webpack": "^6.1.2",
|
|
50
|
-
"@toptal/davinci-cli-shared": "2.3.
|
|
50
|
+
"@toptal/davinci-cli-shared": "2.3.1",
|
|
51
51
|
"@toptal/davinci-cloudflare-requests-handler": "0.1.1",
|
|
52
|
-
"@toptal/davinci-monorepo": "8.2.
|
|
52
|
+
"@toptal/davinci-monorepo": "8.2.1",
|
|
53
53
|
"babel-loader": "^8.2.2",
|
|
54
54
|
"babel-plugin-graphql-tag": "^3.3.0",
|
|
55
55
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
@@ -1,9 +1,47 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
{
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
3
|
+
exports[`createAnalyzeCommand creates a command with the correct parameters 1`] = `
|
|
4
|
+
"{
|
|
5
|
+
"_events": {},
|
|
6
|
+
"_eventsCount": 0,
|
|
7
|
+
"commands": [],
|
|
8
|
+
"options": [],
|
|
9
|
+
"parent": null,
|
|
10
|
+
"_allowUnknownOption": false,
|
|
11
|
+
"_allowExcessArguments": true,
|
|
12
|
+
"_args": [],
|
|
13
|
+
"args": [],
|
|
14
|
+
"rawArgs": [],
|
|
15
|
+
"processedArgs": [],
|
|
16
|
+
"_scriptPath": null,
|
|
17
|
+
"_name": "analyze",
|
|
18
|
+
"_optionValues": {},
|
|
19
|
+
"_optionValueSources": {},
|
|
20
|
+
"_storeOptionsAsProperties": false,
|
|
21
|
+
"_executableHandler": false,
|
|
22
|
+
"_executableFile": null,
|
|
23
|
+
"_executableDir": null,
|
|
24
|
+
"_defaultCommandName": null,
|
|
25
|
+
"_exitCallback": null,
|
|
26
|
+
"_aliases": [],
|
|
27
|
+
"_combineFlagAndOptionalValue": true,
|
|
28
|
+
"_description": "analyze webpack bundle and show the installed dependencies",
|
|
29
|
+
"_summary": "",
|
|
30
|
+
"_enablePositionalOptions": false,
|
|
31
|
+
"_passThroughOptions": false,
|
|
32
|
+
"_lifeCycleHooks": {},
|
|
33
|
+
"_showHelpAfterError": false,
|
|
34
|
+
"_showSuggestionAfterError": true,
|
|
35
|
+
"_outputConfiguration": {},
|
|
36
|
+
"_hidden": false,
|
|
37
|
+
"_hasHelpOption": true,
|
|
38
|
+
"_helpFlags": "-h, --help",
|
|
39
|
+
"_helpDescription": "display help for command",
|
|
40
|
+
"_helpShortFlag": "-h",
|
|
41
|
+
"_helpLongFlag": "--help",
|
|
42
|
+
"_helpCommandName": "help",
|
|
43
|
+
"_helpCommandnameAndArgs": "help [command]",
|
|
44
|
+
"_helpCommandDescription": "display help for command",
|
|
45
|
+
"_helpConfiguration": {}
|
|
46
|
+
}"
|
|
9
47
|
`;
|
|
@@ -1,41 +1,140 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
{
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
3
|
+
exports[`createBuildCommand has the correct command structure 1`] = `
|
|
4
|
+
"{
|
|
5
|
+
"_events": {},
|
|
6
|
+
"_eventsCount": 7,
|
|
7
|
+
"commands": [],
|
|
8
8
|
"options": [
|
|
9
9
|
{
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
10
|
+
"flags": "--dotenv <dotenv>",
|
|
11
|
+
"description": ".env file to use as source of env variables; values: 'none', 'auto' or path to dotenv file",
|
|
12
|
+
"required": true,
|
|
13
|
+
"optional": false,
|
|
14
|
+
"variadic": false,
|
|
15
|
+
"mandatory": false,
|
|
16
|
+
"long": "--dotenv",
|
|
17
|
+
"negate": false,
|
|
18
|
+
"defaultValue": "none",
|
|
19
|
+
"hidden": false,
|
|
20
|
+
"conflictsWith": []
|
|
13
21
|
},
|
|
14
22
|
{
|
|
15
|
-
"
|
|
16
|
-
"
|
|
23
|
+
"flags": "--disable-source-maps",
|
|
24
|
+
"description": "disable source maps generation",
|
|
25
|
+
"required": false,
|
|
26
|
+
"optional": false,
|
|
27
|
+
"variadic": false,
|
|
28
|
+
"mandatory": false,
|
|
29
|
+
"long": "--disable-source-maps",
|
|
30
|
+
"negate": false,
|
|
31
|
+
"hidden": false,
|
|
32
|
+
"conflictsWith": []
|
|
17
33
|
},
|
|
18
34
|
{
|
|
19
|
-
"
|
|
20
|
-
"
|
|
35
|
+
"flags": "--emergency-safety-worker",
|
|
36
|
+
"description": "replace progressive web app service worker with safety-worker.js content (https://toptal-core.atlassian.net/wiki/spaces/FE/pages/2059796590/Davinci+-+How+to+deal+with+progressive+web+app+PWA#Service-Worker-Safety)",
|
|
37
|
+
"required": false,
|
|
38
|
+
"optional": false,
|
|
39
|
+
"variadic": false,
|
|
40
|
+
"mandatory": false,
|
|
41
|
+
"long": "--emergency-safety-worker",
|
|
42
|
+
"negate": false,
|
|
43
|
+
"hidden": false,
|
|
44
|
+
"conflictsWith": []
|
|
21
45
|
},
|
|
22
46
|
{
|
|
23
|
-
"
|
|
24
|
-
"
|
|
47
|
+
"flags": "--disable-cloudflare-handler",
|
|
48
|
+
"description": "disable Cloudflare fetch handler override",
|
|
49
|
+
"required": false,
|
|
50
|
+
"optional": false,
|
|
51
|
+
"variadic": false,
|
|
52
|
+
"mandatory": false,
|
|
53
|
+
"long": "--disable-cloudflare-handler",
|
|
54
|
+
"negate": false,
|
|
55
|
+
"hidden": false,
|
|
56
|
+
"conflictsWith": []
|
|
25
57
|
},
|
|
26
58
|
{
|
|
27
|
-
"
|
|
28
|
-
"
|
|
59
|
+
"flags": "--skip-type-checking",
|
|
60
|
+
"description": "skip type checking in webpack",
|
|
61
|
+
"required": false,
|
|
62
|
+
"optional": false,
|
|
63
|
+
"variadic": false,
|
|
64
|
+
"mandatory": false,
|
|
65
|
+
"long": "--skip-type-checking",
|
|
66
|
+
"negate": false,
|
|
67
|
+
"hidden": false,
|
|
68
|
+
"conflictsWith": []
|
|
29
69
|
},
|
|
30
70
|
{
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
71
|
+
"flags": "--progress-bar [basic | fancy]",
|
|
72
|
+
"description": "progress bar type for webpack build process",
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": true,
|
|
75
|
+
"variadic": false,
|
|
76
|
+
"mandatory": false,
|
|
77
|
+
"long": "--progress-bar",
|
|
78
|
+
"negate": false,
|
|
79
|
+
"defaultValue": "basic",
|
|
80
|
+
"hidden": false,
|
|
81
|
+
"conflictsWith": []
|
|
34
82
|
},
|
|
35
83
|
{
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
84
|
+
"flags": "--compiler <compiler>",
|
|
85
|
+
"description": "Compiler to use: babel, swc (default: babel)",
|
|
86
|
+
"required": true,
|
|
87
|
+
"optional": false,
|
|
88
|
+
"variadic": false,
|
|
89
|
+
"mandatory": false,
|
|
90
|
+
"long": "--compiler",
|
|
91
|
+
"negate": false,
|
|
92
|
+
"hidden": false,
|
|
93
|
+
"conflictsWith": []
|
|
94
|
+
}
|
|
39
95
|
],
|
|
40
|
-
|
|
96
|
+
"parent": null,
|
|
97
|
+
"_allowUnknownOption": false,
|
|
98
|
+
"_allowExcessArguments": true,
|
|
99
|
+
"_args": [],
|
|
100
|
+
"args": [],
|
|
101
|
+
"rawArgs": [],
|
|
102
|
+
"processedArgs": [],
|
|
103
|
+
"_scriptPath": null,
|
|
104
|
+
"_name": "build",
|
|
105
|
+
"_optionValues": {
|
|
106
|
+
"dotenv": "none",
|
|
107
|
+
"progressBar": "basic"
|
|
108
|
+
},
|
|
109
|
+
"_optionValueSources": {
|
|
110
|
+
"dotenv": "default",
|
|
111
|
+
"progressBar": "default"
|
|
112
|
+
},
|
|
113
|
+
"_storeOptionsAsProperties": false,
|
|
114
|
+
"_executableHandler": false,
|
|
115
|
+
"_executableFile": null,
|
|
116
|
+
"_executableDir": null,
|
|
117
|
+
"_defaultCommandName": null,
|
|
118
|
+
"_exitCallback": null,
|
|
119
|
+
"_aliases": [],
|
|
120
|
+
"_combineFlagAndOptionalValue": true,
|
|
121
|
+
"_description": "Build project for release",
|
|
122
|
+
"_summary": "",
|
|
123
|
+
"_enablePositionalOptions": false,
|
|
124
|
+
"_passThroughOptions": false,
|
|
125
|
+
"_lifeCycleHooks": {},
|
|
126
|
+
"_showHelpAfterError": false,
|
|
127
|
+
"_showSuggestionAfterError": true,
|
|
128
|
+
"_outputConfiguration": {},
|
|
129
|
+
"_hidden": false,
|
|
130
|
+
"_hasHelpOption": true,
|
|
131
|
+
"_helpFlags": "-h, --help",
|
|
132
|
+
"_helpDescription": "display help for command",
|
|
133
|
+
"_helpShortFlag": "-h",
|
|
134
|
+
"_helpLongFlag": "--help",
|
|
135
|
+
"_helpCommandName": "help",
|
|
136
|
+
"_helpCommandnameAndArgs": "help [command]",
|
|
137
|
+
"_helpCommandDescription": "display help for command",
|
|
138
|
+
"_helpConfiguration": {}
|
|
139
|
+
}"
|
|
41
140
|
`;
|
|
@@ -1,28 +1,101 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
{
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
3
|
+
exports[`createCompilePackageCommand creates a command with the correct parameters 1`] = `
|
|
4
|
+
"{
|
|
5
|
+
"_events": {},
|
|
6
|
+
"_eventsCount": 4,
|
|
7
|
+
"commands": [],
|
|
8
8
|
"options": [
|
|
9
9
|
{
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
10
|
+
"flags": "--dotenv <dotenv>",
|
|
11
|
+
"description": ".env file to use as source of env variables; values: 'none', 'auto' or path to dotenv file",
|
|
12
|
+
"required": true,
|
|
13
|
+
"optional": false,
|
|
14
|
+
"variadic": false,
|
|
15
|
+
"mandatory": false,
|
|
16
|
+
"long": "--dotenv",
|
|
17
|
+
"negate": false,
|
|
18
|
+
"defaultValue": "none",
|
|
19
|
+
"hidden": false,
|
|
20
|
+
"conflictsWith": []
|
|
13
21
|
},
|
|
14
22
|
{
|
|
15
|
-
"
|
|
16
|
-
"
|
|
23
|
+
"flags": "--babelConfig <babelConfig>",
|
|
24
|
+
"description": "path to a custom Babel config file; values: path to a Babel config file",
|
|
25
|
+
"required": true,
|
|
26
|
+
"optional": false,
|
|
27
|
+
"variadic": false,
|
|
28
|
+
"mandatory": false,
|
|
29
|
+
"long": "--babelConfig",
|
|
30
|
+
"negate": false,
|
|
31
|
+
"hidden": false,
|
|
32
|
+
"conflictsWith": []
|
|
17
33
|
},
|
|
18
34
|
{
|
|
19
|
-
"
|
|
20
|
-
"
|
|
35
|
+
"flags": "--tsConfig <tsConfig>",
|
|
36
|
+
"description": "path to a custom tsconfig file; values: path to a custom tsconfig file",
|
|
37
|
+
"required": true,
|
|
38
|
+
"optional": false,
|
|
39
|
+
"variadic": false,
|
|
40
|
+
"mandatory": false,
|
|
41
|
+
"long": "--tsConfig",
|
|
42
|
+
"negate": false,
|
|
43
|
+
"hidden": false,
|
|
44
|
+
"conflictsWith": []
|
|
21
45
|
},
|
|
22
46
|
{
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
47
|
+
"flags": "--entry <entry>",
|
|
48
|
+
"description": "path to a custom entry index file; values: path to a custom entry index file",
|
|
49
|
+
"required": true,
|
|
50
|
+
"optional": false,
|
|
51
|
+
"variadic": false,
|
|
52
|
+
"mandatory": false,
|
|
53
|
+
"long": "--entry",
|
|
54
|
+
"negate": false,
|
|
55
|
+
"hidden": false,
|
|
56
|
+
"conflictsWith": []
|
|
57
|
+
}
|
|
26
58
|
],
|
|
27
|
-
|
|
59
|
+
"parent": null,
|
|
60
|
+
"_allowUnknownOption": false,
|
|
61
|
+
"_allowExcessArguments": true,
|
|
62
|
+
"_args": [],
|
|
63
|
+
"args": [],
|
|
64
|
+
"rawArgs": [],
|
|
65
|
+
"processedArgs": [],
|
|
66
|
+
"_scriptPath": null,
|
|
67
|
+
"_name": "compile-package",
|
|
68
|
+
"_optionValues": {
|
|
69
|
+
"dotenv": "none"
|
|
70
|
+
},
|
|
71
|
+
"_optionValueSources": {
|
|
72
|
+
"dotenv": "default"
|
|
73
|
+
},
|
|
74
|
+
"_storeOptionsAsProperties": false,
|
|
75
|
+
"_executableHandler": false,
|
|
76
|
+
"_executableFile": null,
|
|
77
|
+
"_executableDir": null,
|
|
78
|
+
"_defaultCommandName": null,
|
|
79
|
+
"_exitCallback": null,
|
|
80
|
+
"_aliases": [],
|
|
81
|
+
"_combineFlagAndOptionalValue": true,
|
|
82
|
+
"_description": "Compile package to publish to npm",
|
|
83
|
+
"_summary": "",
|
|
84
|
+
"_enablePositionalOptions": false,
|
|
85
|
+
"_passThroughOptions": false,
|
|
86
|
+
"_lifeCycleHooks": {},
|
|
87
|
+
"_showHelpAfterError": false,
|
|
88
|
+
"_showSuggestionAfterError": true,
|
|
89
|
+
"_outputConfiguration": {},
|
|
90
|
+
"_hidden": false,
|
|
91
|
+
"_hasHelpOption": true,
|
|
92
|
+
"_helpFlags": "-h, --help",
|
|
93
|
+
"_helpDescription": "display help for command",
|
|
94
|
+
"_helpShortFlag": "-h",
|
|
95
|
+
"_helpLongFlag": "--help",
|
|
96
|
+
"_helpCommandName": "help",
|
|
97
|
+
"_helpCommandnameAndArgs": "help [command]",
|
|
98
|
+
"_helpCommandDescription": "display help for command",
|
|
99
|
+
"_helpConfiguration": {}
|
|
100
|
+
}"
|
|
28
101
|
`;
|
|
@@ -1,31 +1,108 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
{
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
3
|
+
exports[`createPublishPackageCommand has the correct command structure 1`] = `
|
|
4
|
+
"{
|
|
5
|
+
"_events": {},
|
|
6
|
+
"_eventsCount": 5,
|
|
7
|
+
"commands": [],
|
|
8
8
|
"options": [
|
|
9
9
|
{
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"flags": "--alpha",
|
|
11
|
+
"description": "publish alpha version of the package",
|
|
12
|
+
"required": false,
|
|
13
|
+
"optional": false,
|
|
14
|
+
"variadic": false,
|
|
15
|
+
"mandatory": false,
|
|
16
|
+
"long": "--alpha",
|
|
17
|
+
"negate": false,
|
|
18
|
+
"hidden": false,
|
|
19
|
+
"conflictsWith": []
|
|
12
20
|
},
|
|
13
21
|
{
|
|
14
|
-
"
|
|
15
|
-
"
|
|
22
|
+
"flags": "--outputVersion <outputVersion>",
|
|
23
|
+
"description": "the file to output the new published version",
|
|
24
|
+
"required": true,
|
|
25
|
+
"optional": false,
|
|
26
|
+
"variadic": false,
|
|
27
|
+
"mandatory": false,
|
|
28
|
+
"long": "--outputVersion",
|
|
29
|
+
"negate": false,
|
|
30
|
+
"hidden": false,
|
|
31
|
+
"conflictsWith": []
|
|
16
32
|
},
|
|
17
33
|
{
|
|
18
|
-
"
|
|
19
|
-
"
|
|
34
|
+
"flags": "--branch <branch>",
|
|
35
|
+
"description": "the branch name to be added to the release version metadata, only for alpha version",
|
|
36
|
+
"required": true,
|
|
37
|
+
"optional": false,
|
|
38
|
+
"variadic": false,
|
|
39
|
+
"mandatory": false,
|
|
40
|
+
"long": "--branch",
|
|
41
|
+
"negate": false,
|
|
42
|
+
"hidden": false,
|
|
43
|
+
"conflictsWith": []
|
|
20
44
|
},
|
|
21
45
|
{
|
|
22
|
-
"
|
|
23
|
-
"
|
|
46
|
+
"flags": "--nonMonorepo",
|
|
47
|
+
"description": "explicitly process as non-monorepo (a single package)",
|
|
48
|
+
"required": false,
|
|
49
|
+
"optional": false,
|
|
50
|
+
"variadic": false,
|
|
51
|
+
"mandatory": false,
|
|
52
|
+
"long": "--nonMonorepo",
|
|
53
|
+
"negate": false,
|
|
54
|
+
"hidden": false,
|
|
55
|
+
"conflictsWith": []
|
|
24
56
|
},
|
|
25
57
|
{
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
58
|
+
"flags": "--publishRootFolder <publishRootFolder>",
|
|
59
|
+
"description": "custom publish root folder, (by default is /dist-package)",
|
|
60
|
+
"required": true,
|
|
61
|
+
"optional": false,
|
|
62
|
+
"variadic": false,
|
|
63
|
+
"mandatory": false,
|
|
64
|
+
"long": "--publishRootFolder",
|
|
65
|
+
"negate": false,
|
|
66
|
+
"hidden": false,
|
|
67
|
+
"conflictsWith": []
|
|
68
|
+
}
|
|
29
69
|
],
|
|
30
|
-
|
|
70
|
+
"parent": null,
|
|
71
|
+
"_allowUnknownOption": false,
|
|
72
|
+
"_allowExcessArguments": true,
|
|
73
|
+
"_args": [],
|
|
74
|
+
"args": [],
|
|
75
|
+
"rawArgs": [],
|
|
76
|
+
"processedArgs": [],
|
|
77
|
+
"_scriptPath": null,
|
|
78
|
+
"_name": "publish-package",
|
|
79
|
+
"_optionValues": {},
|
|
80
|
+
"_optionValueSources": {},
|
|
81
|
+
"_storeOptionsAsProperties": false,
|
|
82
|
+
"_executableHandler": false,
|
|
83
|
+
"_executableFile": null,
|
|
84
|
+
"_executableDir": null,
|
|
85
|
+
"_defaultCommandName": null,
|
|
86
|
+
"_exitCallback": null,
|
|
87
|
+
"_aliases": [],
|
|
88
|
+
"_combineFlagAndOptionalValue": true,
|
|
89
|
+
"_description": "Publish package to npm",
|
|
90
|
+
"_summary": "",
|
|
91
|
+
"_enablePositionalOptions": false,
|
|
92
|
+
"_passThroughOptions": false,
|
|
93
|
+
"_lifeCycleHooks": {},
|
|
94
|
+
"_showHelpAfterError": false,
|
|
95
|
+
"_showSuggestionAfterError": true,
|
|
96
|
+
"_outputConfiguration": {},
|
|
97
|
+
"_hidden": false,
|
|
98
|
+
"_hasHelpOption": true,
|
|
99
|
+
"_helpFlags": "-h, --help",
|
|
100
|
+
"_helpDescription": "display help for command",
|
|
101
|
+
"_helpShortFlag": "-h",
|
|
102
|
+
"_helpLongFlag": "--help",
|
|
103
|
+
"_helpCommandName": "help",
|
|
104
|
+
"_helpCommandnameAndArgs": "help [command]",
|
|
105
|
+
"_helpCommandDescription": "display help for command",
|
|
106
|
+
"_helpConfiguration": {}
|
|
107
|
+
}"
|
|
31
108
|
`;
|
|
@@ -1,31 +1,108 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
{
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
3
|
+
exports[`createReleasePackageCommand has the correct command structure 1`] = `
|
|
4
|
+
"{
|
|
5
|
+
"_events": {},
|
|
6
|
+
"_eventsCount": 5,
|
|
7
|
+
"commands": [],
|
|
8
8
|
"options": [
|
|
9
9
|
{
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"flags": "--babelConfig <babelConfig>",
|
|
11
|
+
"description": "path to a custom Babel config file; values: path to a Babel config file",
|
|
12
|
+
"required": true,
|
|
13
|
+
"optional": false,
|
|
14
|
+
"variadic": false,
|
|
15
|
+
"mandatory": false,
|
|
16
|
+
"long": "--babelConfig",
|
|
17
|
+
"negate": false,
|
|
18
|
+
"hidden": false,
|
|
19
|
+
"conflictsWith": []
|
|
12
20
|
},
|
|
13
21
|
{
|
|
14
|
-
"
|
|
15
|
-
"
|
|
22
|
+
"flags": "--tsConfig <tsConfig>",
|
|
23
|
+
"description": "path to a custom tsconfig file; values: path to a custom tsconfig file",
|
|
24
|
+
"required": true,
|
|
25
|
+
"optional": false,
|
|
26
|
+
"variadic": false,
|
|
27
|
+
"mandatory": false,
|
|
28
|
+
"long": "--tsConfig",
|
|
29
|
+
"negate": false,
|
|
30
|
+
"hidden": false,
|
|
31
|
+
"conflictsWith": []
|
|
16
32
|
},
|
|
17
33
|
{
|
|
18
|
-
"
|
|
19
|
-
"
|
|
34
|
+
"flags": "--entry <entry>",
|
|
35
|
+
"description": "path to a custom entry index file; values: path to a custom entry index file",
|
|
36
|
+
"required": true,
|
|
37
|
+
"optional": false,
|
|
38
|
+
"variadic": false,
|
|
39
|
+
"mandatory": false,
|
|
40
|
+
"long": "--entry",
|
|
41
|
+
"negate": false,
|
|
42
|
+
"hidden": false,
|
|
43
|
+
"conflictsWith": []
|
|
20
44
|
},
|
|
21
45
|
{
|
|
22
|
-
"
|
|
23
|
-
"
|
|
46
|
+
"flags": "--outputVersion <outputVersion>",
|
|
47
|
+
"description": "the file to output the new published version to",
|
|
48
|
+
"required": true,
|
|
49
|
+
"optional": false,
|
|
50
|
+
"variadic": false,
|
|
51
|
+
"mandatory": false,
|
|
52
|
+
"long": "--outputVersion",
|
|
53
|
+
"negate": false,
|
|
54
|
+
"hidden": false,
|
|
55
|
+
"conflictsWith": []
|
|
24
56
|
},
|
|
25
57
|
{
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
58
|
+
"flags": "--nonMonorepo",
|
|
59
|
+
"description": "explicitly process as non-monorepo (a single package)",
|
|
60
|
+
"required": false,
|
|
61
|
+
"optional": false,
|
|
62
|
+
"variadic": false,
|
|
63
|
+
"mandatory": false,
|
|
64
|
+
"long": "--nonMonorepo",
|
|
65
|
+
"negate": false,
|
|
66
|
+
"hidden": false,
|
|
67
|
+
"conflictsWith": []
|
|
68
|
+
}
|
|
29
69
|
],
|
|
30
|
-
|
|
70
|
+
"parent": null,
|
|
71
|
+
"_allowUnknownOption": false,
|
|
72
|
+
"_allowExcessArguments": true,
|
|
73
|
+
"_args": [],
|
|
74
|
+
"args": [],
|
|
75
|
+
"rawArgs": [],
|
|
76
|
+
"processedArgs": [],
|
|
77
|
+
"_scriptPath": null,
|
|
78
|
+
"_name": "release-package",
|
|
79
|
+
"_optionValues": {},
|
|
80
|
+
"_optionValueSources": {},
|
|
81
|
+
"_storeOptionsAsProperties": false,
|
|
82
|
+
"_executableHandler": false,
|
|
83
|
+
"_executableFile": null,
|
|
84
|
+
"_executableDir": null,
|
|
85
|
+
"_defaultCommandName": null,
|
|
86
|
+
"_exitCallback": null,
|
|
87
|
+
"_aliases": [],
|
|
88
|
+
"_combineFlagAndOptionalValue": true,
|
|
89
|
+
"_description": "Build and release the package",
|
|
90
|
+
"_summary": "",
|
|
91
|
+
"_enablePositionalOptions": false,
|
|
92
|
+
"_passThroughOptions": false,
|
|
93
|
+
"_lifeCycleHooks": {},
|
|
94
|
+
"_showHelpAfterError": false,
|
|
95
|
+
"_showSuggestionAfterError": true,
|
|
96
|
+
"_outputConfiguration": {},
|
|
97
|
+
"_hidden": false,
|
|
98
|
+
"_hasHelpOption": true,
|
|
99
|
+
"_helpFlags": "-h, --help",
|
|
100
|
+
"_helpDescription": "display help for command",
|
|
101
|
+
"_helpShortFlag": "-h",
|
|
102
|
+
"_helpLongFlag": "--help",
|
|
103
|
+
"_helpCommandName": "help",
|
|
104
|
+
"_helpCommandnameAndArgs": "help [command]",
|
|
105
|
+
"_helpCommandDescription": "display help for command",
|
|
106
|
+
"_helpConfiguration": {}
|
|
107
|
+
}"
|
|
31
108
|
`;
|