create-what 0.5.4 → 0.5.6

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +9 -28
  3. package/package.json +5 -6
package/README.md CHANGED
@@ -70,7 +70,7 @@ StyleX is configured via `vite-plugin-stylex`. The counter example uses `stylex.
70
70
  ## Links
71
71
 
72
72
  - [Documentation](https://whatfw.com)
73
- - [GitHub](https://github.com/zvndev/what-fw)
73
+ - [GitHub](https://github.com/CelsianJs/whatfw)
74
74
 
75
75
  ## License
76
76
 
package/index.js CHANGED
@@ -123,18 +123,17 @@ async function gatherOptions() {
123
123
 
124
124
  function generatePackageJson(projectName, { reactCompat, cssApproach }) {
125
125
  const deps = {
126
- 'what-framework': '^0.5.3',
126
+ 'what-framework': '^0.5.4',
127
127
  };
128
128
  const devDeps = {
129
129
  vite: '^6.0.0',
130
- 'what-compiler': '^0.5.3',
131
- 'what-devtools': '^0.5.3',
132
- 'what-devtools-mcp': '^0.1.0',
130
+ 'what-compiler': '^0.5.4',
131
+ '@babel/core': '^7.23.0',
133
132
  };
134
133
 
135
134
  if (reactCompat) {
136
135
  deps['what-react'] = '^0.1.0';
137
- deps['what-core'] = '^0.5.3';
136
+ deps['what-core'] = '^0.5.4';
138
137
  // Include zustand as a demo React library
139
138
  deps['zustand'] = '^5.0.0';
140
139
  }
@@ -170,9 +169,6 @@ function generateViteConfig({ reactCompat, cssApproach }) {
170
169
 
171
170
  imports.push(`import { defineConfig } from 'vite';`);
172
171
 
173
- // AI-powered debugging — auto-injects devtools in dev mode
174
- imports.push(`import whatDevToolsMCP from 'what-devtools-mcp/vite-plugin';`);
175
-
176
172
  if (reactCompat) {
177
173
  // React compat projects use the what-react Vite plugin instead of the
178
174
  // What compiler. The what-react plugin aliases react/react-dom imports
@@ -185,8 +181,6 @@ function generateViteConfig({ reactCompat, cssApproach }) {
185
181
  plugins.push('what()');
186
182
  }
187
183
 
188
- plugins.push('whatDevToolsMCP()');
189
-
190
184
  if (cssApproach === 'tailwind') {
191
185
  imports.push(`import tailwindcss from '@tailwindcss/vite';`);
192
186
  plugins.push('tailwindcss()');
@@ -847,8 +841,9 @@ async function main() {
847
841
 
848
842
  mkdirSync(join(root, 'src'), { recursive: true });
849
843
  mkdirSync(join(root, 'public'), { recursive: true });
850
- mkdirSync(join(root, '.claude'), { recursive: true });
851
- mkdirSync(join(root, '.cursor'), { recursive: true });
844
+ // MCP config dirs created but left empty until what-devtools-mcp is published
845
+ // mkdirSync(join(root, '.claude'), { recursive: true });
846
+ // mkdirSync(join(root, '.cursor'), { recursive: true });
852
847
 
853
848
  // .gitignore
854
849
  writeFileSync(join(root, '.gitignore'), `node_modules\ndist\n.DS_Store\n`);
@@ -882,7 +877,7 @@ async function main() {
882
877
  module: 'ESNext',
883
878
  moduleResolution: 'bundler',
884
879
  jsx: 'preserve',
885
- jsxImportSource: 'what-core',
880
+ jsxImportSource: 'what-framework',
886
881
  strict: true,
887
882
  noEmit: true,
888
883
  skipLibCheck: true,
@@ -903,23 +898,9 @@ async function main() {
903
898
  }, null, 2) + '\n');
904
899
 
905
900
  writeFileSync(join(root, '.vscode', 'extensions.json'), JSON.stringify({
906
- recommendations: [
907
- 'zvndev.thenjs',
908
- ],
901
+ recommendations: [],
909
902
  }, null, 2) + '\n');
910
903
 
911
- // MCP configs for AI-powered debugging (what-devtools-mcp)
912
- const mcpConfig = JSON.stringify({
913
- mcpServers: {
914
- 'what-devtools': {
915
- command: 'npx',
916
- args: ['what-devtools-mcp'],
917
- },
918
- },
919
- }, null, 2) + '\n';
920
- writeFileSync(join(root, '.claude', 'mcp.json'), mcpConfig);
921
- writeFileSync(join(root, '.cursor', 'mcp.json'), mcpConfig);
922
-
923
904
  // src/main.jsx
924
905
  writeFileSync(join(root, 'src', 'main.jsx'), generateMainJsx(options));
925
906
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-what",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "Scaffold a new What Framework project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,8 +8,7 @@
8
8
  },
9
9
  "main": "index.js",
10
10
  "files": [
11
- "index.js",
12
- "templates"
11
+ "index.js"
13
12
  ],
14
13
  "keywords": [
15
14
  "create",
@@ -17,14 +16,14 @@
17
16
  "template",
18
17
  "what-framework"
19
18
  ],
20
- "author": "",
19
+ "author": "ZVN DEV (https://zvndev.com)",
21
20
  "license": "MIT",
22
21
  "repository": {
23
22
  "type": "git",
24
- "url": "https://github.com/zvndev/what-fw"
23
+ "url": "https://github.com/CelsianJs/whatfw"
25
24
  },
26
25
  "bugs": {
27
- "url": "https://github.com/zvndev/what-fw/issues"
26
+ "url": "https://github.com/CelsianJs/whatfw/issues"
28
27
  },
29
28
  "homepage": "https://whatfw.com"
30
29
  }