Skip to content

Commit 44539a2

Browse files
committed
chore: update deps
1 parent c43d0f7 commit 44539a2

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@
5252
"typecheck": "tsc --noEmit"
5353
},
5454
"devDependencies": {
55-
"@antfu/eslint-config": "^3.5.1",
56-
"@types/node": "^18.19.50",
55+
"@antfu/eslint-config": "^3.8.0",
56+
"@types/node": "^18.19.59",
5757
"bumpp": "^8.2.1",
58-
"eslint": "^9.10.0",
58+
"eslint": "^9.13.0",
5959
"lint-staged": "^13.3.0",
60-
"picocolors": "^1.1.0",
60+
"picocolors": "^1.1.1",
6161
"prettier": "^2.8.8",
6262
"rimraf": "^3.0.2",
6363
"tar": "^7.4.3",

src/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export async function fetchAndExtractPackage(options: { name: string, dist?: str
2525
await requestAuth(path.join(url, '..'))
2626

2727
// Create temporary directory
28+
2829
await fs.mkdir(tempDir, { recursive: true })
2930

3031
// Get the package tarball URL
@@ -33,9 +34,14 @@ export async function fetchAndExtractPackage(options: { name: string, dist?: str
3334
downloadWitchPack(name, tempDir, retry),
3435
])
3536

37+
// eslint-disable-next-line no-console
38+
console.log('download tgz success!')
3639
// Extract the tarball
3740
await tar.x({ file: tgzPath, cwd: tempDir })
3841

42+
// eslint-disable-next-line no-console
43+
console.log('extract success!')
44+
3945
// Read package.json to get the main field
4046
const packageJsonPath = path.join(tempDir, 'package', 'package.json')
4147
const packageJson = JSON.parse(await fs.readFile(packageJsonPath, 'utf-8'))

0 commit comments

Comments
 (0)