@fishawack/lab-env 4.47.0 → 4.48.0-beta.1

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,15 @@
1
1
  ## Changelog
2
2
 
3
+ ### 4.48.0-beta.1 (2025-09-12)
4
+
5
+ #### Features
6
+
7
+ * python will check for setup script and fallback to uv nistall ([2f310b0](https://bitbucket.org/fishawackdigital/lab-env/commits/2f310b05c5a0b5b6c4a511c1bb2bfe0b9b7afa39))
8
+
9
+ #### Bug Fixes
10
+
11
+ * added intecepts for python and uv ([c4d1778](https://bitbucket.org/fishawackdigital/lab-env/commits/c4d17789a6378d5f122513bb6187a92d1c7ce4b4))
12
+
3
13
  ### 4.47.0 (2025-09-12)
4
14
 
5
15
  #### Features
package/commands/setup.js CHANGED
@@ -1,3 +1,6 @@
1
+ const path = require("path");
2
+ const { existsSync } = require("fs");
3
+
1
4
  const _ = require("../globals.js");
2
5
 
3
6
  const execSync = require("child_process").execSync;
@@ -21,7 +24,16 @@ module.exports = [
21
24
  ),
22
25
  );
23
26
  } else if (_.platform === "python") {
24
- _.command("python", `uv sync --locked || uv sync`);
27
+ if (existsSync(path.join(process.cwd(), "_Scripts/setup.sh"))) {
28
+ _.up(() =>
29
+ execSync(
30
+ `source ${__dirname}/../intercept.sh && /bin/bash ./_Scripts/setup.sh`,
31
+ _.opts,
32
+ ),
33
+ );
34
+ } else {
35
+ _.command("python", `uv sync --locked || uv sync`);
36
+ }
25
37
  } else {
26
38
  _.command("core", `npm run setup`);
27
39
  }
package/intercept.sh CHANGED
@@ -1,5 +1,9 @@
1
1
  #!/bin/bash
2
2
 
3
+ uv(){
4
+ command lab-env uv "$@"
5
+ }
6
+
3
7
  npm(){
4
8
  command lab-env npm "$@"
5
9
  }
@@ -36,6 +40,10 @@ node(){
36
40
  command lab-env node "$@"
37
41
  }
38
42
 
43
+ python(){
44
+ command lab-env python "$@"
45
+ }
46
+
39
47
  chmod(){
40
48
  command lab-env exec "chmod $@"
41
49
  }
@@ -60,6 +68,7 @@ zip(){
60
68
  command lab-env exec "zip $*"
61
69
  }
62
70
 
71
+ export -f uv;
63
72
  export -f npm;
64
73
  export -f composer;
65
74
  export -f drush;
@@ -68,6 +77,7 @@ export -f craft;
68
77
  export -f wp;
69
78
  export -f php;
70
79
  export -f node;
80
+ export -f python;
71
81
  export -f chown;
72
82
  export -f chmod;
73
83
  export -f chgrp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishawack/lab-env",
3
- "version": "4.47.0",
3
+ "version": "4.48.0-beta.1",
4
4
  "description": "Docker manager for FW",
5
5
  "main": "cli.js",
6
6
  "scripts": {