@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 +1 -1
- package/package.json +1 -1
- package/pyodide/vitePlugin.js +5 -1
package/index.json
CHANGED
package/package.json
CHANGED
package/pyodide/vitePlugin.js
CHANGED
|
@@ -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`,
|