upgrade to tar v7

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2026-01-22 12:18:07 +01:00
parent 181f2fefa7
commit 4fc7bf037a
15 changed files with 45 additions and 47 deletions
+1 -1
View File
@@ -133,7 +133,7 @@
"style-loader": "^3.3.1",
"sucrase": "^3.20.2",
"swc-loader": "^0.2.3",
"tar": "^6.1.12",
"tar": "^7.5.6",
"ts-checker-rspack-plugin": "^1.1.5",
"ts-morph": "^24.0.0",
"undici": "^7.2.3",
@@ -17,7 +17,7 @@
import os from 'os';
import fs from 'fs-extra';
import { resolve as resolvePath } from 'path';
import tar, { CreateOptions } from 'tar';
import * as tar from 'tar';
import { createDistWorkspace } from './packager';
import { getEnvironmentParallelism } from '../../../lib/parallel';
import { buildPackage, Output } from './builder';
@@ -78,7 +78,7 @@ export async function buildBackend(options: BuildBackendOptions) {
portable: true,
noMtime: true,
gzip: true,
} as CreateOptions & { noMtime: boolean },
},
[''],
);
} finally {
@@ -22,7 +22,7 @@ import {
relative as relativePath,
} from 'path';
import { tmpdir } from 'os';
import tar, { CreateOptions, FileOptions } from 'tar';
import * as tar from 'tar';
import partition from 'lodash/partition';
import { paths } from '../../../../lib/paths';
import { run } from '@backstage/cli-common';
@@ -268,7 +268,7 @@ export async function createDistWorkspace(
portable: true,
noMtime: true,
gzip: options.skeleton.endsWith('.gz'),
} as CreateOptions & FileOptions & { noMtime: boolean },
},
skeletonFiles,
);
}