wattpm-utils 3.23.0 → 3.24.0

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.
@@ -51,7 +51,10 @@ async function parseLocalFolder (path) {
51
51
  // Detect if there is a git folder and eventually get the remote
52
52
  for (const candidate of originCandidates) {
53
53
  try {
54
- const result = await execa('git', ['remote', 'get-url', candidate], { cwd: path })
54
+ const result = await execa('git', ['remote', 'get-url', candidate], {
55
+ cwd: path,
56
+ env: { GIT_DIR: join(path, '.git') }
57
+ })
55
58
  url = result.stdout.trim()
56
59
  break
57
60
  } catch (e) {
@@ -272,7 +275,14 @@ async function importURL (logger, _, configurationFile, rawUrl, id, http, branch
272
275
  const parsed = parseGitUrl(url)
273
276
  const effectiveBranch = branch ?? parsed.branch
274
277
 
275
- await importApplication(logger, configurationFile, id ?? basename(parsed.url, '.git'), null, parsed.url, effectiveBranch)
278
+ await importApplication(
279
+ logger,
280
+ configurationFile,
281
+ id ?? basename(parsed.url, '.git'),
282
+ null,
283
+ parsed.url,
284
+ effectiveBranch
285
+ )
276
286
  }
277
287
 
278
288
  async function importLocal (logger, root, configurationFile, path, overridenId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wattpm-utils",
3
- "version": "3.23.0",
3
+ "version": "3.24.0",
4
4
  "description": "The Node.js Application Server Utilities Commands",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -28,9 +28,9 @@
28
28
  "dotenv": "^16.4.5",
29
29
  "execa": "^9.4.0",
30
30
  "semver": "^7.7.0",
31
- "@platformatic/foundation": "3.23.0",
32
- "@platformatic/runtime": "3.23.0",
33
- "create-wattpm": "3.23.0"
31
+ "create-wattpm": "3.24.0",
32
+ "@platformatic/runtime": "3.24.0",
33
+ "@platformatic/foundation": "3.24.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "cleaner-spec-reporter": "^0.5.0",
@@ -40,7 +40,7 @@
40
40
  "neostandard": "^0.12.0",
41
41
  "typescript": "^5.5.4",
42
42
  "undici": "^7.0.0",
43
- "@platformatic/node": "3.23.0"
43
+ "@platformatic/node": "3.24.0"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=22.19.0"