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.
@@ -5,7 +5,8 @@
5
5
  "Bash(git add:*)",
6
6
  "Bash(git commit -m ':*)",
7
7
  "Bash(git push:*)",
8
- "Bash(gh pr:*)"
8
+ "Bash(gh pr:*)",
9
+ "Bash(node:*)"
9
10
  ]
10
11
  }
11
12
  }
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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plum-e2e",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/silverlunah/plum.git"