Skip to content

Commit a851c53

Browse files
committed
add giget
1 parent bdba1a6 commit a851c53

File tree

3 files changed

+68
-7
lines changed

3 files changed

+68
-7
lines changed

typescript-sdk/packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"main": "./dist/index.js",
1010
"module": "./dist/index.mjs",
1111
"types": "./dist/index.d.ts",
12-
"bin": "./dist/index.js",
12+
"bin": "./dist/index.mjs",
1313
"sideEffects": false,
1414
"files": [
1515
"dist/**"
@@ -27,7 +27,7 @@
2727
"@types/inquirer": "^9.0.8",
2828
"commander": "^12.1.0",
2929
"inquirer": "^12.6.3",
30-
"giget": "^1.3.0"
30+
"giget": "2.0.0"
3131
},
3232
"devDependencies": {
3333
"@types/jest": "^29.5.14",

typescript-sdk/packages/cli/src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ import inquirer from "inquirer";
44
import { spawn } from "child_process";
55
import fs from "fs";
66
import path from "path";
7-
8-
// Import giget with proper typing
9-
const { downloadTemplate } = require("giget") as {
10-
downloadTemplate: (template: string, options: { dir: string; install: boolean }) => Promise<void>;
11-
};
7+
import { downloadTemplate } from "giget";
128

139
const program = new Command();
1410

typescript-sdk/pnpm-lock.yaml

Lines changed: 65 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)