@platformatic/vite 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 +3 -3
- package/package.json +9 -6
- 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 { ViteSSRStackable, ViteStackable } 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
|
|
|
@@ -61,7 +61,7 @@ export const schema = {
|
|
|
61
61
|
logger: utilsSchemaComponents.logger,
|
|
62
62
|
server: utilsSchemaComponents.server,
|
|
63
63
|
watch: basicSchemaComponents.watch,
|
|
64
|
-
application: basicSchemaComponents.
|
|
64
|
+
application: basicSchemaComponents.buildableApplication,
|
|
65
65
|
runtime: utilsSchemaComponents.wrappedRuntime,
|
|
66
66
|
vite
|
|
67
67
|
},
|
package/lib/stackable.js
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
importFile,
|
|
10
10
|
resolvePackage
|
|
11
11
|
} from '@platformatic/basic'
|
|
12
|
+
import { ensureLoggableError, features } from '@platformatic/foundation'
|
|
12
13
|
import { NodeStackable } from '@platformatic/node'
|
|
13
|
-
import { features } from '@platformatic/utils'
|
|
14
14
|
import fastify from 'fastify'
|
|
15
15
|
import { existsSync } from 'node:fs'
|
|
16
16
|
import { readFile, writeFile } from 'node:fs/promises'
|
|
@@ -245,7 +245,7 @@ export class ViteStackable extends BaseStackable {
|
|
|
245
245
|
const buildInfo = JSON.parse(await readFile(buildInfoPath, 'utf-8'))
|
|
246
246
|
this.#basePath = buildInfo.basePath
|
|
247
247
|
} catch (e) {
|
|
248
|
-
|
|
248
|
+
globalThis.platformatic.logger.error({ err: ensureLoggableError(e) }, 'Reading build info failed.')
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
|
|
@@ -310,7 +310,7 @@ export class ViteSSRStackable extends NodeStackable {
|
|
|
310
310
|
const buildInfo = JSON.parse(await readFile(buildInfoPath, 'utf-8'))
|
|
311
311
|
this.#basePath = buildInfo.basePath
|
|
312
312
|
} catch (e) {
|
|
313
|
-
|
|
313
|
+
globalThis.platformatic.logger.error({ err: ensureLoggableError(e) }, 'Reading build info failed.')
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/vite",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.2",
|
|
4
4
|
"description": "Platformatic Vite Stackable",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"@fastify/static": "^8.0.0",
|
|
19
19
|
"fastify": "^5.0.0",
|
|
20
20
|
"semver": "^7.6.3",
|
|
21
|
-
"@platformatic/basic": "3.0.0-alpha.
|
|
22
|
-
"@platformatic/node": "3.0.0-alpha.
|
|
23
|
-
"@platformatic/
|
|
21
|
+
"@platformatic/basic": "3.0.0-alpha.2",
|
|
22
|
+
"@platformatic/node": "3.0.0-alpha.2",
|
|
23
|
+
"@platformatic/foundation": "3.0.0-alpha.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@fastify/vite": "^7.0.1",
|
|
@@ -33,8 +33,11 @@
|
|
|
33
33
|
"typescript": "^5.5.4",
|
|
34
34
|
"vite": "^5.4.0",
|
|
35
35
|
"ws": "^8.18.0",
|
|
36
|
-
"@platformatic/composer": "3.0.0-alpha.
|
|
37
|
-
"@platformatic/service": "3.0.0-alpha.
|
|
36
|
+
"@platformatic/composer": "3.0.0-alpha.2",
|
|
37
|
+
"@platformatic/service": "3.0.0-alpha.2"
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=22.18.0"
|
|
38
41
|
},
|
|
39
42
|
"scripts": {
|
|
40
43
|
"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/vite/3.0.0-alpha.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/vite/3.0.0-alpha.2.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Vite 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": {
|