fix: fix shockpkg/archive-files usage for jest and windows

This commit is contained in:
Amin Yahyaabadi 2024-02-16 23:36:54 -08:00
parent 9a5a9cc5b5
commit c0f0580956
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
9 changed files with 67 additions and 67 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/io": "^1.1.3",
"@actions/tool-cache": "^2.0.1", "@actions/tool-cache": "^2.0.1",
"@babel/cli": "^7.23.9", "@babel/cli": "^7.23.9",
"@shockpkg/archive-files": "https://github.com/shockpkg/archive-files#3.2.2", "@shockpkg/archive-files": "https://github.com/aminya/archive-files#f12d4f989d6d5698a9fc3f6fd805d0923b2c2a9e",
"@swc/jest": "^0.2.36", "@swc/jest": "^0.2.36",
"@types/cross-spawn": "^6.0.6", "@types/cross-spawn": "^6.0.6",
"@types/eslint": "^8.56.2", "@types/eslint": "^8.56.2",

View File

@ -24,8 +24,8 @@ importers:
specifier: ^7.23.9 specifier: ^7.23.9
version: 7.23.9(@babel/core@7.23.9) version: 7.23.9(@babel/core@7.23.9)
'@shockpkg/archive-files': '@shockpkg/archive-files':
specifier: https://github.com/shockpkg/archive-files#3.2.2 specifier: https://github.com/aminya/archive-files#f12d4f989d6d5698a9fc3f6fd805d0923b2c2a9e
version: github.com/shockpkg/archive-files/da70511854c93c257210c4faf1aa04364ab0f7e1 version: github.com/aminya/archive-files/f12d4f989d6d5698a9fc3f6fd805d0923b2c2a9e
'@swc/jest': '@swc/jest':
specifier: ^0.2.36 specifier: ^0.2.36
version: 0.2.36(@swc/core@1.4.1) version: 0.2.36(@swc/core@1.4.1)
@ -10865,6 +10865,18 @@ packages:
readable-stream: 3.6.2 readable-stream: 3.6.2
dev: true dev: true
github.com/aminya/archive-files/f12d4f989d6d5698a9fc3f6fd805d0923b2c2a9e:
resolution: {tarball: https://codeload.github.com/aminya/archive-files/tar.gz/f12d4f989d6d5698a9fc3f6fd805d0923b2c2a9e}
name: '@shockpkg/archive-files'
version: 3.2.2
engines: {node: '>=18.12.0'}
dependencies:
'@shockpkg/hdi-mac': 3.1.1
it-tar: 6.0.1
unbzip2-stream: 1.4.3
yauzl: 2.10.0
dev: true
github.com/aminya/babel-plugin-remove-node-prefix/95fcbd92405b99a6eece48c493548996f12e6519(@babel/core@7.23.9): github.com/aminya/babel-plugin-remove-node-prefix/95fcbd92405b99a6eece48c493548996f12e6519(@babel/core@7.23.9):
resolution: {tarball: https://codeload.github.com/aminya/babel-plugin-remove-node-prefix/tar.gz/95fcbd92405b99a6eece48c493548996f12e6519} resolution: {tarball: https://codeload.github.com/aminya/babel-plugin-remove-node-prefix/tar.gz/95fcbd92405b99a6eece48c493548996f12e6519}
id: github.com/aminya/babel-plugin-remove-node-prefix/95fcbd92405b99a6eece48c493548996f12e6519 id: github.com/aminya/babel-plugin-remove-node-prefix/95fcbd92405b99a6eece48c493548996f12e6519
@ -10925,15 +10937,3 @@ packages:
is-node: 1.0.2 is-node: 1.0.2
numerous: 1.0.3 numerous: 1.0.3
dev: true dev: true
github.com/shockpkg/archive-files/da70511854c93c257210c4faf1aa04364ab0f7e1:
resolution: {tarball: https://codeload.github.com/shockpkg/archive-files/tar.gz/da70511854c93c257210c4faf1aa04364ab0f7e1}
name: '@shockpkg/archive-files'
version: 3.2.2
engines: {node: '>=18.12.0'}
dependencies:
'@shockpkg/hdi-mac': 3.1.1
it-tar: 6.0.1
unbzip2-stream: 1.4.3
yauzl: 2.10.0
dev: true

View File

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