@youcan/cli-kit 2.4.4 → 2.6.9

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/dist/node/git.js CHANGED
@@ -1,3 +1,4 @@
1
+ import process from 'node:process';
1
2
  import git from 'simple-git';
2
3
  import { exec } from './system.js';
3
4
 
@@ -30,10 +31,8 @@ async function clone(cloneOptions) {
30
31
  if (shallow) {
31
32
  options['--depth'] = 1;
32
33
  }
33
- const simpleGitOptions = {
34
- config: ['core.askpass=true'],
35
- };
36
- await git(simpleGitOptions)
34
+ await git({ config: [] })
35
+ .env({ ...process.env, GIT_TERMINAL_PROMPT: '0' })
37
36
  .clone(repository, destination, options);
38
37
  if (latestTag) {
39
38
  const localRepo = git(destination);
@@ -3,7 +3,7 @@ import { listen } from './callback.js';
3
3
  import './cli.js';
4
4
  import { manager } from './config.js';
5
5
  import { randomHex, sha256, base64URLEncode } from './crypto.js';
6
- import { apiHostname, oauthClientId, sellerAreaHostname } from './env.js';
6
+ import { apiHostname, sellerAreaHostname, oauthClientId } from './env.js';
7
7
  import './filesystem.js';
8
8
  import 'formdata-node';
9
9
  import 'formdata-node/file-from-path';
@@ -8,7 +8,7 @@ import 'change-case';
8
8
  import '../node/cli.js';
9
9
  import 'conf';
10
10
  import 'env-paths';
11
- import { isExecutable, tapIntoTmp, mkdir, decompressGzip, extractTar, move, chmod } from '../node/filesystem.js';
11
+ import { isExecutable, mkdir, chmod, tapIntoTmp, decompressGzip, extractTar, move } from '../node/filesystem.js';
12
12
  import 'formdata-node';
13
13
  import 'formdata-node/file-from-path';
14
14
  import 'simple-git';
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useEffect } from 'react';
2
- import { useInput, Static, Box, Text, render } from 'ink';
2
+ import { render, useInput, Static, Box, Text } from 'ink';
3
3
  import { HotKeys } from './HotKeys.js';
4
4
  import { VerticalDivider } from './utils/symbols.js';
5
5
  import { map } from 'rxjs/operators';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { RightChevron, VerticalDivider } from './utils/symbols.js';
3
- import { Box, render, useInput, Text } from 'ink';
3
+ import { render, Box, useInput, Text } from 'ink';
4
4
 
5
5
  const HotKey = ({ keyboardKey, description, handler }) => {
6
6
  useInput((input) => {
package/package.json CHANGED
@@ -1,10 +1,18 @@
1
1
  {
2
2
  "name": "@youcan/cli-kit",
3
3
  "type": "module",
4
- "version": "2.4.4",
4
+ "version": "2.6.9",
5
5
  "description": "Utilities for the YouCan CLI",
6
6
  "author": "YouCan <contact@youcan.shop> (https://youcan.shop)",
7
7
  "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/youcan-shop/cli"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public",
14
+ "provenance": true
15
+ },
8
16
  "keywords": [
9
17
  "youcan",
10
18
  "youcan-cli",
@@ -19,42 +27,42 @@
19
27
  "dist"
20
28
  ],
21
29
  "dependencies": {
22
- "@oclif/core": "^2.15.0",
30
+ "@oclif/core": "^2.16.0",
23
31
  "archiver": "^5.3.2",
24
32
  "change-case": "^4.1.2",
25
- "chokidar": "^4.0.1",
33
+ "chokidar": "^4.0.3",
26
34
  "conf": "^11.0.2",
27
- "dayjs": "^1.11.10",
35
+ "dayjs": "^1.11.20",
28
36
  "env-paths": "^3.0.0",
29
37
  "execa": "^6.1.0",
30
- "find-process": "^1.4.7",
38
+ "find-process": "^1.4.11",
31
39
  "formdata-node": "^6.0.3",
32
- "fs-extra": "^11.1.1",
33
- "get-port": "^7.1.0",
40
+ "fs-extra": "^11.3.4",
41
+ "get-port": "^7.2.0",
34
42
  "glob": "^11.0.0",
35
- "ink": "^5.1.0",
36
- "kill-port-process": "^3.2.0",
43
+ "ink": "^5.2.1",
44
+ "kill-port-process": "^3.2.1",
37
45
  "kleur": "^4.1.5",
38
46
  "node-fetch": "^3.3.2",
39
47
  "open": "^9.1.0",
40
48
  "prompts": "^2.4.2",
41
49
  "ramda": "^0.28.0",
42
50
  "react": "^18.3.1",
43
- "rxjs": "^7.8.1",
44
- "simple-git": "^3.20.0",
45
- "tar": "^7.4.3",
51
+ "rxjs": "^7.8.2",
52
+ "simple-git": "^3.36.0",
53
+ "tar": "^7.5.13",
46
54
  "tcp-port-used": "^1.0.2",
47
- "tempy": "^3.1.0",
55
+ "tempy": "^3.2.0",
48
56
  "worker": "^0.4.0"
49
57
  },
50
58
  "devDependencies": {
51
- "@types/archiver": "^5.3.3",
52
- "@types/fs-extra": "^11.0.2",
53
- "@types/node": "^18.18.0",
54
- "@types/prompts": "^2.4.5",
59
+ "@types/archiver": "^5.3.4",
60
+ "@types/fs-extra": "^11.0.4",
61
+ "@types/node": "^18.19.130",
62
+ "@types/prompts": "^2.4.9",
55
63
  "@types/ramda": "^0.28.25",
56
- "@types/react": "^18.3.12",
57
- "@types/tcp-port-used": "^1.0.2",
64
+ "@types/react": "^18.3.28",
65
+ "@types/tcp-port-used": "^1.0.4",
58
66
  "shx": "^0.3.4"
59
67
  },
60
68
  "scripts": {