@fishawack/lab-env 4.45.1 → 4.46.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,16 @@
1
1
  ## Changelog
2
2
 
3
+ ### 4.46.0-beta.1 (2025-09-05)
4
+
5
+ #### Features
6
+
7
+ * write vscode workspace settings for python ([c6b2c4d](https://bitbucket.org/fishawackdigital/lab-env/commits/c6b2c4df1d730c054b966582119765d519e8f644))
8
+
9
+ #### Bug Fixes
10
+
11
+ * start now always ups whatever containers are configured ([eae144b](https://bitbucket.org/fishawackdigital/lab-env/commits/eae144be3d7f4ff2d0e39368a60c3eb280567b0c))
12
+ * use extrapaths to stop python warnings ([594887d](https://bitbucket.org/fishawackdigital/lab-env/commits/594887df096a4c46abbe47e0f2363bcc2bc28181))
13
+
3
14
  ### 4.45.1 (2025-09-04)
4
15
 
5
16
  #### Bug Fixes
package/commands/start.js CHANGED
@@ -15,22 +15,16 @@ module.exports = [
15
15
  const command = () =>
16
16
  _.command("core", `npm start -- -- ${argv.flags.join(" ")}`, true);
17
17
 
18
- if (
19
- _.platform === "laravel" ||
20
- _.platform === "wordpress" ||
21
- _.platform === "drupal" ||
22
- _.platform === "craftcms" ||
23
- _.platform === "adonis"
24
- ) {
25
- _.up(command);
26
- } else if (_.platform === "python") {
27
- _.command(
28
- "python",
29
- `uv run ./src/main.py -- -- ${argv.flags.join(" ")}`,
30
- true,
31
- );
32
- } else {
33
- command();
34
- }
18
+ _.up(() => {
19
+ if (_.platform === "python") {
20
+ _.command(
21
+ "python",
22
+ `uv run ./src/main.py -- -- ${argv.flags.join(" ")}`,
23
+ true,
24
+ );
25
+ } else {
26
+ command();
27
+ }
28
+ });
35
29
  },
36
30
  ];
package/globals.js CHANGED
@@ -8,6 +8,7 @@ const {
8
8
  copyFileSync,
9
9
  existsSync,
10
10
  readFileSync,
11
+ writeFileSync,
11
12
  cpSync,
12
13
  mkdirSync,
13
14
  } = require("fs");
@@ -126,6 +127,7 @@ var exec;
126
127
  var running;
127
128
  var services;
128
129
  var branch;
130
+ let vscodeSettings = {};
129
131
  var diagnosis = "4.0.0";
130
132
  var opts = { encoding: "utf8", stdio: "inherit", shell: "/bin/bash" };
131
133
  const users = {
@@ -280,6 +282,10 @@ if (composer && composer.require && composer.require["laravel/framework"]) {
280
282
  platform = "php";
281
283
  } else if (python) {
282
284
  platform = "python";
285
+
286
+ vscodeSettings["python.analysis.extraPaths"] = [
287
+ "${workspaceFolder}/.venv/lib/python3.13/site-packages",
288
+ ];
283
289
  } else {
284
290
  // Check for old wordpress repo stucture and show warning
285
291
  try {
@@ -613,6 +619,18 @@ if (version) {
613
619
  copyAIInstructionsFile("webdriverio-capture-v9");
614
620
  }
615
621
 
622
+ // Create .vscode/settings.json if it doesn't exist
623
+ const vscodeDir = path.join(cwd, ".vscode");
624
+ const vscodeSettingsPath = path.join(vscodeDir, "settings.json");
625
+
626
+ if (!existsSync(vscodeSettingsPath) && Object.keys(vscodeSettings).length) {
627
+ if (!existsSync(vscodeDir)) {
628
+ mkdirSync(vscodeDir, { recursive: true });
629
+ }
630
+
631
+ writeFileSync(vscodeSettingsPath, JSON.stringify(vscodeSettings, null, 4));
632
+ }
633
+
616
634
  // If docker-compose.yml exists in project _Docker folder append to end
617
635
  let localOverride = "";
618
636
  if (existsSync(path.join(cwd, "_Docker/docker-compose.yml"))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishawack/lab-env",
3
- "version": "4.45.1",
3
+ "version": "4.46.0-beta.1",
4
4
  "description": "Docker manager for FW",
5
5
  "main": "cli.js",
6
6
  "scripts": {