plum-e2e 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/plum.js +1 -7
- package/docker-compose.yml +0 -1
- package/package.json +1 -1
package/bin/plum.js
CHANGED
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
|
|
19
19
|
import { execSync } from 'child_process';
|
|
20
20
|
import fs from 'fs';
|
|
21
|
-
import os from 'os';
|
|
22
21
|
import path from 'path';
|
|
23
22
|
import { fileURLToPath } from 'url';
|
|
24
23
|
import fse from 'fs-extra';
|
|
@@ -306,22 +305,17 @@ switch (command) {
|
|
|
306
305
|
}
|
|
307
306
|
}
|
|
308
307
|
|
|
309
|
-
// Copy config to ~/.plum/config so Docker can mount it without polluting the project
|
|
310
|
-
const userConfigPath = path.join(os.homedir(), '.plum', 'config');
|
|
311
|
-
fse.copySync(path.join(plumRoot, 'backend', 'config'), userConfigPath);
|
|
312
|
-
|
|
313
308
|
// Convert Windows paths to safe format
|
|
314
309
|
const userTestsAbs = path.resolve(process.cwd(), 'tests').replace(/\\/g, '/');
|
|
315
310
|
const userReportsAbs = path.resolve(process.cwd(), 'reports').replace(/\\/g, '/');
|
|
316
|
-
const userConfigAbs = userConfigPath.replace(/\\/g, '/');
|
|
317
311
|
|
|
318
312
|
// Generate docker-compose.override.yml
|
|
313
|
+
// Config is served from the plum installation's backend/config directly via docker-compose.yml
|
|
319
314
|
const overrideYAML = [
|
|
320
315
|
'services:',
|
|
321
316
|
' backend:',
|
|
322
317
|
' volumes:',
|
|
323
318
|
` - "${userReportsAbs}:/app/reports"`,
|
|
324
|
-
` - "${userConfigAbs}:/app/config"`,
|
|
325
319
|
` - "${userTestsAbs}:/app/tests"`
|
|
326
320
|
].join('\n');
|
|
327
321
|
|
package/docker-compose.yml
CHANGED