@youcan/cli 2.1.4 → 2.3.0

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.
@@ -1,5 +1,5 @@
1
- import { Cli } from '@youcan/cli-kit';
2
- export default class Login extends Cli.Command {
3
- static description: string;
4
- run(): Promise<void>;
5
- }
1
+ import { Cli } from '@youcan/cli-kit';
2
+ export default class Login extends Cli.Command {
3
+ static description: string;
4
+ run(): Promise<void>;
5
+ }
@@ -1,11 +1,11 @@
1
1
  import { Cli, Session } from '@youcan/cli-kit';
2
2
 
3
- class Login extends Cli.Command {
4
- static description = 'Log in to a YouCan Dev Store';
5
- async run() {
6
- const session = await Session.authenticate(this);
7
- this.output.info(`Logged in as ${session.slug}`);
8
- }
3
+ class Login extends Cli.Command {
4
+ static description = 'Log in to a YouCan Dev Store';
5
+ async run() {
6
+ const session = await Session.authenticate(this);
7
+ this.output.info(`Logged in as ${session.slug}`);
8
+ }
9
9
  }
10
10
 
11
11
  export { Login as default };
@@ -1,5 +1,5 @@
1
- import { Cli } from '@youcan/cli-kit';
2
- export default class Login extends Cli.Command {
3
- static description: string;
4
- run(): Promise<void>;
5
- }
1
+ import { Cli } from '@youcan/cli-kit';
2
+ export default class Login extends Cli.Command {
3
+ static description: string;
4
+ run(): Promise<void>;
5
+ }
@@ -1,13 +1,13 @@
1
1
  import { Cli, Config } from '@youcan/cli-kit';
2
2
 
3
- class Login extends Cli.Command {
4
- static description = 'Log out from a YouCan Dev Store';
5
- async run() {
6
- Config
7
- .manager({ projectName: 'youcan-cli' })
8
- .delete('store_session');
9
- return this.output.info('Successfully logged out..');
10
- }
3
+ class Login extends Cli.Command {
4
+ static description = 'Log out from a YouCan Dev Store';
5
+ async run() {
6
+ Config
7
+ .manager({ projectName: 'youcan-cli' })
8
+ .delete('store_session');
9
+ return this.output.info('Successfully logged out..');
10
+ }
11
11
  }
12
12
 
13
13
  export { Login as default };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare function execCli(development: boolean): Promise<void>;
2
- export default execCli;
1
+ declare function execCli(development: boolean): Promise<void>;
2
+ export default execCli;
package/dist/index.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import fs from 'node:fs';
2
2
  import { Cli } from '@youcan/cli-kit';
3
3
 
4
- process.on('uncaughtException', (err) => {
5
- fs.writeSync(process.stderr.fd, `${err.stack}\n`);
6
- process.exit(1);
7
- });
8
- const signals = ['SIGINT', 'SIGTERM', 'SIGQUIT'];
9
- signals.forEach((signal) => {
10
- process.on(signal, () => {
11
- process.exit(1);
12
- });
13
- });
14
- async function execCli(development) {
15
- await Cli.exec({
16
- moduleUrl: import.meta.url,
17
- development,
18
- });
4
+ process.on('uncaughtException', (err) => {
5
+ fs.writeSync(process.stderr.fd, `${err.stack}\n`);
6
+ process.exit(1);
7
+ });
8
+ const signals = ['SIGINT', 'SIGTERM', 'SIGQUIT'];
9
+ signals.forEach((signal) => {
10
+ process.on(signal, () => {
11
+ process.exit(1);
12
+ });
13
+ });
14
+ async function execCli(development) {
15
+ await Cli.exec({
16
+ moduleUrl: import.meta.url,
17
+ development,
18
+ });
19
19
  }
20
20
 
21
21
  export { execCli as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@youcan/cli",
3
3
  "type": "module",
4
- "version": "2.1.4",
4
+ "version": "2.3.0",
5
5
  "description": "A CLI for creating YouCan Shop apps",
6
6
  "author": "YouCan <contact@youcan.shop> (https://youcan.shop)",
7
7
  "license": "MIT",
@@ -36,9 +36,9 @@
36
36
  "@oclif/plugin-commands": "^2.2.26",
37
37
  "@oclif/plugin-help": "^5.2.19",
38
38
  "@oclif/plugin-plugins": "^3.8.2",
39
- "@youcan/app": "2.1.4",
40
- "@youcan/cli-kit": "2.1.4",
41
- "@youcan/theme": "2.1.4"
39
+ "@youcan/app": "2.3.0",
40
+ "@youcan/theme": "2.3.0",
41
+ "@youcan/cli-kit": "2.3.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@oclif/plugin-legacy": "^1.3.0",