plum-e2e 1.0.7 → 1.0.9
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/.claude/settings.local.json +2 -1
- package/bin/plum.js +8 -0
- package/package.json +1 -1
package/bin/plum.js
CHANGED
|
@@ -113,15 +113,23 @@ switch (command) {
|
|
|
113
113
|
// Copy .env file from root to backend
|
|
114
114
|
copyEnvFile();
|
|
115
115
|
|
|
116
|
+
// Copy config from package root to user's project dir so Docker can mount it
|
|
117
|
+
const userConfigPath = path.join(process.cwd(), '.plum', 'config');
|
|
118
|
+
fse.copySync(path.join(plumRoot, 'backend', 'config'), userConfigPath);
|
|
119
|
+
|
|
116
120
|
// Convert Windows paths to safe format
|
|
117
121
|
const userTestsAbs = path.resolve(process.cwd(), 'tests').replace(/\\/g, '/');
|
|
118
122
|
const userModulesAbs = path.resolve(process.cwd(), 'node_modules').replace(/\\/g, '/');
|
|
123
|
+
const userReportsAbs = path.resolve(process.cwd(), 'reports').replace(/\\/g, '/');
|
|
124
|
+
const userConfigAbs = userConfigPath.replace(/\\/g, '/');
|
|
119
125
|
|
|
120
126
|
// Generate docker-compose.override.yml
|
|
121
127
|
const overrideYAML = [
|
|
122
128
|
'services:',
|
|
123
129
|
' backend:',
|
|
124
130
|
' volumes:',
|
|
131
|
+
` - "${userReportsAbs}:/app/reports"`,
|
|
132
|
+
` - "${userConfigAbs}:/app/config"`,
|
|
125
133
|
` - "${userTestsAbs}:/app/tests"`,
|
|
126
134
|
` - "${userModulesAbs}:/app/tests/node_modules"`
|
|
127
135
|
].join('\n');
|