@shellui/cli 0.0.15 → 0.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shellui/cli",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "ShellUI CLI - Command-line tool for ShellUI",
5
5
  "main": "src/cli.js",
6
6
  "type": "module",
@@ -30,7 +30,7 @@
30
30
  "tsx": "^4.21.0",
31
31
  "vite": "7.3.1",
32
32
  "workbox-build": "^7.1.0",
33
- "@shellui/core": "0.0.15"
33
+ "@shellui/core": "0.0.17"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
@@ -87,6 +87,9 @@ export async function buildCommand(root = '.') {
87
87
  define: createViteDefine(config),
88
88
  resolve: {
89
89
  alias: resolveAlias,
90
+ // Dedupe React and core package to prevent duplicate module instances
91
+ // This is critical for React Context to work correctly in micro-frontends
92
+ dedupe: ['react', 'react-dom', '@shellui/core'],
90
93
  },
91
94
  css: {
92
95
  postcss: postcssConfig,
@@ -125,6 +128,8 @@ export async function buildCommand(root = '.') {
125
128
  define: createViteDefine(config),
126
129
  resolve: {
127
130
  alias: resolveAlias,
131
+ // Dedupe React and core package to prevent duplicate module instances
132
+ dedupe: ['react', 'react-dom', '@shellui/core'],
128
133
  },
129
134
  build: {
130
135
  outDir: distPath,
@@ -43,6 +43,10 @@ async function startServer(root, cwd, shouldOpen = false) {
43
43
  define: createViteDefine(config),
44
44
  resolve: {
45
45
  alias: createResolveAlias(),
46
+ // Dedupe React and core package to prevent duplicate module instances
47
+ // This is critical for React Context to work correctly in micro-frontends
48
+ // When React is a peer dependency, dedupe ensures Vite uses a single instance
49
+ dedupe: ['react', 'react-dom', '@shellui/core'],
46
50
  },
47
51
  css: {
48
52
  postcss: createPostCSSConfig(),
@@ -35,6 +35,8 @@ export function serviceWorkerDevPlugin(corePackagePath, coreSrcPath) {
35
35
  plugins: [react()],
36
36
  resolve: {
37
37
  alias: createResolveAlias(),
38
+ // Dedupe React and core package to prevent duplicate module instances
39
+ dedupe: ['react', 'react-dom', '@shellui/core'],
38
40
  },
39
41
  build: {
40
42
  write: false,