giget 1.2.1 → 1.2.2
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 +0 -6
- package/dist/cli.cjs +14 -14
- package/dist/cli.mjs +14 -14
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[![npm version][npm-version-src]][npm-version-href]
|
|
4
4
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
-
[![bundle][bundle-src]][bundle-href]
|
|
6
5
|
[![Codecov][codecov-src]][codecov-href]
|
|
7
6
|
|
|
8
7
|
> Download templates and git repositories with pleasure!
|
|
@@ -144,9 +143,6 @@ const { source, dir } = await downloadTemplate("github:unjs/template");
|
|
|
144
143
|
- `options`: (object) Options are usually inferred from the input string. You can customize them.
|
|
145
144
|
- `dir`: (string) Destination directory to clone to. If not provided, `user-name` will be used relative to the current directory.
|
|
146
145
|
- `provider`: (string) Either `github`, `gitlab`, `bitbucket` or `sourcehut`. The default is `github`.
|
|
147
|
-
- `repo`: (string) Name of the repository in the format of `{username}/{reponame}`.
|
|
148
|
-
- `ref`: (string) Git ref (branch or commit or tag). The default value is `main`.
|
|
149
|
-
- `subdir`: (string) Directory of the repo to clone from. The default value is none.
|
|
150
146
|
- `force`: (boolean) Extract to the existing dir even if already exists.
|
|
151
147
|
- `forceClean`: (boolean) ⚠️ Clean up any existing directory or file before cloning.
|
|
152
148
|
- `offline`: (boolean) Do not attempt to download and use the cached version.
|
|
@@ -238,5 +234,3 @@ Published under [MIT License](./LICENSE).
|
|
|
238
234
|
[npm-downloads-href]: https://npmjs.com/package/giget
|
|
239
235
|
[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/giget/main?style=flat&colorA=18181B&colorB=F0DB4F
|
|
240
236
|
[codecov-href]: https://codecov.io/gh/unjs/giget
|
|
241
|
-
[bundle-src]: https://img.shields.io/bundlephobia/minzip/giget?style=flat&colorA=18181B&colorB=F0DB4F
|
|
242
|
-
[bundle-href]: https://bundlephobia.com/result?p=giget
|
package/dist/cli.cjs
CHANGED
|
@@ -18,7 +18,7 @@ require('node:util');
|
|
|
18
18
|
require('node-fetch-native/proxy');
|
|
19
19
|
|
|
20
20
|
const name = "giget";
|
|
21
|
-
const version = "1.2.
|
|
21
|
+
const version = "1.2.2";
|
|
22
22
|
const description = "Download templates and git repositories with pleasure!";
|
|
23
23
|
const repository = "unjs/giget";
|
|
24
24
|
const license = "MIT";
|
|
@@ -57,29 +57,29 @@ const scripts = {
|
|
|
57
57
|
test: "pnpm lint && vitest run --coverage"
|
|
58
58
|
};
|
|
59
59
|
const dependencies = {
|
|
60
|
-
citty: "^0.1.
|
|
60
|
+
citty: "^0.1.6",
|
|
61
61
|
consola: "^3.2.3",
|
|
62
|
-
defu: "^6.1.
|
|
63
|
-
"node-fetch-native": "^1.6.
|
|
64
|
-
nypm: "^0.3.
|
|
62
|
+
defu: "^6.1.4",
|
|
63
|
+
"node-fetch-native": "^1.6.3",
|
|
64
|
+
nypm: "^0.3.8",
|
|
65
65
|
ohash: "^1.1.3",
|
|
66
|
-
pathe: "^1.1.
|
|
66
|
+
pathe: "^1.1.2",
|
|
67
67
|
tar: "^6.2.0"
|
|
68
68
|
};
|
|
69
69
|
const devDependencies = {
|
|
70
|
-
"@types/node": "^20.
|
|
71
|
-
"@types/tar": "^6.1.
|
|
72
|
-
"@vitest/coverage-v8": "^1.
|
|
70
|
+
"@types/node": "^20.11.30",
|
|
71
|
+
"@types/tar": "^6.1.11",
|
|
72
|
+
"@vitest/coverage-v8": "^1.4.0",
|
|
73
73
|
changelogen: "^0.5.5",
|
|
74
|
-
eslint: "^8.
|
|
74
|
+
eslint: "^8.57.0",
|
|
75
75
|
"eslint-config-unjs": "^0.2.1",
|
|
76
76
|
jiti: "^1.21.0",
|
|
77
|
-
prettier: "^3.
|
|
78
|
-
typescript: "^5.
|
|
77
|
+
prettier: "^3.2.5",
|
|
78
|
+
typescript: "^5.4.3",
|
|
79
79
|
unbuild: "^2.0.0",
|
|
80
|
-
vitest: "^1.
|
|
80
|
+
vitest: "^1.4.0"
|
|
81
81
|
};
|
|
82
|
-
const packageManager = "pnpm@8.
|
|
82
|
+
const packageManager = "pnpm@8.15.5";
|
|
83
83
|
const pkg = {
|
|
84
84
|
name: name,
|
|
85
85
|
version: version,
|
package/dist/cli.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import 'node:util';
|
|
|
16
16
|
import 'node-fetch-native/proxy';
|
|
17
17
|
|
|
18
18
|
const name = "giget";
|
|
19
|
-
const version = "1.2.
|
|
19
|
+
const version = "1.2.2";
|
|
20
20
|
const description = "Download templates and git repositories with pleasure!";
|
|
21
21
|
const repository = "unjs/giget";
|
|
22
22
|
const license = "MIT";
|
|
@@ -55,29 +55,29 @@ const scripts = {
|
|
|
55
55
|
test: "pnpm lint && vitest run --coverage"
|
|
56
56
|
};
|
|
57
57
|
const dependencies = {
|
|
58
|
-
citty: "^0.1.
|
|
58
|
+
citty: "^0.1.6",
|
|
59
59
|
consola: "^3.2.3",
|
|
60
|
-
defu: "^6.1.
|
|
61
|
-
"node-fetch-native": "^1.6.
|
|
62
|
-
nypm: "^0.3.
|
|
60
|
+
defu: "^6.1.4",
|
|
61
|
+
"node-fetch-native": "^1.6.3",
|
|
62
|
+
nypm: "^0.3.8",
|
|
63
63
|
ohash: "^1.1.3",
|
|
64
|
-
pathe: "^1.1.
|
|
64
|
+
pathe: "^1.1.2",
|
|
65
65
|
tar: "^6.2.0"
|
|
66
66
|
};
|
|
67
67
|
const devDependencies = {
|
|
68
|
-
"@types/node": "^20.
|
|
69
|
-
"@types/tar": "^6.1.
|
|
70
|
-
"@vitest/coverage-v8": "^1.
|
|
68
|
+
"@types/node": "^20.11.30",
|
|
69
|
+
"@types/tar": "^6.1.11",
|
|
70
|
+
"@vitest/coverage-v8": "^1.4.0",
|
|
71
71
|
changelogen: "^0.5.5",
|
|
72
|
-
eslint: "^8.
|
|
72
|
+
eslint: "^8.57.0",
|
|
73
73
|
"eslint-config-unjs": "^0.2.1",
|
|
74
74
|
jiti: "^1.21.0",
|
|
75
|
-
prettier: "^3.
|
|
76
|
-
typescript: "^5.
|
|
75
|
+
prettier: "^3.2.5",
|
|
76
|
+
typescript: "^5.4.3",
|
|
77
77
|
unbuild: "^2.0.0",
|
|
78
|
-
vitest: "^1.
|
|
78
|
+
vitest: "^1.4.0"
|
|
79
79
|
};
|
|
80
|
-
const packageManager = "pnpm@8.
|
|
80
|
+
const packageManager = "pnpm@8.15.5";
|
|
81
81
|
const pkg = {
|
|
82
82
|
name: name,
|
|
83
83
|
version: version,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "giget",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Download templates and git repositories with pleasure!",
|
|
5
5
|
"repository": "unjs/giget",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,27 +39,27 @@
|
|
|
39
39
|
"test": "pnpm lint && vitest run --coverage"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"citty": "^0.1.
|
|
42
|
+
"citty": "^0.1.6",
|
|
43
43
|
"consola": "^3.2.3",
|
|
44
|
-
"defu": "^6.1.
|
|
45
|
-
"node-fetch-native": "^1.6.
|
|
46
|
-
"nypm": "^0.3.
|
|
44
|
+
"defu": "^6.1.4",
|
|
45
|
+
"node-fetch-native": "^1.6.3",
|
|
46
|
+
"nypm": "^0.3.8",
|
|
47
47
|
"ohash": "^1.1.3",
|
|
48
|
-
"pathe": "^1.1.
|
|
48
|
+
"pathe": "^1.1.2",
|
|
49
49
|
"tar": "^6.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@types/node": "^20.
|
|
53
|
-
"@types/tar": "^6.1.
|
|
54
|
-
"@vitest/coverage-v8": "^1.
|
|
52
|
+
"@types/node": "^20.11.30",
|
|
53
|
+
"@types/tar": "^6.1.11",
|
|
54
|
+
"@vitest/coverage-v8": "^1.4.0",
|
|
55
55
|
"changelogen": "^0.5.5",
|
|
56
|
-
"eslint": "^8.
|
|
56
|
+
"eslint": "^8.57.0",
|
|
57
57
|
"eslint-config-unjs": "^0.2.1",
|
|
58
58
|
"jiti": "^1.21.0",
|
|
59
|
-
"prettier": "^3.
|
|
60
|
-
"typescript": "^5.
|
|
59
|
+
"prettier": "^3.2.5",
|
|
60
|
+
"typescript": "^5.4.3",
|
|
61
61
|
"unbuild": "^2.0.0",
|
|
62
|
-
"vitest": "^1.
|
|
62
|
+
"vitest": "^1.4.0"
|
|
63
63
|
},
|
|
64
|
-
"packageManager": "pnpm@8.
|
|
64
|
+
"packageManager": "pnpm@8.15.5"
|
|
65
65
|
}
|