lowdefy 4.6.0 → 4.7.0

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.
@@ -15,6 +15,7 @@
15
15
  */ function getOptions({ commandLineOptions, cliConfig }) {
16
16
  // commandLineOptions take precedence over config in lowdefy.yaml
17
17
  const options = {
18
+ port: 3000,
18
19
  ...cliConfig,
19
20
  ...commandLineOptions
20
21
  };
@@ -14,11 +14,6 @@
14
14
  limitations under the License.
15
15
  */ import { spawnProcess } from '@lowdefy/node-utils';
16
16
  async function installServer({ context, directory }) {
17
- // Skip dependency installation for local development (monorepo already has deps installed)
18
- if (context.lowdefyVersion === 'local') {
19
- context.logger.info('Skipping dependency installation for local development.');
20
- return;
21
- }
22
17
  context.logger.info({
23
18
  spin: 'start'
24
19
  }, 'Installing dependencies.');
@@ -37,7 +32,9 @@ async function installServer({ context, directory }) {
37
32
  }
38
33
  });
39
34
  } catch (error) {
40
- console.error(error);
35
+ context.logger.info({
36
+ spin: 'fail'
37
+ }, 'Installing dependencies.');
41
38
  throw new Error('Dependency installation failed.');
42
39
  }
43
40
  context.logger.info('Dependencies install successfully.');
@@ -34,6 +34,7 @@ const runCommand = ({ cliVersion, handler })=>{
34
34
  context,
35
35
  error
36
36
  });
37
+ process.exit(1);
37
38
  }
38
39
  }
39
40
  return run;
@@ -41,6 +41,9 @@ async function runLowdefyBuild({ context, directory }) {
41
41
  }
42
42
  });
43
43
  } catch (error) {
44
+ context.logger.info({
45
+ spin: 'fail'
46
+ }, 'Running Lowdefy build.');
44
47
  throw new Error('Lowdefy build failed.');
45
48
  }
46
49
  context.logger.info('Lowdefy build successful.');
@@ -49,6 +49,9 @@ async function runNextBuild({ context, directory }) {
49
49
  }
50
50
  });
51
51
  } catch (error) {
52
+ context.logger.info({
53
+ spin: 'fail'
54
+ }, 'Running Next build.');
52
55
  throw new Error('Next build failed.');
53
56
  }
54
57
  context.logger.info('Next build successful.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lowdefy",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy CLI",
6
6
  "homepage": "https://lowdefy.com",
@@ -32,10 +32,10 @@
32
32
  ],
33
33
  "exports": "./dist/index.js",
34
34
  "dependencies": {
35
- "@lowdefy/errors": "4.6.0",
36
- "@lowdefy/helpers": "4.6.0",
37
- "@lowdefy/logger": "4.6.0",
38
- "@lowdefy/node-utils": "4.6.0",
35
+ "@lowdefy/errors": "4.7.0",
36
+ "@lowdefy/helpers": "4.7.0",
37
+ "@lowdefy/logger": "4.7.0",
38
+ "@lowdefy/node-utils": "4.7.0",
39
39
  "axios": "1.8.2",
40
40
  "commander": "11.1.0",
41
41
  "decompress": "4.2.1",