@platformatic/astro 3.0.0-alpha.1 → 3.0.0-alpha.2
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/index.js +1 -1
- package/lib/schema.js +2 -2
- package/lib/stackable.js +2 -2
- package/package.json +8 -5
- package/schema.json +2 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { transform as basicTransform, resolve, validationOptions } from '@platformatic/basic'
|
|
2
|
-
import { kMetadata, loadConfiguration as utilsLoadConfiguration } from '@platformatic/
|
|
2
|
+
import { kMetadata, loadConfiguration as utilsLoadConfiguration } from '@platformatic/foundation'
|
|
3
3
|
import { schema } from './lib/schema.js'
|
|
4
4
|
import { AstroStackable } from './lib/stackable.js'
|
|
5
5
|
|
package/lib/schema.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { schemaComponents as basicSchemaComponents } from '@platformatic/basic'
|
|
2
|
-
import { schemaComponents as utilsSchemaComponents } from '@platformatic/
|
|
2
|
+
import { schemaComponents as utilsSchemaComponents } from '@platformatic/foundation'
|
|
3
3
|
import { readFileSync } from 'node:fs'
|
|
4
4
|
import { resolve } from 'node:path'
|
|
5
5
|
|
|
@@ -31,7 +31,7 @@ export const schema = {
|
|
|
31
31
|
logger: utilsSchemaComponents.logger,
|
|
32
32
|
server: utilsSchemaComponents.server,
|
|
33
33
|
watch: basicSchemaComponents.watch,
|
|
34
|
-
application: basicSchemaComponents.
|
|
34
|
+
application: basicSchemaComponents.buildableApplication,
|
|
35
35
|
runtime: utilsSchemaComponents.wrappedRuntime,
|
|
36
36
|
astro
|
|
37
37
|
},
|
package/lib/stackable.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
importFile,
|
|
11
11
|
resolvePackage
|
|
12
12
|
} from '@platformatic/basic'
|
|
13
|
-
import { features } from '@platformatic/
|
|
13
|
+
import { ensureLoggableError, features } from '@platformatic/foundation'
|
|
14
14
|
import fastify from 'fastify'
|
|
15
15
|
import { existsSync } from 'node:fs'
|
|
16
16
|
import { readFile, writeFile } from 'node:fs/promises'
|
|
@@ -266,7 +266,7 @@ export class AstroStackable extends BaseStackable {
|
|
|
266
266
|
const buildInfo = JSON.parse(await readFile(buildInfoPath, 'utf-8'))
|
|
267
267
|
this.#basePath = buildInfo.basePath
|
|
268
268
|
} catch (e) {
|
|
269
|
-
|
|
269
|
+
globalThis.platformatic.logger.error({ err: ensureLoggableError(e) }, 'Reading build info failed.')
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/astro",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.2",
|
|
4
4
|
"description": "Platformatic Astro Stackable",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@fastify/static": "^8.0.0",
|
|
20
20
|
"fastify": "^5.0.0",
|
|
21
21
|
"semver": "^7.6.3",
|
|
22
|
-
"@platformatic/basic": "3.0.0-alpha.
|
|
23
|
-
"@platformatic/
|
|
22
|
+
"@platformatic/basic": "3.0.0-alpha.2",
|
|
23
|
+
"@platformatic/foundation": "3.0.0-alpha.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@astrojs/node": "^9.2.0",
|
|
@@ -32,8 +32,11 @@
|
|
|
32
32
|
"typescript": "^5.5.4",
|
|
33
33
|
"vite": "^5.4.4",
|
|
34
34
|
"ws": "^8.18.0",
|
|
35
|
-
"@platformatic/composer": "3.0.0-alpha.
|
|
36
|
-
"@platformatic/service": "3.0.0-alpha.
|
|
35
|
+
"@platformatic/composer": "3.0.0-alpha.2",
|
|
36
|
+
"@platformatic/service": "3.0.0-alpha.2"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=22.18.0"
|
|
37
40
|
},
|
|
38
41
|
"scripts": {
|
|
39
42
|
"test": "npm run lint && borp --concurrency=1 --timeout 1200000",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/astro/3.0.0-alpha.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/astro/3.0.0-alpha.2.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Astro Config",
|
|
5
5
|
"type": "object",
|
|
@@ -362,6 +362,7 @@
|
|
|
362
362
|
}
|
|
363
363
|
},
|
|
364
364
|
"additionalProperties": false,
|
|
365
|
+
"required": [],
|
|
365
366
|
"default": {}
|
|
366
367
|
},
|
|
367
368
|
"runtime": {
|