@platformatic/astro 2.6.1 → 2.8.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/index.js +4 -15
- package/package.json +6 -6
- package/schema.json +1 -1
package/index.js
CHANGED
|
@@ -17,7 +17,6 @@ import fastify from 'fastify'
|
|
|
17
17
|
import { existsSync } from 'node:fs'
|
|
18
18
|
import { readFile, writeFile } from 'node:fs/promises'
|
|
19
19
|
import { dirname, resolve } from 'node:path'
|
|
20
|
-
import { pathToFileURL } from 'node:url'
|
|
21
20
|
import { satisfies } from 'semver'
|
|
22
21
|
import { packageJson, schema } from './lib/schema.js'
|
|
23
22
|
|
|
@@ -154,13 +153,7 @@ export class AstroStackable extends BaseStackable {
|
|
|
154
153
|
? ensureTrailingSlash(cleanBasePath(config.application?.basePath))
|
|
155
154
|
: undefined
|
|
156
155
|
|
|
157
|
-
this.registerGlobals({
|
|
158
|
-
id: this.id,
|
|
159
|
-
// Always use URL to avoid serialization problem in Windows
|
|
160
|
-
root: pathToFileURL(this.root).toString(),
|
|
161
|
-
basePath: this.#basePath,
|
|
162
|
-
logLevel: this.logger.level
|
|
163
|
-
})
|
|
156
|
+
this.registerGlobals({ basePath: this.#basePath })
|
|
164
157
|
|
|
165
158
|
if (command) {
|
|
166
159
|
return this.startWithCommand(command)
|
|
@@ -205,6 +198,8 @@ export class AstroStackable extends BaseStackable {
|
|
|
205
198
|
config.vite.server ??= {}
|
|
206
199
|
config.vite.server.hmr ??= {}
|
|
207
200
|
config.vite.server.hmr.path = `/${this.#basePath}/`.replaceAll(/\/+/g, '/')
|
|
201
|
+
config.vite.server.fs ??= {}
|
|
202
|
+
config.vite.server.fs.strict = false
|
|
208
203
|
}
|
|
209
204
|
}
|
|
210
205
|
}
|
|
@@ -224,13 +219,7 @@ export class AstroStackable extends BaseStackable {
|
|
|
224
219
|
? ensureTrailingSlash(cleanBasePath(config.application?.basePath))
|
|
225
220
|
: undefined
|
|
226
221
|
|
|
227
|
-
this.registerGlobals({
|
|
228
|
-
id: this.id,
|
|
229
|
-
// Always use URL to avoid serialization problem in Windows
|
|
230
|
-
root: pathToFileURL(this.root).toString(),
|
|
231
|
-
basePath: this.#basePath,
|
|
232
|
-
logLevel: this.logger.level
|
|
233
|
-
})
|
|
222
|
+
this.registerGlobals({ basePath: this.#basePath })
|
|
234
223
|
|
|
235
224
|
if (command) {
|
|
236
225
|
return this.startWithCommand(command)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/astro",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0-alpha.1",
|
|
4
4
|
"description": "Platformatic Astro Stackable",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"@fastify/static": "^8.0.0",
|
|
20
20
|
"fastify": "^5.0.0",
|
|
21
21
|
"semver": "^7.6.3",
|
|
22
|
-
"@platformatic/
|
|
23
|
-
"@platformatic/config": "2.
|
|
24
|
-
"@platformatic/
|
|
22
|
+
"@platformatic/basic": "2.8.0-alpha.1",
|
|
23
|
+
"@platformatic/config": "2.8.0-alpha.1",
|
|
24
|
+
"@platformatic/utils": "2.8.0-alpha.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@astrojs/node": "^8.3.3",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"typescript": "^5.5.4",
|
|
34
34
|
"vite": "^5.4.4",
|
|
35
35
|
"ws": "^8.18.0",
|
|
36
|
-
"@platformatic/composer": "2.
|
|
37
|
-
"@platformatic/service": "2.
|
|
36
|
+
"@platformatic/composer": "2.8.0-alpha.1",
|
|
37
|
+
"@platformatic/service": "2.8.0-alpha.1"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"test": "npm run lint && borp --concurrency=1 --no-timeout",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/astro/2.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/astro/2.8.0-alpha.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Astro Stackable",
|
|
5
5
|
"type": "object",
|