@faststore/cli 3.0.54 → 3.0.66
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
CHANGED
|
@@ -30,7 +30,7 @@ $ npm install -g @faststore/cli
|
|
|
30
30
|
$ faststore COMMAND
|
|
31
31
|
running command...
|
|
32
32
|
$ faststore (--version)
|
|
33
|
-
@faststore/cli/3.0.
|
|
33
|
+
@faststore/cli/3.0.66 linux-x64 node-v18.20.3
|
|
34
34
|
$ faststore --help [COMMAND]
|
|
35
35
|
USAGE
|
|
36
36
|
$ faststore COMMAND
|
|
@@ -56,7 +56,7 @@ USAGE
|
|
|
56
56
|
$ faststore build
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
_See code: [dist/commands/build.ts](https://github.com/vtex/faststore/blob/v3.0.
|
|
59
|
+
_See code: [dist/commands/build.ts](https://github.com/vtex/faststore/blob/v3.0.66/dist/commands/build.ts)_
|
|
60
60
|
|
|
61
61
|
## `faststore cms-sync`
|
|
62
62
|
|
|
@@ -68,7 +68,7 @@ FLAGS
|
|
|
68
68
|
-d, --dry-run
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
_See code: [dist/commands/cms-sync.ts](https://github.com/vtex/faststore/blob/v3.0.
|
|
71
|
+
_See code: [dist/commands/cms-sync.ts](https://github.com/vtex/faststore/blob/v3.0.66/dist/commands/cms-sync.ts)_
|
|
72
72
|
|
|
73
73
|
## `faststore dev`
|
|
74
74
|
|
|
@@ -77,7 +77,7 @@ USAGE
|
|
|
77
77
|
$ faststore dev
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
_See code: [dist/commands/dev.ts](https://github.com/vtex/faststore/blob/v3.0.
|
|
80
|
+
_See code: [dist/commands/dev.ts](https://github.com/vtex/faststore/blob/v3.0.66/dist/commands/dev.ts)_
|
|
81
81
|
|
|
82
82
|
## `faststore generate-graphql`
|
|
83
83
|
|
|
@@ -89,7 +89,7 @@ FLAGS
|
|
|
89
89
|
-d, --debug
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
_See code: [dist/commands/generate-graphql.ts](https://github.com/vtex/faststore/blob/v3.0.
|
|
92
|
+
_See code: [dist/commands/generate-graphql.ts](https://github.com/vtex/faststore/blob/v3.0.66/dist/commands/generate-graphql.ts)_
|
|
93
93
|
|
|
94
94
|
## `faststore help [COMMAND]`
|
|
95
95
|
|
|
@@ -118,7 +118,7 @@ USAGE
|
|
|
118
118
|
$ faststore start
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
_See code: [dist/commands/start.ts](https://github.com/vtex/faststore/blob/v3.0.
|
|
121
|
+
_See code: [dist/commands/start.ts](https://github.com/vtex/faststore/blob/v3.0.66/dist/commands/start.ts)_
|
|
122
122
|
|
|
123
123
|
## `faststore test`
|
|
124
124
|
|
|
@@ -127,5 +127,5 @@ USAGE
|
|
|
127
127
|
$ faststore test
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
-
_See code: [dist/commands/test.ts](https://github.com/vtex/faststore/blob/v3.0.
|
|
130
|
+
_See code: [dist/commands/test.ts](https://github.com/vtex/faststore/blob/v3.0.66/dist/commands/test.ts)_
|
|
131
131
|
<!-- commandsstop -->
|
|
@@ -19,12 +19,19 @@ const showWarning = ({ message, cmd, error, debug, }) => {
|
|
|
19
19
|
console.log(error.stdout?.toString());
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
const runCommandSync = ({ cmd, errorMessage, throws, debug, cwd }) => {
|
|
22
|
+
const runCommandSync = ({ cmd, errorMessage, throws, debug, cwd, }) => {
|
|
23
23
|
try {
|
|
24
|
-
|
|
24
|
+
if (debug) {
|
|
25
|
+
console.log(`[STARTED] ${cmd}`);
|
|
26
|
+
}
|
|
27
|
+
const res = (0, child_process_1.execSync)(debug ? `${cmd} --debug --verbose 2>&1` : `${cmd} 2>&1`, {
|
|
25
28
|
stdio: 'pipe',
|
|
26
29
|
cwd,
|
|
27
30
|
});
|
|
31
|
+
if (debug) {
|
|
32
|
+
console.log(`[STATUS] ${res.toString()}`);
|
|
33
|
+
console.log(`[FINISHED] ${cmd}`);
|
|
34
|
+
}
|
|
28
35
|
}
|
|
29
36
|
catch (error) {
|
|
30
37
|
const sanitizedError = debug ? error : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runCommandSync.js","sourceRoot":"","sources":["../../src/utils/runCommandSync.ts"],"names":[],"mappings":";;;;AAAA,0DAAyB;AAEzB,iDAAwC;AAIxC,MAAM,SAAS,GAAG,CAAC,EACjB,OAAO,EACP,GAAG,EACH,KAAK,EACL,KAAK,GAMN,EAAE,EAAE;IACH,OAAO,CAAC,GAAG,CAAC,GAAG,eAAK,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,CAAC,CAAA;IAEjD,IAAI,KAAK,IAAI,GAAG,IAAI,KAAK,EAAE;QACzB,OAAO,CAAC,GAAG,CAAC,GAAG,eAAK,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,GAAG,eAAe,CAAC,CAAA;QAChE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAA;KACtC;IAED,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,CAAC,EACnB,OAAO,EACP,GAAG,EACH,KAAK,EACL,KAAK,GAMN,EAAE,EAAE;IACH,OAAO,CAAC,GAAG,CAAC,GAAG,eAAK,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,EAAE,CAAC,CAAA;IAEnD,IAAI,KAAK,IAAI,GAAG,IAAI,KAAK,EAAE;QACzB,OAAO,CAAC,GAAG,CAAC,GAAG,eAAK,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,GAAG,cAAc,CAAC,CAAA;QAC/D,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAA;KACtC;A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AAM,EACN,KAAK,EACL,GAAG,GAOJ,EAAE,EAAE;IACH,IAAI;QACF,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,EAAE,CAAC,CAAA;SAChC;QAED,MAAM,GAAG,GAAG,IAAA,wBAAQ,EAClB,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,yBAAyB,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,EACvD;YACE,KAAK,EAAE,MAAM;YACb,GAAG;SACJ,CACF,CAAA;QACD,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;YACzC,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,EAAE,CAAC,CAAA;SACjC;KACF;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,cAAc,GAAG,KAAK,CAAC,CAAC,CAAE,KAAuB,CAAC,CAAC,CAAC,SAAS,CAAA;QAEnE,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,WAAW,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAA;SAC1E;aAAM;YACL,SAAS,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAA;SACxE;KACF;AACH,CAAC,CAAA;AAtCY,QAAA,cAAc,kBAsC1B"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"3.0.
|
|
1
|
+
{"version":"3.0.66","commands":{"build":{"id":"build","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"cms-sync":{"id":"cms-sync","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"dry-run":{"name":"dry-run","type":"boolean","char":"d","allowNo":false}},"args":[]},"dev":{"id":"dev","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"generate-graphql":{"id":"generate-graphql","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"debug":{"name":"debug","type":"boolean","char":"d","allowNo":false},"core":{"name":"core","type":"boolean","char":"c","hidden":true,"allowNo":false}},"args":[]},"start":{"id":"start","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"test":{"id":"test","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.66",
|
|
4
4
|
"description": "FastStore CLI",
|
|
5
5
|
"author": "Emerson Laurentino @emersonlaurentino",
|
|
6
6
|
"bin": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"path": "^0.12.7"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@faststore/eslint-config": "^3.0.
|
|
31
|
-
"@faststore/shared": "^3.0.
|
|
30
|
+
"@faststore/eslint-config": "^3.0.66",
|
|
31
|
+
"@faststore/shared": "^3.0.66",
|
|
32
32
|
"@types/chai": "^4",
|
|
33
33
|
"@types/fs-extra": "^9.0.13",
|
|
34
34
|
"@types/node": "^16.11.63",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"oclif"
|
|
70
70
|
],
|
|
71
71
|
"types": "dist/index.d.ts",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "d1aad998cbe7705d039cdc59021ebacecd4fc7ab"
|
|
73
73
|
}
|