mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
feat: Add support for sandbox edit command (#385)
* feat: Add support for sandbox edit command * docs: Update sandbox docs * fix(editor): address review — neutral failure wording, skip sh-script tests on Windows Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(test): avoid pnpm init in pm-e2e — devEngines.packageManager crashes subsequent pnpm add Same workaround and rationale as the PNPM job in pmg-e2e.yml. Latest pnpm (unpinned pnpm/action-setup) writes devEngines.packageManager with onFail:download on init, and the next add fails with "Cannot use 'in' operator to search for 'integrity' in undefined". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
bafd3c0654
commit
695a1d739d
+4
-1
@@ -76,7 +76,10 @@ function testPackageManager(pm) {
|
||||
try {
|
||||
// Initialize project
|
||||
test(`${pm}: Initialize project`, () => {
|
||||
const initCmd = pm === 'npm' ? 'npm init -y' : 'pnpm init';
|
||||
// npm init even for pnpm: `pnpm init` writes devEngines.packageManager
|
||||
// with onFail:download, and the next `pnpm add` crashes with
|
||||
// "Cannot use 'in' operator to search for 'integrity' in undefined".
|
||||
const initCmd = 'npm init -y';
|
||||
const result = exec(initCmd, { cwd: testDir, env });
|
||||
if (!result.success) {
|
||||
console.log(` ❌ FAIL: ${result.error}`);
|
||||
|
||||
Reference in New Issue
Block a user