@faststore/cli 3.0.22 → 3.0.31

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.22 darwin-arm64 node-v18.19.0
33
+ @faststore/cli/3.0.31 linux-x64 node-v18.19.1
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.22/dist/commands/build.ts)_
59
+ _See code: [dist/commands/build.ts](https://github.com/vtex/faststore/blob/v3.0.31/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.22/dist/commands/cms-sync.ts)_
71
+ _See code: [dist/commands/cms-sync.ts](https://github.com/vtex/faststore/blob/v3.0.31/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.22/dist/commands/dev.ts)_
80
+ _See code: [dist/commands/dev.ts](https://github.com/vtex/faststore/blob/v3.0.31/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.22/dist/commands/generate-graphql.ts)_
92
+ _See code: [dist/commands/generate-graphql.ts](https://github.com/vtex/faststore/blob/v3.0.31/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.22/dist/commands/start.ts)_
121
+ _See code: [dist/commands/start.ts](https://github.com/vtex/faststore/blob/v3.0.31/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.22/dist/commands/test.ts)_
130
+ _See code: [dist/commands/test.ts](https://github.com/vtex/faststore/blob/v3.0.31/dist/commands/test.ts)_
131
131
  <!-- commandsstop -->
@@ -4,6 +4,9 @@ const tslib_1 = require("tslib");
4
4
  const core_1 = require("@oclif/core");
5
5
  const child_process_1 = require("child_process");
6
6
  const chokidar_1 = tslib_1.__importDefault(require("chokidar"));
7
+ const dotenv_1 = tslib_1.__importDefault(require("dotenv"));
8
+ const fs_1 = require("fs");
9
+ const path_1 = tslib_1.__importDefault(require("path"));
7
10
  const directory_1 = require("../utils/directory");
8
11
  const generate_1 = require("../utils/generate");
9
12
  /**
@@ -26,11 +29,16 @@ const defaultIgnored = [
26
29
  ];
27
30
  const devAbortController = new AbortController();
28
31
  async function storeDev() {
32
+ const envVars = dotenv_1.default.parse((0, fs_1.readFileSync)(path_1.default.join((0, directory_1.getRoot)(), 'vtex.env')));
29
33
  const devProcess = (0, child_process_1.spawn)('yarn dev', {
30
34
  shell: true,
31
35
  cwd: directory_1.tmpDir,
32
36
  signal: devAbortController.signal,
33
37
  stdio: 'inherit',
38
+ env: {
39
+ ...process.env,
40
+ ...envVars,
41
+ }
34
42
  });
35
43
  devProcess.on('close', () => {
36
44
  devAbortController.abort();
@@ -1 +1 @@
1
- {"version":3,"file":"dev.js","sourceRoot":"","sources":["../../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B,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,OAAO,CAAC,QAAQ,KAAK,OAAO;SACzC,CAAC,CAAA;QAEF,kBAAkB,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;YACvD,OAAO,CAAC,KAAK,EAAE,CAAA;QACjB,CAAC,CAAC,CAAA;QAEF,MAAM,IAAA,mBAAQ,EAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;QAE/B,QAAQ,EAAE,CAAA;QAEV,OAAO,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC3C,OAAO;iBACJ,EAAE,CAAC,KAAK,EAAE,EAAC,QAAQ,EAAE,EAAE,CAAC,WAAW,EAAC,eAAe,CAAC,CAAC;iBACrD,EAAE,CAAC,QAAQ,EAAE,EAAC,QAAQ,EAAE,EAAE,CAAC,WAAW,EAAC,eAAe,CAAC,CAAC;iBACxD,EAAE,CAAC,QAAQ,EAAE,EAAC,QAAQ,EAAE,EAAE,CAAC,WAAW,EAAC,cAAc,CAAC,CAAC;iBACvD,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;gBAChB,kBAAkB,CAAC,KAAK,EAAE,CAAA;gBAC1B,MAAM,EAAE,CAAA;YACV,CAAC,CAAC;iBACD,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QACzB,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AAxCD,sBAwCC"}
@@ -1 +1 @@
1
- {"version":"3.0.22","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":[]}}}
1
+ {"version":"3.0.31","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.22",
3
+ "version": "3.0.31",
4
4
  "description": "FastStore CLI",
5
5
  "author": "Emerson Laurentino @emersonlaurentino",
6
6
  "bin": {
@@ -22,12 +22,13 @@
22
22
  "@oclif/plugin-not-found": "^2.3.3",
23
23
  "chalk": "~4.1.2",
24
24
  "chokidar": "^3.5.3",
25
+ "dotenv": "^16.4.5",
25
26
  "fs-extra": "^10.1.0",
26
27
  "path": "^0.12.7"
27
28
  },
28
29
  "devDependencies": {
29
- "@faststore/eslint-config": "^3.0.7",
30
- "@faststore/shared": "^3.0.7",
30
+ "@faststore/eslint-config": "^3.0.24",
31
+ "@faststore/shared": "^3.0.24",
31
32
  "@types/chai": "^4",
32
33
  "@types/fs-extra": "^9.0.13",
33
34
  "@types/node": "^16.11.63",
@@ -68,5 +69,5 @@
68
69
  "oclif"
69
70
  ],
70
71
  "types": "dist/index.d.ts",
71
- "gitHead": "efaaecd4ce65532d3615595645b5b9d0fa0fe2a0"
72
+ "gitHead": "71edd96f9f974dc6b1a586e0c3bb326f20ba810f"
72
73
  }