create-what 0.1.2 → 0.1.3

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 (2) hide show
  1. package/index.js +5 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -55,6 +55,7 @@ const pkgDeps = {
55
55
  const pkgDevDeps = useJSX
56
56
  ? {
57
57
  'what-compiler': '^0.1.0',
58
+ '@babel/core': '^7.23.0',
58
59
  'vite': '^5.0.0',
59
60
  }
60
61
  : {};
@@ -107,9 +108,9 @@ export default {
107
108
  };
108
109
  `);
109
110
 
110
- // --- src/index.html ---
111
- const appScript = useJSX ? '/app.jsx' : '/app.js';
112
- writeFileSync(join(root, 'src/index.html'), `<!DOCTYPE html>
111
+ // --- index.html (root — required by Vite) ---
112
+ const appScript = useJSX ? '/src/app.jsx' : '/src/app.js';
113
+ writeFileSync(join(root, 'index.html'), `<!DOCTYPE html>
113
114
  <html lang="en">
114
115
  <head>
115
116
  <meta charset="UTF-8">
@@ -433,8 +434,8 @@ ${name}/
433
434
  layouts/ # Page layouts
434
435
  islands/ # Hydrated interactive islands
435
436
  ${useJSX ? ' app.jsx # App entry point (JSX)' : ' app.js # App entry point'}
436
- index.html # HTML shell
437
437
  public/ # Static assets
438
+ index.html # HTML shell (Vite entry)
438
439
  what.config.js # Framework configuration
439
440
  ${useJSX ? ' vite.config.js # Vite + what-compiler plugin\n' : ''} package.json
440
441
  \`\`\`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-what",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Scaffold a new What Framework project",
5
5
  "type": "module",
6
6
  "bin": {