@platformatic/astro 2.21.0-alpha.1 → 2.21.0

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 (3) hide show
  1. package/index.js +22 -16
  2. package/package.json +6 -6
  3. package/schema.json +1 -1
package/index.js CHANGED
@@ -78,24 +78,30 @@ export class AstroStackable extends BaseStackable {
78
78
  await this.init()
79
79
  const { build } = await importFile(resolve(this.#astro, 'dist/core/index.js'))
80
80
 
81
- await build({
82
- root: this.root,
83
- base: basePath,
84
- outDir: config.application.outputDirectory,
85
- mode: 'production',
86
- configFile,
87
- logLevel: this.logger.level,
88
- integrations: [
89
- {
90
- name: 'platformatic',
91
- hooks: {
92
- 'astro:config:done': ({ config }) => {
93
- basePath = ensureTrailingSlash(cleanBasePath(config.base))
81
+ try {
82
+ globalThis.platformatic.isBuilding = true
83
+
84
+ await build({
85
+ root: this.root,
86
+ base: basePath,
87
+ outDir: config.application.outputDirectory,
88
+ mode: 'production',
89
+ configFile,
90
+ logLevel: this.logger.level,
91
+ integrations: [
92
+ {
93
+ name: 'platformatic',
94
+ hooks: {
95
+ 'astro:config:done': ({ config }) => {
96
+ basePath = ensureTrailingSlash(cleanBasePath(config.base))
97
+ }
94
98
  }
95
99
  }
96
- }
97
- ]
98
- })
100
+ ]
101
+ })
102
+ } finally {
103
+ globalThis.platformatic.isBuilding = false
104
+ }
99
105
 
100
106
  await writeFile(
101
107
  resolve(this.root, config.application.outputDirectory, '.platformatic-build.json'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/astro",
3
- "version": "2.21.0-alpha.1",
3
+ "version": "2.21.0",
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/config": "2.21.0-alpha.1",
23
- "@platformatic/utils": "2.21.0-alpha.1",
24
- "@platformatic/basic": "2.21.0-alpha.1"
22
+ "@platformatic/basic": "2.21.0",
23
+ "@platformatic/utils": "2.21.0",
24
+ "@platformatic/config": "2.21.0"
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.21.0-alpha.1",
37
- "@platformatic/service": "2.21.0-alpha.1"
36
+ "@platformatic/composer": "2.21.0",
37
+ "@platformatic/service": "2.21.0"
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.21.0-alpha.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/astro/2.21.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Astro Stackable",
5
5
  "type": "object",