@cfasim-ui/docs 0.4.3 → 0.4.4

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.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.3",
2
+ "version": "0.4.4",
3
3
  "package": "@cfasim-ui/docs",
4
4
  "content": {
5
5
  "components": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfasim-ui/docs",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "LLM-friendly component and chart documentation for cfasim-ui",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  import { execSync } from "node:child_process";
2
- import { readdirSync, writeFileSync, mkdirSync } from "node:fs";
2
+ import { readdirSync, writeFileSync, mkdirSync, rmSync } from "node:fs";
3
3
  import { resolve } from "node:path";
4
4
 
5
5
  /**
@@ -38,6 +38,10 @@ export function cfasimPyodide(options) {
38
38
  function build(root) {
39
39
  const publicDir = resolve(root, "public");
40
40
  mkdirSync(publicDir, { recursive: true });
41
+ // Clear stale wheels so wheels.json only lists this build's output.
42
+ for (const f of readdirSync(publicDir)) {
43
+ if (f.endsWith(".whl")) rmSync(resolve(publicDir, f));
44
+ }
41
45
  for (const dep of options?.pypiDeps ?? []) {
42
46
  execSync(
43
47
  `${pipCommand} download ${dep} --dest public --no-deps --python-version ${pythonVersion} --platform any`,