@coze-arch/cli 0.0.1-alpha.f626fa → 0.0.1-alpha.f91253

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,4 +1,5 @@
1
1
  import type { Metadata } from 'next';
2
+ import { Inspector } from 'react-dev-inspector';
2
3
  import './globals.css';
3
4
 
4
5
  export const metadata: Metadata = {
@@ -60,11 +61,12 @@ export default function RootLayout({
60
61
  }: Readonly<{
61
62
  children: React.ReactNode;
62
63
  }>) {
64
+ const isDev = process.env.NODE_ENV === 'development';
65
+
63
66
  return (
64
67
  <html lang="en">
65
- <body
66
- className={`antialiased`}
67
- >
68
+ <body className={`antialiased`}>
69
+ {isDev && <Inspector />}
68
70
  {children}
69
71
  </body>
70
72
  </html>
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- import { execSync } from 'child_process';
3
+
4
4
  import { resolve } from 'path';
5
5
 
6
6
 
@@ -70,10 +70,10 @@ const config = {
70
70
  console.log(`${cmd}`);
71
71
  try {
72
72
  const projectRoot = resolve(outputPath);
73
- execSync(cmd, {
74
- cwd: projectRoot,
75
- stdio: 'inherit',
76
- });
73
+ // execSync(cmd, {
74
+ // cwd: projectRoot,
75
+ // stdio: 'inherit',
76
+ // });
77
77
  console.log('✓ coze-coding-dev-sdk updated successfully');
78
78
  } catch (error) {
79
79
  console.error('✗ Failed to update coze-coding-dev-sdk:', error);
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "autoprefixer": "^10.4.20",
15
- "coze-coding-dev-sdk": "^0.7.0",
15
+ "coze-coding-dev-sdk": "^0.7.3",
16
16
  "eslint": "^9",
17
17
  "only-allow": "^1.2.2",
18
18
  "postcss": "^8.4.49",
@@ -24,5 +24,10 @@
24
24
  "packageManager": "pnpm@9.0.0",
25
25
  "engines": {
26
26
  "pnpm": ">=9.0.0"
27
+ },
28
+ "pnpm": {
29
+ "overrides": {
30
+ "esbuild": "^0.27.2"
31
+ }
27
32
  }
28
33
  }