@faststore/cli 3.100.4 → 3.100.5

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.100.4 linux-x64 node-v20.20.2
33
+ @faststore/cli/3.100.5 linux-x64 node-v20.20.2
34
34
  $ faststore --help [COMMAND]
35
35
  USAGE
36
36
  $ faststore COMMAND
@@ -65,7 +65,7 @@ FLAGS
65
65
  registry.
66
66
  ```
67
67
 
68
- _See code: [dist/commands/build.js](https://github.com/vtex/faststore/blob/v3.100.4/dist/commands/build.js)_
68
+ _See code: [dist/commands/build.js](https://github.com/vtex/faststore/blob/v3.100.5/dist/commands/build.js)_
69
69
 
70
70
  ## `faststore cms-sync [PATH]`
71
71
 
@@ -80,7 +80,7 @@ FLAGS
80
80
  -d, --dry-run
81
81
  ```
82
82
 
83
- _See code: [dist/commands/cms-sync.js](https://github.com/vtex/faststore/blob/v3.100.4/dist/commands/cms-sync.js)_
83
+ _See code: [dist/commands/cms-sync.js](https://github.com/vtex/faststore/blob/v3.100.5/dist/commands/cms-sync.js)_
84
84
 
85
85
  ## `faststore create [PATH]`
86
86
 
@@ -100,7 +100,7 @@ EXAMPLES
100
100
  $ yarn faststore create discovery
101
101
  ```
102
102
 
103
- _See code: [dist/commands/create.js](https://github.com/vtex/faststore/blob/v3.100.4/dist/commands/create.js)_
103
+ _See code: [dist/commands/create.js](https://github.com/vtex/faststore/blob/v3.100.5/dist/commands/create.js)_
104
104
 
105
105
  ## `faststore dev [ACCOUNT] [PATH] [PORT]`
106
106
 
@@ -117,7 +117,7 @@ FLAGS
117
117
  --watch-plugins Enable watching for plugin changes
118
118
  ```
119
119
 
120
- _See code: [dist/commands/dev.js](https://github.com/vtex/faststore/blob/v3.100.4/dist/commands/dev.js)_
120
+ _See code: [dist/commands/dev.js](https://github.com/vtex/faststore/blob/v3.100.5/dist/commands/dev.js)_
121
121
 
122
122
  ## `faststore generate-graphql [PATH]`
123
123
 
@@ -129,7 +129,7 @@ ARGUMENTS
129
129
  PATH The path where the FastStore GraphQL customization is. Defaults to cwd.
130
130
  ```
131
131
 
132
- _See code: [dist/commands/generate-graphql.js](https://github.com/vtex/faststore/blob/v3.100.4/dist/commands/generate-graphql.js)_
132
+ _See code: [dist/commands/generate-graphql.js](https://github.com/vtex/faststore/blob/v3.100.5/dist/commands/generate-graphql.js)_
133
133
 
134
134
  ## `faststore help [COMMAND]`
135
135
 
@@ -163,7 +163,7 @@ ARGUMENTS
163
163
  PORT The port where FastStore should run. Defaults to 3000.
164
164
  ```
165
165
 
166
- _See code: [dist/commands/start.js](https://github.com/vtex/faststore/blob/v3.100.4/dist/commands/start.js)_
166
+ _See code: [dist/commands/start.js](https://github.com/vtex/faststore/blob/v3.100.5/dist/commands/start.js)_
167
167
 
168
168
  ## `faststore test [PATH]`
169
169
 
@@ -175,5 +175,5 @@ ARGUMENTS
175
175
  PATH The path where the FastStore being tested is. Defaults to cwd.
176
176
  ```
177
177
 
178
- _See code: [dist/commands/test.js](https://github.com/vtex/faststore/blob/v3.100.4/dist/commands/test.js)_
178
+ _See code: [dist/commands/test.js](https://github.com/vtex/faststore/blob/v3.100.5/dist/commands/test.js)_
179
179
  <!-- commandsstop -->
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/utils/commands.ts"],"names":[],"mappings":"AAGA,wBAAgB,0BAA0B,WASzC"}
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/utils/commands.ts"],"names":[],"mappings":"AAOA,wBAAgB,0BAA0B,WAoCzC"}
@@ -1,16 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPreferredPackageManager = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const ni_1 = require("@antfu/ni");
6
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
4
7
  const node_child_process_1 = require("node:child_process");
5
- // Retrieves the package manager based on the developer lockfile, using `ni`.
8
+ const logger_1 = require("./logger");
9
+ const DEFAULT_AGENT = 'yarn';
6
10
  function getPreferredPackageManager() {
7
- const agent = (0, node_child_process_1.spawnSync)('na', ['?'], {
11
+ // No shell on POSIX: `?` is a glob there, so a single-character filename in
12
+ // the store would rewrite the probe (e.g. `na x`). Windows still needs a
13
+ // shell to run the `na.cmd` shim, and cmd.exe does not expand globs.
14
+ const probe = (0, node_child_process_1.spawnSync)('na', ['?'], {
8
15
  encoding: 'utf8',
9
- shell: true,
10
- }).stdout.trim();
11
- if (agent === '')
12
- return 'yarn'; // Default to Yarn
13
- return agent;
16
+ shell: process.platform === 'win32',
17
+ });
18
+ const resolved = probe.stdout?.trim() ?? '';
19
+ const voltaPrefix = (0, ni_1.getVoltaPrefix)();
20
+ const agent = voltaPrefix && resolved.startsWith(`${voltaPrefix} `)
21
+ ? resolved.slice(voltaPrefix.length + 1)
22
+ : resolved;
23
+ if (ni_1.agents.some((knownAgent) => knownAgent === agent)) {
24
+ return resolved;
25
+ }
26
+ if (agent !== '') {
27
+ logger_1.logger.warn(`${chalk_1.default.yellow('warning')} - Could not resolve a known package manager, "na" returned: ${agent
28
+ .split('\n')[0]
29
+ .slice(0, 120)}`);
30
+ logger_1.logger.warn(`${chalk_1.default.yellow('warning')} - Using "${DEFAULT_AGENT}" instead. If more than one lockfile is committed, keep a single one so the package manager is unambiguous.`);
31
+ }
32
+ return voltaPrefix ? `${voltaPrefix} ${DEFAULT_AGENT}` : DEFAULT_AGENT;
14
33
  }
15
34
  exports.getPreferredPackageManager = getPreferredPackageManager;
16
35
  //# sourceMappingURL=commands.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/utils/commands.ts"],"names":[],"mappings":";;;AAAA,2DAA8C;AAE9C,6EAA6E;AAC7E,SAAgB,0BAA0B;IACxC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AAG,eAAK,CAAC,MAAM,CACb,SAAS,CACV,gEAAgE,KAAK;aACnE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aACd,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CACnB,CAAA;QACD,eAAM,CAAC,IAAI,CACT,GAAG,eAAK,CAAC,MAAM,CACb,SAAS,CACV,aAAa,aAAa,6GAA6G,CACzI,CAAA;IACH,CAAC;IAED,OAAO,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,IAAI,aAAa,EAAE,CAAC,CAAC,CAAC,aAAa,CAAA;AACxE,CAAC;AApCD,gEAoCC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=commands.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.test.d.ts","sourceRoot":"","sources":["../../src/utils/commands.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const ni_1 = require("@antfu/ni");
4
+ const node_child_process_1 = require("node:child_process");
5
+ const commands_1 = require("./commands");
6
+ const logger_1 = require("./logger");
7
+ jest.mock('@antfu/ni', () => ({
8
+ ...jest.requireActual('@antfu/ni'),
9
+ getVoltaPrefix: jest.fn(),
10
+ }));
11
+ jest.mock('node:child_process', () => ({
12
+ spawnSync: jest.fn(),
13
+ }));
14
+ const spawnSyncMock = node_child_process_1.spawnSync;
15
+ const getVoltaPrefixMock = ni_1.getVoltaPrefix;
16
+ describe('getPreferredPackageManager', () => {
17
+ let warnMock;
18
+ beforeEach(() => {
19
+ warnMock = jest.spyOn(logger_1.logger, 'warn').mockImplementation(() => undefined);
20
+ getVoltaPrefixMock.mockReturnValue('');
21
+ spawnSyncMock.mockReturnValue({ stdout: 'yarn\n' });
22
+ });
23
+ afterEach(() => {
24
+ warnMock.mockRestore();
25
+ jest.clearAllMocks();
26
+ });
27
+ it('returns a known agent as-is', () => {
28
+ spawnSyncMock.mockReturnValue({ stdout: 'pnpm\n' });
29
+ expect((0, commands_1.getPreferredPackageManager)()).toBe('pnpm');
30
+ expect(warnMock).not.toHaveBeenCalled();
31
+ });
32
+ it('keeps "?" a literal argument, away from POSIX shell globbing', () => {
33
+ (0, commands_1.getPreferredPackageManager)();
34
+ expect(spawnSyncMock).toHaveBeenCalledWith('na', ['?'], {
35
+ encoding: 'utf8',
36
+ shell: process.platform === 'win32',
37
+ });
38
+ });
39
+ it('keeps the Volta prefix on a known agent', () => {
40
+ getVoltaPrefixMock.mockReturnValue('volta run');
41
+ spawnSyncMock.mockReturnValue({ stdout: 'volta run yarn\n' });
42
+ expect((0, commands_1.getPreferredPackageManager)()).toBe('volta run yarn');
43
+ expect(warnMock).not.toHaveBeenCalled();
44
+ });
45
+ it('falls back to yarn when na leaks an interactive prompt', () => {
46
+ // The FAS-1199 incident: an agent that is not installed makes na render
47
+ // a confirm prompt to stdout instead of failing.
48
+ spawnSyncMock.mockReturnValue({
49
+ stdout: 'Would you like to globally install pnpm (https://pnpm.io/installation)? › (y/N)\n',
50
+ });
51
+ expect((0, commands_1.getPreferredPackageManager)()).toBe('yarn');
52
+ expect(warnMock).toHaveBeenCalledWith(expect.stringContaining('Could not resolve a known package manager'));
53
+ });
54
+ it('reports only the first line of unrecognised output', () => {
55
+ spawnSyncMock.mockReturnValue({
56
+ stdout: 'garbage first line\nsecond line',
57
+ });
58
+ (0, commands_1.getPreferredPackageManager)();
59
+ const [message] = warnMock.mock.calls[0];
60
+ expect(message).toContain('garbage first line');
61
+ expect(message).not.toContain('second line');
62
+ });
63
+ it('falls back to yarn silently on empty output', () => {
64
+ spawnSyncMock.mockReturnValue({ stdout: '' });
65
+ expect((0, commands_1.getPreferredPackageManager)()).toBe('yarn');
66
+ expect(warnMock).not.toHaveBeenCalled();
67
+ });
68
+ it('falls back to yarn when the probe cannot be spawned', () => {
69
+ // spawnSync reports a spawn failure via `error`, with null streams.
70
+ spawnSyncMock.mockReturnValue({ stdout: null, error: new Error('ENOENT') });
71
+ expect((0, commands_1.getPreferredPackageManager)()).toBe('yarn');
72
+ expect(warnMock).not.toHaveBeenCalled();
73
+ });
74
+ it('keeps the Volta prefix on the fallback', () => {
75
+ getVoltaPrefixMock.mockReturnValue('volta run');
76
+ spawnSyncMock.mockReturnValue({ stdout: 'volta run not-an-agent\n' });
77
+ expect((0, commands_1.getPreferredPackageManager)()).toBe('volta run yarn');
78
+ });
79
+ });
80
+ //# sourceMappingURL=commands.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.test.js","sourceRoot":"","sources":["../../src/utils/commands.test.ts"],"names":[],"mappings":";;AAAA,kCAA0C;AAC1C,2DAA8C;AAC9C,yCAAuD;AACvD,qCAAiC;AAEjC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5B,GAAG,IAAI,CAAC,aAAa,CAA6B,WAAW,CAAC;IAC9D,cAAc,EAAE,IAAI,CAAC,EAAE,EAAE;CAC1B,CAAC,CAAC,CAAA;AAEH,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,EAAE,CAAC,CAAC;IACrC,SAAS,EAAE,IAAI,CAAC,EAAE,EAAE;CACrB,CAAC,CAAC,CAAA;AAEH,MAAM,aAAa,GAAG,8BAAsB,CAAA;AAC5C,MAAM,kBAAkB,GAAG,mBAA2B,CAAA;AAEtD,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,IAAI,QAA0B,CAAA;IAE9B,UAAU,CAAC,GAAG,EAAE;QACd,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,eAAM,EAAE,MAAM,CAAC,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;QACzE,kBAAkB,CAAC,eAAe,CAAC,EAAE,CAAC,CAAA;QACtC,aAAa,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAA;IACrD,CAAC,CAAC,CAAA;IAE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CAAC,CAAA;IAEF,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAChD,kBAAkB,CAAC,eAAe,CAAC,WAAW,CAAC,CAAA;QAC/C,aAAa,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,CAAC,CAAA;QAErE,MAAM,CAAC,IAAA,qCAA0B,GAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;IAC7D,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":"3.100.4","commands":{"build":{"id":"build","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"no-verify":{"name":"no-verify","type":"boolean","description":"Skips verification of faststore dependencies version string to prevent usage of packages outside npm registry.","allowNo":false}},"args":[{"name":"account","description":"The account for which the Discovery is running. Currently noop."},{"name":"path","description":"The path where the FastStore being built is. Defaults to cwd."}]},"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":[{"name":"path","description":"The path where the FastStore being synched with the CMS is. Defaults to cwd."}]},"create":{"id":"create","description":"Creates a discovery folder based on the starter.store template.","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"examples":["$ yarn faststore create discovery"],"flags":{},"args":[{"name":"path","description":"The path where the Discovery folder will be created. Defaults to ./discovery."}]},"dev":{"id":"dev","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"watch-plugins":{"name":"watch-plugins","type":"boolean","description":"Enable watching for plugin changes","allowNo":false}},"args":[{"name":"account","description":"The account for which the Discovery is running. Currently noop."},{"name":"path","description":"The path where the FastStore being run is. Defaults to cwd."},{"name":"port","description":"The port where FastStore should run. Defaults to 3000."}]},"generate-graphql":{"id":"generate-graphql","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"core":{"name":"core","type":"boolean","char":"c","hidden":true,"allowNo":false}},"args":[{"name":"path","description":"The path where the FastStore GraphQL customization is. Defaults to cwd."}]},"start":{"id":"start","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"account","description":"The account for which the Discovery is running. Currently noop."},{"name":"path","description":"The path where the FastStore being run is. Defaults to cwd."},{"name":"port","description":"The port where FastStore should run. Defaults to 3000."}]},"test":{"id":"test","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"The path where the FastStore being tested is. Defaults to cwd."}]}}}
1
+ {"version":"3.100.5","commands":{"build":{"id":"build","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"no-verify":{"name":"no-verify","type":"boolean","description":"Skips verification of faststore dependencies version string to prevent usage of packages outside npm registry.","allowNo":false}},"args":[{"name":"account","description":"The account for which the Discovery is running. Currently noop."},{"name":"path","description":"The path where the FastStore being built is. Defaults to cwd."}]},"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":[{"name":"path","description":"The path where the FastStore being synched with the CMS is. Defaults to cwd."}]},"create":{"id":"create","description":"Creates a discovery folder based on the starter.store template.","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"examples":["$ yarn faststore create discovery"],"flags":{},"args":[{"name":"path","description":"The path where the Discovery folder will be created. Defaults to ./discovery."}]},"dev":{"id":"dev","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"watch-plugins":{"name":"watch-plugins","type":"boolean","description":"Enable watching for plugin changes","allowNo":false}},"args":[{"name":"account","description":"The account for which the Discovery is running. Currently noop."},{"name":"path","description":"The path where the FastStore being run is. Defaults to cwd."},{"name":"port","description":"The port where FastStore should run. Defaults to 3000."}]},"generate-graphql":{"id":"generate-graphql","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"core":{"name":"core","type":"boolean","char":"c","hidden":true,"allowNo":false}},"args":[{"name":"path","description":"The path where the FastStore GraphQL customization is. Defaults to cwd."}]},"start":{"id":"start","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"account","description":"The account for which the Discovery is running. Currently noop."},{"name":"path","description":"The path where the FastStore being run is. Defaults to cwd."},{"name":"port","description":"The port where FastStore should run. Defaults to 3000."}]},"test":{"id":"test","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"The path where the FastStore being tested is. Defaults to cwd."}]}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/cli",
3
- "version": "3.100.4",
3
+ "version": "3.100.5",
4
4
  "description": "FastStore CLI",
5
5
  "author": "Emerson Laurentino @emersonlaurentino",
6
6
  "bin": {
@@ -77,5 +77,5 @@
77
77
  "oclif"
78
78
  ],
79
79
  "types": "dist/index.d.ts",
80
- "gitHead": "b30af2d573626311c245c445860a45cb26478798"
80
+ "gitHead": "5e3a7b268c74d273cda8f82ef8797f202e9a553c"
81
81
  }