@gooddata/create-pluggable-module 11.66.0-alpha.0 → 11.66.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-app-template-name-harness",
3
- "version": "11.66.0-alpha.0",
3
+ "version": "11.66.0",
4
4
  "private": true,
5
5
  "description": "Standalone harness for gdc-app-template-name module",
6
6
  "license": "UNLICENSED",
@@ -62,9 +62,9 @@
62
62
  "oxlint": "1.83.0",
63
63
  "oxlint-plugin-eslint": "1.82.0",
64
64
  "oxlint-tsgolint": "7.0.2001",
65
- "rolldown": "1.0.3",
65
+ "rolldown": "1.2.14",
66
66
  "sass": "1.104.1",
67
67
  "typescript": "7.0.2",
68
- "vite": "8.0.16"
68
+ "vite": "8.3.5"
69
69
  }
70
70
  }
@@ -103,7 +103,7 @@ export default defineConfig(({ mode }): UserConfig => {
103
103
  target: "es2022",
104
104
  chunkSizeWarningLimit: 15000,
105
105
  rolldownOptions: {
106
- input: resolve(__dirname, "index.html"),
106
+ input: resolve(import.meta.dirname, "index.html"),
107
107
  checks: {
108
108
  pluginTimings: false,
109
109
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-app-template-name-module",
3
- "version": "11.66.0-alpha.0",
3
+ "version": "11.66.0",
4
4
  "private": true,
5
5
  "description": "{applicationTemplateTitle} pluggable application module",
6
6
  "license": "UNLICENSED",
@@ -71,7 +71,7 @@
71
71
  "eslint-plugin-no-only-tests": "3.3.0",
72
72
  "eslint-plugin-react": "7.37.5",
73
73
  "eslint-plugin-sonarjs": "3.0.6",
74
- "happy-dom": "20.12.0",
74
+ "happy-dom": "21.0.4",
75
75
  "jiti": "2.6.1",
76
76
  "npm-run-all": "4.1.5",
77
77
  "oxfmt": "0.68.0",
@@ -80,10 +80,10 @@
80
80
  "oxlint-tsgolint": "7.0.2001",
81
81
  "react": "19.1.1",
82
82
  "react-dom": "19.1.1",
83
- "rolldown": "1.0.3",
83
+ "rolldown": "1.2.14",
84
84
  "sass": "1.104.1",
85
85
  "typescript": "7.0.2",
86
- "vite": "8.0.16",
86
+ "vite": "8.3.5",
87
87
  "vitest": "5.0.4"
88
88
  }
89
89
  }
@@ -111,7 +111,7 @@ export default defineConfig(({ mode, command }): UserConfig => {
111
111
  target: "es2022",
112
112
  chunkSizeWarningLimit: 10000,
113
113
  rolldownOptions: {
114
- input: resolve(__dirname, "src/pluggableApp.tsx"),
114
+ input: resolve(import.meta.dirname, "src/pluggableApp.tsx"),
115
115
  output: {
116
116
  entryFileNames: "static/js/[name].[hash].js",
117
117
  chunkFileNames: "static/js/[name].[hash].chunk.js",
@@ -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,CAiC1F;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAU7C"}
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"}
@@ -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
- const portMatch = content.match(/["']PORT["']\]?\)?\s*\|\|\s*["'](\d+)["']/);
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 template shape
54
- // (`env["PORT"] || "NNNN"`). A miss usually means the harness
55
- // was hand-refactored — warn so the next scaffolded app's port
56
- // collision doesn't surprise the user at dev-server start time.
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.66.0-alpha.0",
3
+ "version": "11.66.0",
4
4
  "description": "Scaffolder for GoodData pluggable applications. Invoked via `npm init @gooddata/pluggable-module`.",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -46,12 +46,12 @@
46
46
  "oxlint-tsgolint": "7.0.2001",
47
47
  "tslib": "2.8.1",
48
48
  "typescript": "7.0.2",
49
- "vite": "8.0.16",
49
+ "vite": "8.3.5",
50
50
  "vitest": "5.0.4",
51
- "@gooddata/oxlint-config": "11.66.0-alpha.0",
52
- "gdc-app-template-name-module": "11.66.0-alpha.0",
53
- "gdc-app-template-name-harness": "11.66.0-alpha.0",
54
- "@gooddata/eslint-config": "11.66.0-alpha.0"
51
+ "@gooddata/eslint-config": "11.66.0",
52
+ "@gooddata/oxlint-config": "11.66.0",
53
+ "gdc-app-template-name-module": "11.66.0",
54
+ "gdc-app-template-name-harness": "11.66.0"
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=24.12.0"