test: fix importing @shockpkg/archive-files in jest

This commit is contained in:
Amin Yahyaabadi 2024-02-17 00:31:11 -08:00
parent c0f0580956
commit 1c7c39221b
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
9 changed files with 57 additions and 57 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -76,7 +76,7 @@
"@actions/io": "^1.1.3",
"@actions/tool-cache": "^2.0.1",
"@babel/cli": "^7.23.9",
"@shockpkg/archive-files": "https://github.com/aminya/archive-files#f12d4f989d6d5698a9fc3f6fd805d0923b2c2a9e",
"@shockpkg/archive-files": "https://github.com/aminya/archive-files#54ec59fad46aca736ac6feb6c7bb526528141b9d",
"@swc/jest": "^0.2.36",
"@types/cross-spawn": "^6.0.6",
"@types/eslint": "^8.56.2",

View File

@ -24,8 +24,8 @@ importers:
specifier: ^7.23.9
version: 7.23.9(@babel/core@7.23.9)
'@shockpkg/archive-files':
specifier: https://github.com/aminya/archive-files#f12d4f989d6d5698a9fc3f6fd805d0923b2c2a9e
version: github.com/aminya/archive-files/f12d4f989d6d5698a9fc3f6fd805d0923b2c2a9e
specifier: https://github.com/aminya/archive-files#54ec59fad46aca736ac6feb6c7bb526528141b9d
version: github.com/aminya/archive-files/54ec59fad46aca736ac6feb6c7bb526528141b9d
'@swc/jest':
specifier: ^0.2.36
version: 0.2.36(@swc/core@1.4.1)
@ -10865,8 +10865,8 @@ packages:
readable-stream: 3.6.2
dev: true
github.com/aminya/archive-files/f12d4f989d6d5698a9fc3f6fd805d0923b2c2a9e:
resolution: {tarball: https://codeload.github.com/aminya/archive-files/tar.gz/f12d4f989d6d5698a9fc3f6fd805d0923b2c2a9e}
github.com/aminya/archive-files/54ec59fad46aca736ac6feb6c7bb526528141b9d:
resolution: {tarball: https://codeload.github.com/aminya/archive-files/tar.gz/54ec59fad46aca736ac6feb6c7bb526528141b9d}
name: '@shockpkg/archive-files'
version: 3.2.2
engines: {node: '>=18.12.0'}

View File

@ -1,4 +1,4 @@
import { ArchiveHdi } from "@shockpkg/archive-files/src/archive/hdi"
import { ArchiveHdi } from "@shockpkg/archive-files/esm/archive/hdi.mjs"
import { join } from "path"
export async function setupDmg(path: string, destDir: string) {