sandboxbox 1.0.5 → 1.0.6
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/cli.js +9 -3
- package/package.json +2 -2
- package/test-cli.js +0 -0
package/cli.js
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
* npx sandboxbox shell <project> # Interactive shell
|
11
11
|
*/
|
12
12
|
|
13
|
-
//
|
14
|
-
console.log('🚀 SandboxBox starting...');
|
13
|
+
// Optional debug output
|
15
14
|
if (process.env.DEBUG) {
|
15
|
+
console.log('🔧 Debug: SandboxBox CLI starting...');
|
16
16
|
console.log(`🔧 Debug: Platform: ${process.platform}`);
|
17
17
|
console.log(`🔧 Debug: Node.js: ${process.version}`);
|
18
18
|
console.log(`🔧 Debug: Args: ${process.argv.slice(2).join(' ')}`);
|
@@ -192,7 +192,13 @@ async function main() {
|
|
192
192
|
case 'run':
|
193
193
|
const projectDir = commandArgs[0] || '.';
|
194
194
|
console.log(color('blue', '🚀 Running Playwright tests...'));
|
195
|
-
|
195
|
+
console.log(color('yellow', `Project directory: ${projectDir}`));
|
196
|
+
|
197
|
+
if (!(await checkBubblewrap())) {
|
198
|
+
console.log(color('red', '❌ Cannot run tests without bubblewrap'));
|
199
|
+
process.exit(1);
|
200
|
+
}
|
201
|
+
|
196
202
|
runScript('./container.js', ['run', projectDir]);
|
197
203
|
break;
|
198
204
|
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "sandboxbox",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.6",
|
4
4
|
"description": "Zero-privilege container runner with Playwright support",
|
5
5
|
"type": "module",
|
6
6
|
"main": "index.js",
|
7
7
|
"bin": {
|
8
|
-
"sandboxbox": "./
|
8
|
+
"sandboxbox": "./cli.js"
|
9
9
|
},
|
10
10
|
"scripts": {
|
11
11
|
"install": "node scripts/build.js",
|
package/test-cli.js
CHANGED
File without changes
|