@genesislcap/vite-builder 14.372.0 → 14.373.1-FUI-2457.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.
@@ -0,0 +1,25 @@
1
+ /**
2
+ * List of @genesislcap packages that should be deduplicated in Vite configurations.
3
+ *
4
+ * This prevents Vite from resolving the same module through multiple paths
5
+ * (@fs absolute paths vs relative paths from node_modules), which causes duplicate
6
+ * entries in the debugger and can lead to module resolution issues.
7
+ *
8
+ * This list should be used in:
9
+ * - vite-builder's default configuration (for apps using genx)
10
+ * - Local vite.config.ts files (when overriding vite-builder config)
11
+ * - External apps outside the monorepo that use Vite directly
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * import { GENESIS_DEDUPE_PACKAGES } from '@genesislcap/vite-builder/dedupe-packages';
16
+ *
17
+ * export default {
18
+ * resolve: {
19
+ * dedupe: GENESIS_DEDUPE_PACKAGES,
20
+ * },
21
+ * };
22
+ * ```
23
+ */
24
+ export declare const GENESIS_DEDUPE_PACKAGES: string[];
25
+ //# sourceMappingURL=dedupe-packages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dedupe-packages.d.ts","sourceRoot":"","sources":["../src/dedupe-packages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,uBAAuB,UAiDnC,CAAC"}
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GENESIS_DEDUPE_PACKAGES = void 0;
4
+ /**
5
+ * List of @genesislcap packages that should be deduplicated in Vite configurations.
6
+ *
7
+ * This prevents Vite from resolving the same module through multiple paths
8
+ * (@fs absolute paths vs relative paths from node_modules), which causes duplicate
9
+ * entries in the debugger and can lead to module resolution issues.
10
+ *
11
+ * This list should be used in:
12
+ * - vite-builder's default configuration (for apps using genx)
13
+ * - Local vite.config.ts files (when overriding vite-builder config)
14
+ * - External apps outside the monorepo that use Vite directly
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * import { GENESIS_DEDUPE_PACKAGES } from '@genesislcap/vite-builder/dedupe-packages';
19
+ *
20
+ * export default {
21
+ * resolve: {
22
+ * dedupe: GENESIS_DEDUPE_PACKAGES,
23
+ * },
24
+ * };
25
+ * ```
26
+ */
27
+ exports.GENESIS_DEDUPE_PACKAGES = [
28
+ '@genesislcap/design-system-configurator',
29
+ '@genesislcap/documentation-components',
30
+ '@genesislcap/foundation-alerts',
31
+ '@genesislcap/foundation-auth',
32
+ '@genesislcap/foundation-comms',
33
+ '@genesislcap/foundation-criteria',
34
+ '@genesislcap/foundation-entity-management',
35
+ '@genesislcap/foundation-errors',
36
+ '@genesislcap/foundation-events',
37
+ '@genesislcap/foundation-filters',
38
+ '@genesislcap/foundation-forms',
39
+ '@genesislcap/foundation-header',
40
+ '@genesislcap/foundation-i18n',
41
+ '@genesislcap/foundation-inbox',
42
+ '@genesislcap/foundation-layout',
43
+ '@genesislcap/foundation-logger',
44
+ '@genesislcap/foundation-login',
45
+ '@genesislcap/foundation-notification-dashboard',
46
+ '@genesislcap/foundation-notifications',
47
+ '@genesislcap/foundation-progress-overlay',
48
+ '@genesislcap/foundation-react-utils',
49
+ '@genesislcap/foundation-reporting',
50
+ '@genesislcap/foundation-settings',
51
+ '@genesislcap/foundation-shell',
52
+ '@genesislcap/foundation-state-machine',
53
+ '@genesislcap/foundation-store',
54
+ '@genesislcap/foundation-ui',
55
+ '@genesislcap/foundation-user',
56
+ '@genesislcap/foundation-utils',
57
+ '@genesislcap/foundation-zero',
58
+ '@genesislcap/foundation-zero-grid-next',
59
+ '@genesislcap/foundation-zero-grid-pro',
60
+ '@genesislcap/foundation-zero-grid-tabulator',
61
+ '@genesislcap/g2plot-chart',
62
+ '@genesislcap/grid-next',
63
+ '@genesislcap/grid-pro',
64
+ '@genesislcap/grid-tabulator',
65
+ '@genesislcap/pbc-auth',
66
+ '@genesislcap/pbc-auth-ui',
67
+ '@genesislcap/pbc-documents-ui',
68
+ '@genesislcap/pbc-notify',
69
+ '@genesislcap/pbc-notify-ui',
70
+ '@genesislcap/pbc-reporting',
71
+ '@genesislcap/pbc-reporting-ui',
72
+ '@genesislcap/rapid-design-system',
73
+ '@genesislcap/rapid-grid-pro',
74
+ '@genesislcap/rapid-grid-tabulator',
75
+ '@genesislcap/web-core',
76
+ ];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAc3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;yBAEmB,KAAK,YAAY;AAAvC,wBAuJE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAgB3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;yBAEmB,KAAK,YAAY;AAAvC,wBAmHE"}
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ const node_path_1 = require("node:path");
6
6
  const build_kit_1 = require("@genesislcap/build-kit");
7
7
  const consola_1 = tslib_1.__importDefault(require("consola"));
8
8
  const vite_js_1 = require("./vite.js");
9
+ const dedupe_packages_js_1 = require("./dedupe-packages.js");
9
10
  /**
10
11
  * There seems to be various documented issues using Vite in a monorepo setup that are impacted by various factors.
11
12
  *
@@ -60,46 +61,7 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
60
61
  *
61
62
  * Globs aren't supported.
62
63
  */
63
- dedupe: [
64
- '@genesislcap/design-system-configurator',
65
- '@genesislcap/documentation-components',
66
- '@genesislcap/foundation-alerts',
67
- '@genesislcap/foundation-auth',
68
- '@genesislcap/foundation-comms',
69
- '@genesislcap/foundation-criteria',
70
- '@genesislcap/foundation-entity-management',
71
- '@genesislcap/foundation-errors',
72
- '@genesislcap/foundation-events',
73
- '@genesislcap/foundation-filters',
74
- '@genesislcap/foundation-forms',
75
- '@genesislcap/foundation-header',
76
- '@genesislcap/foundation-i18n',
77
- '@genesislcap/foundation-inbox',
78
- '@genesislcap/foundation-layout',
79
- '@genesislcap/foundation-logger',
80
- '@genesislcap/foundation-login',
81
- '@genesislcap/foundation-notification-dashboard',
82
- '@genesislcap/foundation-notifications',
83
- '@genesislcap/foundation-progress-overlay',
84
- '@genesislcap/foundation-reporting',
85
- '@genesislcap/foundation-settings',
86
- '@genesislcap/foundation-shell',
87
- '@genesislcap/foundation-state-machine',
88
- '@genesislcap/foundation-store',
89
- '@genesislcap/foundation-ui',
90
- '@genesislcap/foundation-utils',
91
- '@genesislcap/foundation-zero',
92
- '@genesislcap/foundation-zero-grid-next',
93
- '@genesislcap/foundation-zero-grid-pro',
94
- '@genesislcap/foundation-zero-grid-tabulator',
95
- '@genesislcap/g2plot-chart',
96
- '@genesislcap/grid-next',
97
- '@genesislcap/grid-pro',
98
- '@genesislcap/grid-tabulator',
99
- '@genesislcap/pbc-auth',
100
- '@genesislcap/pbc-notify',
101
- '@genesislcap/pbc-reporting',
102
- ],
64
+ dedupe: dedupe_packages_js_1.GENESIS_DEDUPE_PACKAGES,
103
65
  },
104
66
  define,
105
67
  build: {
@@ -144,6 +106,9 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
144
106
  port: (0, build_kit_1.getPort)(ctx.pkg),
145
107
  proxy: (0, build_kit_1.createDevProxies)(),
146
108
  https: https ? (0, build_kit_1.getDevCertOptions)() : undefined,
109
+ fs: {
110
+ strict: false,
111
+ },
147
112
  } }));
148
113
  yield server.listen();
149
114
  server.printUrls();
package/package.json CHANGED
@@ -1,10 +1,22 @@
1
1
  {
2
2
  "name": "@genesislcap/vite-builder",
3
3
  "description": "Vite builder",
4
- "version": "14.372.0",
4
+ "version": "14.373.1-FUI-2457.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./dedupe-packages": {
15
+ "import": "./dist/dedupe-packages.js",
16
+ "require": "./dist/dedupe-packages.js",
17
+ "types": "./dist/dedupe-packages.d.ts"
18
+ }
19
+ },
8
20
  "engines": {
9
21
  "node": ">=22.0.0"
10
22
  },
@@ -14,7 +26,7 @@
14
26
  "dev": "tsc -b ./tsconfig.json -w"
15
27
  },
16
28
  "dependencies": {
17
- "@genesislcap/build-kit": "14.372.0",
29
+ "@genesislcap/build-kit": "14.373.1-FUI-2457.1",
18
30
  "consola": "^3.0.2",
19
31
  "copyfiles": "^2.4.1",
20
32
  "vite": "^7.2.2",
@@ -28,5 +40,5 @@
28
40
  "publishConfig": {
29
41
  "access": "public"
30
42
  },
31
- "gitHead": "5687711a57e643a627b78f773f99fad4df1062e9"
43
+ "gitHead": "e90b6462c1782f491ef86a83a1b6f9fd43f42c10"
32
44
  }
@@ -0,0 +1,73 @@
1
+ /**
2
+ * List of @genesislcap packages that should be deduplicated in Vite configurations.
3
+ *
4
+ * This prevents Vite from resolving the same module through multiple paths
5
+ * (@fs absolute paths vs relative paths from node_modules), which causes duplicate
6
+ * entries in the debugger and can lead to module resolution issues.
7
+ *
8
+ * This list should be used in:
9
+ * - vite-builder's default configuration (for apps using genx)
10
+ * - Local vite.config.ts files (when overriding vite-builder config)
11
+ * - External apps outside the monorepo that use Vite directly
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * import { GENESIS_DEDUPE_PACKAGES } from '@genesislcap/vite-builder/dedupe-packages';
16
+ *
17
+ * export default {
18
+ * resolve: {
19
+ * dedupe: GENESIS_DEDUPE_PACKAGES,
20
+ * },
21
+ * };
22
+ * ```
23
+ */
24
+ export const GENESIS_DEDUPE_PACKAGES = [
25
+ '@genesislcap/design-system-configurator',
26
+ '@genesislcap/documentation-components',
27
+ '@genesislcap/foundation-alerts',
28
+ '@genesislcap/foundation-auth',
29
+ '@genesislcap/foundation-comms',
30
+ '@genesislcap/foundation-criteria',
31
+ '@genesislcap/foundation-entity-management',
32
+ '@genesislcap/foundation-errors',
33
+ '@genesislcap/foundation-events',
34
+ '@genesislcap/foundation-filters',
35
+ '@genesislcap/foundation-forms',
36
+ '@genesislcap/foundation-header',
37
+ '@genesislcap/foundation-i18n',
38
+ '@genesislcap/foundation-inbox',
39
+ '@genesislcap/foundation-layout',
40
+ '@genesislcap/foundation-logger',
41
+ '@genesislcap/foundation-login',
42
+ '@genesislcap/foundation-notification-dashboard',
43
+ '@genesislcap/foundation-notifications',
44
+ '@genesislcap/foundation-progress-overlay',
45
+ '@genesislcap/foundation-react-utils',
46
+ '@genesislcap/foundation-reporting',
47
+ '@genesislcap/foundation-settings',
48
+ '@genesislcap/foundation-shell',
49
+ '@genesislcap/foundation-state-machine',
50
+ '@genesislcap/foundation-store',
51
+ '@genesislcap/foundation-ui',
52
+ '@genesislcap/foundation-user',
53
+ '@genesislcap/foundation-utils',
54
+ '@genesislcap/foundation-zero',
55
+ '@genesislcap/foundation-zero-grid-next',
56
+ '@genesislcap/foundation-zero-grid-pro',
57
+ '@genesislcap/foundation-zero-grid-tabulator',
58
+ '@genesislcap/g2plot-chart',
59
+ '@genesislcap/grid-next',
60
+ '@genesislcap/grid-pro',
61
+ '@genesislcap/grid-tabulator',
62
+ '@genesislcap/pbc-auth',
63
+ '@genesislcap/pbc-auth-ui',
64
+ '@genesislcap/pbc-documents-ui',
65
+ '@genesislcap/pbc-notify',
66
+ '@genesislcap/pbc-notify-ui',
67
+ '@genesislcap/pbc-reporting',
68
+ '@genesislcap/pbc-reporting-ui',
69
+ '@genesislcap/rapid-design-system',
70
+ '@genesislcap/rapid-grid-pro',
71
+ '@genesislcap/rapid-grid-tabulator',
72
+ '@genesislcap/web-core',
73
+ ];
package/src/index.ts CHANGED
@@ -13,6 +13,8 @@ import {
13
13
  import consola from 'consola';
14
14
  import type { Plugin, UserConfig, ProxyOptions } from 'vite';
15
15
  import { getHandlebarsModule, getViteModule } from './vite.js';
16
+ import { GENESIS_DEDUPE_PACKAGES } from './dedupe-packages.js';
17
+
16
18
 
17
19
  /**
18
20
  * There seems to be various documented issues using Vite in a monorepo setup that are impacted by various factors.
@@ -90,46 +92,7 @@ export default async (ctx: BuildContext) => {
90
92
  *
91
93
  * Globs aren't supported.
92
94
  */
93
- dedupe: [
94
- '@genesislcap/design-system-configurator',
95
- '@genesislcap/documentation-components',
96
- '@genesislcap/foundation-alerts',
97
- '@genesislcap/foundation-auth',
98
- '@genesislcap/foundation-comms',
99
- '@genesislcap/foundation-criteria',
100
- '@genesislcap/foundation-entity-management',
101
- '@genesislcap/foundation-errors',
102
- '@genesislcap/foundation-events',
103
- '@genesislcap/foundation-filters',
104
- '@genesislcap/foundation-forms',
105
- '@genesislcap/foundation-header',
106
- '@genesislcap/foundation-i18n',
107
- '@genesislcap/foundation-inbox',
108
- '@genesislcap/foundation-layout',
109
- '@genesislcap/foundation-logger',
110
- '@genesislcap/foundation-login',
111
- '@genesislcap/foundation-notification-dashboard',
112
- '@genesislcap/foundation-notifications',
113
- '@genesislcap/foundation-progress-overlay',
114
- '@genesislcap/foundation-reporting',
115
- '@genesislcap/foundation-settings',
116
- '@genesislcap/foundation-shell',
117
- '@genesislcap/foundation-state-machine',
118
- '@genesislcap/foundation-store',
119
- '@genesislcap/foundation-ui',
120
- '@genesislcap/foundation-utils',
121
- '@genesislcap/foundation-zero',
122
- '@genesislcap/foundation-zero-grid-next',
123
- '@genesislcap/foundation-zero-grid-pro',
124
- '@genesislcap/foundation-zero-grid-tabulator',
125
- '@genesislcap/g2plot-chart',
126
- '@genesislcap/grid-next',
127
- '@genesislcap/grid-pro',
128
- '@genesislcap/grid-tabulator',
129
- '@genesislcap/pbc-auth',
130
- '@genesislcap/pbc-notify',
131
- '@genesislcap/pbc-reporting',
132
- ],
95
+ dedupe: GENESIS_DEDUPE_PACKAGES,
133
96
  },
134
97
  define,
135
98
  build: {
@@ -179,6 +142,9 @@ export default async (ctx: BuildContext) => {
179
142
  port: getPort(ctx.pkg),
180
143
  proxy: createDevProxies() as Record<string, ProxyOptions>,
181
144
  https: https ? getDevCertOptions() : undefined,
145
+ fs: {
146
+ strict: false,
147
+ },
182
148
  },
183
149
  });
184
150
  await server.listen();
@@ -1 +1 @@
1
- {"root":["./src/index.ts","./src/vite.ts"],"version":"5.9.2"}
1
+ {"root":["./src/dedupe-packages.ts","./src/index.ts","./src/vite.ts"],"version":"5.9.2"}