Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions e2e-tests/support/plugin-export-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ export async function topLevelEntriesAfterNpmPackStaging(
}
const extractInto = path.join(work, 'extracted');
fs.mkdirSync(extractInto, { recursive: true });
await runCommand(
`tar -xzf "${path.join(packDest, tgzs[0])}" -C "${extractInto}" --strip-components=1`,
{ cwd: distDynamicDir },
);
await tar.x({
file: path.join(packDest, tgzs[0]),
cwd: extractInto,
strip: 1,
});
return fs.readdirSync(extractInto).sort();
} finally {
await fs.remove(work).catch(() => undefined);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"prettier:check": "prettier --ignore-unknown --check .",
"prettier:fix": "prettier --ignore-unknown --write .",
"test": "backstage-cli package test --passWithNoTests --coverage",
"test:e2e": "jest --config e2e-tests/jest.config.js",
"test:e2e": "YARN_ENABLE_HARDENED_MODE=0 jest --config e2e-tests/jest.config.js",
"clean": "backstage-cli package clean",
"generate-types": "node scripts/generate-backstage-types.js"
},
Expand Down Expand Up @@ -81,6 +81,7 @@
"semver": "^7.5.4",
"style-loader": "^3.3.1",
"swc-loader": "^0.2.3",
"tar": "^7.5.7",
"typescript": "5.4.5",
"typescript-json-schema": "^0.64.0",
"webpack": "~5.105.0",
Expand Down Expand Up @@ -121,7 +122,6 @@
"mock-fs": "5.2.0",
"nodemon": "3.1.3",
"prettier": "3.3.3",
"tar": "^7.5.7",
"ts-jest": "^29.3.4",
"ts-node": "10.9.2",
"type-fest": "4.20.1"
Expand Down
179 changes: 0 additions & 179 deletions src/commands/export-dynamic-plugin/backend-utils.ts

This file was deleted.

Loading
Loading