@wix/astro 1.0.2 → 1.0.3
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/build/index.js +26 -3
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +7 -3
package/build/index.js
CHANGED
|
@@ -122353,9 +122353,29 @@ var siteComponentConfigSchema = z.object({
|
|
|
122353
122353
|
editorElement: z.unknown()
|
|
122354
122354
|
}).strict();
|
|
122355
122355
|
var buildMetadataSchema = z.object({
|
|
122356
|
+
appManifestPath: z.string(),
|
|
122357
|
+
outDir: z.string(),
|
|
122356
122358
|
clientDir: z.string(),
|
|
122357
122359
|
serverDir: z.string()
|
|
122358
122360
|
});
|
|
122361
|
+
var deploymentTopologyEnvironmentSchema = z.object({
|
|
122362
|
+
id: z.string().describe("Unique ARM tag identifier"),
|
|
122363
|
+
site: z.object({
|
|
122364
|
+
main: z.string().url().describe("Main site URL")
|
|
122365
|
+
}).describe("Site topology details").required(),
|
|
122366
|
+
dashboard: z.object({
|
|
122367
|
+
main: z.string().url().describe("Main dashboard URL (link to a business manager dashboard)")
|
|
122368
|
+
}).describe("Optional dashboard topology details").optional()
|
|
122369
|
+
});
|
|
122370
|
+
var deploymentTopologyEnvironmentTypeSchema = z.enum([
|
|
122371
|
+
"production",
|
|
122372
|
+
"preview",
|
|
122373
|
+
"development"
|
|
122374
|
+
]);
|
|
122375
|
+
var deploymentTopologySchema = z.record(
|
|
122376
|
+
deploymentTopologyEnvironmentTypeSchema,
|
|
122377
|
+
deploymentTopologyEnvironmentSchema
|
|
122378
|
+
);
|
|
122359
122379
|
|
|
122360
122380
|
// ../cli-fs/src/index.ts
|
|
122361
122381
|
init_esm_shims();
|
|
@@ -124665,14 +124685,17 @@ var createIntegration = () => {
|
|
|
124665
124685
|
async "astro:build:done"() {
|
|
124666
124686
|
model ??= await createProjectModel();
|
|
124667
124687
|
const appManifest = generateAppManifest(model);
|
|
124668
|
-
|
|
124669
|
-
|
|
124670
|
-
|
|
124688
|
+
const appManifestPath = join8(
|
|
124689
|
+
_config.outDir.pathname,
|
|
124690
|
+
"_wix/app-manifest.json"
|
|
124671
124691
|
);
|
|
124692
|
+
await writeJson(appManifestPath, appManifest);
|
|
124672
124693
|
await writeJson(
|
|
124673
124694
|
join8(_config.root.pathname, GIT_IGNORED_DIR, "build-metadata.json"),
|
|
124674
124695
|
{
|
|
124696
|
+
appManifestPath,
|
|
124675
124697
|
clientDir: _config.build.client.pathname,
|
|
124698
|
+
outDir: _config.outDir.pathname,
|
|
124676
124699
|
serverDir: _config.build.server.pathname
|
|
124677
124700
|
}
|
|
124678
124701
|
);
|