platformatic 2.0.0-alpha.15 → 2.0.0-alpha.16

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.
Files changed (2) hide show
  1. package/lib/build.js +5 -11
  2. package/package.json +21 -21
package/lib/build.js CHANGED
@@ -1,18 +1,12 @@
1
- import platformaticBasic from '@platformatic/basic'
2
1
  import { Store, loadConfig as pltConfigLoadConfig } from '@platformatic/config'
3
2
  import { buildRuntime, platformaticRuntime } from '@platformatic/runtime'
4
- import { errors } from '@platformatic/utils'
3
+ import { ensureLoggableError } from '@platformatic/utils'
5
4
 
6
- async function loadConfig (minimistConfig, args, overrides, replaceEnv = true) {
5
+ export async function build (args) {
7
6
  const store = new Store()
8
7
  store.add(platformaticRuntime)
9
- store.add(platformaticBasic)
10
-
11
- return pltConfigLoadConfig(minimistConfig, args, store, overrides, replaceEnv)
12
- }
13
8
 
14
- export async function build (args) {
15
- const config = await loadConfig({}, args)
9
+ const config = await pltConfigLoadConfig({}, args, store)
16
10
  config.configManager.args = config.args
17
11
 
18
12
  const runtimeConfig = config.configManager
@@ -23,7 +17,7 @@ export async function build (args) {
23
17
  const { services } = await runtime.getServices()
24
18
 
25
19
  for (const { id } of services) {
26
- logger.info(`Building service "${id}" ...`)
20
+ logger.info(`Building service ${id}" ...`)
27
21
 
28
22
  try {
29
23
  await runtime.buildService(id)
@@ -31,7 +25,7 @@ export async function build (args) {
31
25
  if (error.code === 'PLT_BASIC_NON_ZERO_EXIT_CODE') {
32
26
  logger.error(`Building service "${id}" has failed with exit code ${error.exitCode}.`)
33
27
  } else {
34
- logger.error({ err: errors.ensureLoggableError(error) }, `Building service "${id}" has throw an exception.`)
28
+ logger.error({ err: ensureLoggableError(error) }, `Building service "${id}" has throw an exception.`)
35
29
  }
36
30
 
37
31
  process.exit(1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platformatic",
3
- "version": "2.0.0-alpha.15",
3
+ "version": "2.0.0-alpha.16",
4
4
  "description": "Platformatic CLI",
5
5
  "main": "cli.js",
6
6
  "type": "module",
@@ -33,18 +33,18 @@
33
33
  "eslint": "9",
34
34
  "fastify": "^5.0.0",
35
35
  "license-checker": "^25.0.1",
36
- "mkdirp": "^2.1.6",
37
36
  "minimatch": "^10.0.1",
37
+ "mkdirp": "^2.1.6",
38
38
  "neostandard": "^0.11.1",
39
39
  "typescript": "^5.5.3",
40
- "@platformatic/astro": "2.0.0-alpha.15",
41
- "@platformatic/db": "2.0.0-alpha.15",
42
- "@platformatic/composer": "2.0.0-alpha.15",
43
- "@platformatic/node": "2.0.0-alpha.15",
44
- "@platformatic/next": "2.0.0-alpha.15",
45
- "@platformatic/remix": "2.0.0-alpha.15",
46
- "@platformatic/service": "2.0.0-alpha.15",
47
- "@platformatic/vite": "2.0.0-alpha.15"
40
+ "@platformatic/astro": "2.0.0-alpha.16",
41
+ "@platformatic/db": "2.0.0-alpha.16",
42
+ "@platformatic/next": "2.0.0-alpha.16",
43
+ "@platformatic/node": "2.0.0-alpha.16",
44
+ "@platformatic/composer": "2.0.0-alpha.16",
45
+ "@platformatic/remix": "2.0.0-alpha.16",
46
+ "@platformatic/service": "2.0.0-alpha.16",
47
+ "@platformatic/vite": "2.0.0-alpha.16"
48
48
  },
49
49
  "dependencies": {
50
50
  "@fastify/error": "^4.0.0",
@@ -58,19 +58,19 @@
58
58
  "help-me": "^5.0.0",
59
59
  "inquirer": "^9.2.16",
60
60
  "minimist": "^1.2.8",
61
- "pino": "^9.0.0",
62
- "pino-pretty": "^11.0.0",
61
+ "pino": "^9.4.0",
62
+ "pino-pretty": "^11.2.2",
63
63
  "split2": "^4.2.0",
64
64
  "undici": "^6.9.0",
65
- "@platformatic/client-cli": "2.0.0-alpha.15",
66
- "@platformatic/config": "2.0.0-alpha.15",
67
- "@platformatic/control": "2.0.0-alpha.15",
68
- "@platformatic/basic": "2.0.0-alpha.15",
69
- "@platformatic/runtime": "2.0.0-alpha.15",
70
- "@platformatic/utils": "2.0.0-alpha.15",
71
- "@platformatic/db": "2.0.0-alpha.15",
72
- "@platformatic/frontend-template": "2.0.0-alpha.15",
73
- "create-platformatic": "2.0.0-alpha.15"
65
+ "@platformatic/basic": "2.0.0-alpha.16",
66
+ "@platformatic/client-cli": "2.0.0-alpha.16",
67
+ "@platformatic/db": "2.0.0-alpha.16",
68
+ "@platformatic/control": "2.0.0-alpha.16",
69
+ "@platformatic/config": "2.0.0-alpha.16",
70
+ "@platformatic/frontend-template": "2.0.0-alpha.16",
71
+ "@platformatic/utils": "2.0.0-alpha.16",
72
+ "@platformatic/runtime": "2.0.0-alpha.16",
73
+ "create-platformatic": "2.0.0-alpha.16"
74
74
  },
75
75
  "scripts": {
76
76
  "test": "pnpm run lint && borp --no-timeout --concurrency 1",