nstantpage-agent 0.3.0 → 0.3.1

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.
@@ -18,7 +18,8 @@ export class PackageInstaller {
18
18
  const args = this.buildInstallArgs(pm, packages, dev);
19
19
  console.log(` [Installer] ${pm} ${args.join(' ')}`);
20
20
  try {
21
- const output = await this.runCommand(pm, args, 60_000);
21
+ const timeout = packages.length === 0 ? 120_000 : 60_000;
22
+ const output = await this.runCommand(pm, args, timeout);
22
23
  return {
23
24
  success: true,
24
25
  output,
@@ -57,6 +58,10 @@ export class PackageInstaller {
57
58
  return 'npm';
58
59
  }
59
60
  buildInstallArgs(pm, packages, dev) {
61
+ // If no packages specified, just run install (restore from lockfile)
62
+ if (packages.length === 0) {
63
+ return ['install'];
64
+ }
60
65
  const devFlag = dev
61
66
  ? (pm === 'npm' ? '--save-dev' : '-D')
62
67
  : '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nstantpage-agent",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Local development agent for nstantpage.com — run your projects locally, preview in the cloud. Replaces cloud containers for faster builds.",
5
5
  "type": "module",
6
6
  "bin": {