@platformatic/astro 3.26.0 → 3.28.0-alpha.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.
- package/lib/capability.js +3 -3
- package/package.json +5 -5
- package/schema.json +1 -1
package/lib/capability.js
CHANGED
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
ensureTrailingSlash,
|
|
8
8
|
errors,
|
|
9
9
|
getServerUrl,
|
|
10
|
-
importFile
|
|
11
|
-
resolvePackage
|
|
10
|
+
importFile
|
|
12
11
|
} from '@platformatic/basic'
|
|
12
|
+
import { resolvePackageViaCJS } from '@platformatic/basic/lib/utils.js'
|
|
13
13
|
import { ensureLoggableError } from '@platformatic/foundation'
|
|
14
14
|
import fastify from 'fastify'
|
|
15
15
|
import { existsSync } from 'node:fs'
|
|
@@ -37,7 +37,7 @@ export class AstroCapability extends BaseCapability {
|
|
|
37
37
|
return
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
this.#astro = resolve(dirname(
|
|
40
|
+
this.#astro = resolve(dirname(await resolvePackageViaCJS(this.root, 'astro')), '../..')
|
|
41
41
|
const astroPackage = JSON.parse(await readFile(resolve(this.#astro, 'package.json'), 'utf-8'))
|
|
42
42
|
|
|
43
43
|
if (!satisfies(astroPackage.version, supportedVersions)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/astro",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.28.0-alpha.1",
|
|
4
4
|
"description": "Platformatic Astro Capability",
|
|
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.
|
|
23
|
-
"@platformatic/foundation": "3.
|
|
22
|
+
"@platformatic/basic": "3.28.0-alpha.1",
|
|
23
|
+
"@platformatic/foundation": "3.28.0-alpha.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@astrojs/node": "^9.2.0",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"typescript": "^5.5.4",
|
|
35
35
|
"vite": "^5.4.4",
|
|
36
36
|
"ws": "^8.18.0",
|
|
37
|
-
"@platformatic/gateway": "3.
|
|
38
|
-
"@platformatic/service": "3.
|
|
37
|
+
"@platformatic/gateway": "3.28.0-alpha.1",
|
|
38
|
+
"@platformatic/service": "3.28.0-alpha.1"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/astro/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/astro/3.28.0-alpha.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Astro Config",
|
|
5
5
|
"type": "object",
|