bun-ui-tests 1.0.9 → 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.
- package/cli.ts +22 -0
- package/package.json +1 -1
package/cli.ts
CHANGED
|
@@ -169,6 +169,28 @@ async function runTestUI() {
|
|
|
169
169
|
console.log(" 1. The package wasn't built before publishing");
|
|
170
170
|
console.log(" 2. You're running from source (run: bun run build first)");
|
|
171
171
|
console.log(" 3. Installation issue\n");
|
|
172
|
+
|
|
173
|
+
console.log(`${colors.gray}--- Debug Information ---`);
|
|
174
|
+
console.log(`Resolved Root: ${root}`);
|
|
175
|
+
console.log(`import.meta.url: ${import.meta.url}`);
|
|
176
|
+
console.log(`process.argv[1]: ${process.argv[1]}`);
|
|
177
|
+
console.log(`process.cwd(): ${process.cwd()}`);
|
|
178
|
+
|
|
179
|
+
try {
|
|
180
|
+
console.log(`\nContents of ${root}:`);
|
|
181
|
+
const entries = await readdir(root);
|
|
182
|
+
console.log(entries.join("\n"));
|
|
183
|
+
|
|
184
|
+
const appPath = join(root, "app");
|
|
185
|
+
if (await Bun.file(appPath).exists() || await Bun.file(join(appPath, "package.json")).exists()) {
|
|
186
|
+
console.log(`\nContents of ${appPath}:`);
|
|
187
|
+
const appEntries = await readdir(appPath);
|
|
188
|
+
console.log(appEntries.join("\n"));
|
|
189
|
+
}
|
|
190
|
+
} catch (e) {
|
|
191
|
+
console.log(`Error reading directory: ${e}`);
|
|
192
|
+
}
|
|
193
|
+
console.log(`-------------------------${colors.reset}\n`);
|
|
172
194
|
|
|
173
195
|
process.exit(1);
|
|
174
196
|
}
|