@stainless-api/docs 0.1.0-beta.74 → 0.1.0-beta.75

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stainless-api/docs
2
2
 
3
+ ## 0.1.0-beta.75
4
+
5
+ ### Patch Changes
6
+
7
+ - b1ff7b3: write manifest file after build
8
+
3
9
  ## 0.1.0-beta.74
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stainless-api/docs",
3
- "version": "0.1.0-beta.74",
3
+ "version": "0.1.0-beta.75",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/plugin/index.ts CHANGED
@@ -27,7 +27,7 @@ import path from 'path';
27
27
  import fs from 'fs';
28
28
  import { getSharedLogger } from '../shared/getSharedLogger';
29
29
  import { resolveSrcFile } from '../resolveSrcFile';
30
- import { mkdir } from 'fs/promises';
30
+ import { mkdir, writeFile } from 'fs/promises';
31
31
  import { fileURLToPath } from 'url';
32
32
  import prebundleWorkers from 'vite-plugin-prebundle-workers';
33
33
 
@@ -124,6 +124,7 @@ async function stlStarlightAstroIntegration(
124
124
  const resolvedId = `\0${virtualId}`;
125
125
  let playgroundsBase: string | undefined;
126
126
  let buildPlaygrounds;
127
+ let astroBase = '/';
127
128
 
128
129
  const CMS_PORT = await getPort();
129
130
 
@@ -188,6 +189,7 @@ async function stlStarlightAstroIntegration(
188
189
  }) => {
189
190
  const logger = getSharedLogger({ fallback: localLogger });
190
191
  const projectDir = astroConfig.root.pathname;
192
+ astroBase = astroConfig.base;
191
193
 
192
194
  reportError = (message: string) => logger.error(message);
193
195
 
@@ -357,6 +359,11 @@ async function stlStarlightAstroIntegration(
357
359
  }
358
360
  collectedErrors = null;
359
361
  }
362
+
363
+ const manifest = {
364
+ astroBase,
365
+ };
366
+ await writeFile(path.join(stainlessDir, 'stl-manifest.json'), JSON.stringify(manifest, null, 2));
360
367
  },
361
368
  },
362
369
  };