plum-e2e 1.0.8 → 1.0.10

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.
Files changed (2) hide show
  1. package/bin/plum.js +6 -2
  2. package/package.json +1 -1
package/bin/plum.js CHANGED
@@ -113,11 +113,15 @@ 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, '/');
119
123
  const userReportsAbs = path.resolve(process.cwd(), 'reports').replace(/\\/g, '/');
120
- const plumConfigAbs = path.join(plumRoot, 'backend', 'config').replace(/\\/g, '/');
124
+ const userConfigAbs = userConfigPath.replace(/\\/g, '/');
121
125
 
122
126
  // Generate docker-compose.override.yml
123
127
  const overrideYAML = [
@@ -125,7 +129,7 @@ switch (command) {
125
129
  ' backend:',
126
130
  ' volumes:',
127
131
  ` - "${userReportsAbs}:/app/reports"`,
128
- ` - "${plumConfigAbs}:/app/config"`,
132
+ ` - "${userConfigAbs}:/app/config"`,
129
133
  ` - "${userTestsAbs}:/app/tests"`,
130
134
  ` - "${userModulesAbs}:/app/tests/node_modules"`
131
135
  ].join('\n');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plum-e2e",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/silverlunah/plum.git"