ae9a8b0ceb
* Add fixture * Update fixture name * Update fixture to work with npm & pnpm * Update setup/teardown and README * Add support for monorepo to e2e suite utilities * Use direct dependencies info in esbuild plugin * Renaming * Add support for yarn * Add fixture for npm * Remove console.log call * Edge cases * Remove unused options * Fix error unknown yarn in CI * Fix logger debug call's error field * Add changeset * Fix missing span end
16 lines
460 B
TypeScript
16 lines
460 B
TypeScript
import { PackageManager } from "../src/utilities/getUserPackageManager.js";
|
|
import { JavascriptProject } from "../src/utilities/javascriptProject.js";
|
|
|
|
export class E2EJavascriptProject extends JavascriptProject {
|
|
constructor(
|
|
projectPath: string,
|
|
private overridenPackageManager: PackageManager
|
|
) {
|
|
super(projectPath);
|
|
}
|
|
|
|
async getPackageManager(): Promise<PackageManager> {
|
|
return Promise.resolve(this.overridenPackageManager);
|
|
}
|
|
}
|