@gooddata/create-pluggable-module 11.65.2-alpha.0 → 11.65.2-alpha.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derived.d.ts","sourceRoot":"","sources":["../../src/engine/derived.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AAEH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,8DAA8D;AAC9D,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"derived.d.ts","sourceRoot":"","sources":["../../src/engine/derived.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AAEH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,8DAA8D;AAC9D,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,CAmC1F;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAU7C"}
|
package/esm/engine/derived.js
CHANGED
|
@@ -43,17 +43,19 @@ export function computeDevPort(repoRoot, extraDirs = []) {
|
|
|
43
43
|
if (!existsSync(viteConfig))
|
|
44
44
|
continue;
|
|
45
45
|
const content = readFileSync(viteConfig, "utf-8");
|
|
46
|
-
|
|
46
|
+
// Either the template's `env["PORT"] || "NNNN"` literal or the `port: NNNN` option of a
|
|
47
|
+
// harness built from the @gooddata/toolchain-config `harness` preset.
|
|
48
|
+
const portMatch = content.match(/["']PORT["']\]?\)?\s*\|\|\s*["'](\d+)["']|\bport:\s*(\d+)\b/);
|
|
47
49
|
if (portMatch) {
|
|
48
|
-
const port = parseInt(portMatch[1], 10);
|
|
50
|
+
const port = parseInt(portMatch[1] ?? portMatch[2], 10);
|
|
49
51
|
if (port > maxPort)
|
|
50
52
|
maxPort = port;
|
|
51
53
|
}
|
|
52
54
|
else {
|
|
53
|
-
// The regex is tuned to the harness
|
|
54
|
-
//
|
|
55
|
-
//
|
|
56
|
-
//
|
|
55
|
+
// The regex is tuned to the two harness shapes above. A miss
|
|
56
|
+
// usually means the harness was hand-refactored — warn so the
|
|
57
|
+
// next scaffolded app's port collision doesn't surprise the user
|
|
58
|
+
// at dev-server start time.
|
|
57
59
|
console.warn(` Warning: could not detect port literal in ${viteConfig} — port collision possible.`);
|
|
58
60
|
}
|
|
59
61
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/create-pluggable-module",
|
|
3
|
-
"version": "11.65.2-alpha.
|
|
3
|
+
"version": "11.65.2-alpha.1",
|
|
4
4
|
"description": "Scaffolder for GoodData pluggable applications. Invoked via `npm init @gooddata/pluggable-module`.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"typescript": "7.0.2",
|
|
49
49
|
"vite": "8.0.16",
|
|
50
50
|
"vitest": "5.0.4",
|
|
51
|
-
"@gooddata/eslint-config": "11.65.2-alpha.
|
|
52
|
-
"
|
|
53
|
-
"gdc-app-template-name-module": "11.65.2-alpha.
|
|
54
|
-
"
|
|
51
|
+
"@gooddata/eslint-config": "11.65.2-alpha.1",
|
|
52
|
+
"@gooddata/oxlint-config": "11.65.2-alpha.1",
|
|
53
|
+
"gdc-app-template-name-module": "11.65.2-alpha.1",
|
|
54
|
+
"gdc-app-template-name-harness": "11.65.2-alpha.1"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=24.12.0"
|