create-vista-app 0.0.1 → 0.0.2

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/bin/vista.js CHANGED
@@ -13,7 +13,7 @@ import { Transform } from 'stream';
13
13
 
14
14
  import react from '@vitejs/plugin-react';
15
15
  import tailwindnorm from '@tailwindcss/vite';
16
- import { vistaPlugin } from '@vista/core/plugin';
16
+ import { vistaPlugin } from 'vista-core-js/plugin';
17
17
 
18
18
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
19
19
 
@@ -210,8 +210,8 @@ async function startDev() {
210
210
  resolve: {
211
211
  dedupe: ['react', 'react-dom'],
212
212
  alias: {
213
- // Dev Fix: Point @vista/core to source to enable HMR/Fast Refresh for framework internals
214
- '@vista/core': path.resolve(__dirname, '../../core/src')
213
+ // Dev Fix: Point vista-core-js to source to enable HMR/Fast Refresh for framework internals
214
+ 'vista-core-js': path.resolve(__dirname, '../../core/src')
215
215
  }
216
216
  },
217
217
  optimizeDeps: {
@@ -268,7 +268,7 @@ async function startDev() {
268
268
  window.__vite_plugin_react_preamble_installed__ = true;
269
269
  `;
270
270
 
271
- const { render } = await server.ssrLoadModule('@vista/core/entry-server');
271
+ const { render } = await server.ssrLoadModule('vista-core-js/entry-server');
272
272
 
273
273
  // FOUC Fix: Send Link Header to preload CSS immediately
274
274
  if (stylesheets.length > 0) {
@@ -369,7 +369,7 @@ async function build() {
369
369
  <meta charset="UTF-8" />
370
370
  </head>
371
371
  <body>
372
- <script type="module" src="@vista/core/entry-client"></script>
372
+ <script type="module" src="vista-core-js/entry-client"></script>
373
373
  </body>
374
374
  </html>`;
375
375
 
@@ -398,7 +398,7 @@ async function build() {
398
398
  outDir: path.resolve(dist, 'server'),
399
399
  emptyOutDir: true,
400
400
  rollupOptions: {
401
- input: '@vista/core/entry-server'
401
+ input: 'vista-core-js/entry-server'
402
402
  }
403
403
  },
404
404
  plugins: [react(), tailwindnorm(), vistaPlugin()]
@@ -448,7 +448,7 @@ async function start() {
448
448
 
449
449
  // In prod, we need to map the entry-client to the hashed file
450
450
  // For now, simpler approach: we rely on manifest or known entry?
451
- // The template index.html used @vista/core/entry-client.
451
+ // The template index.html used vista-core-js/entry-client.
452
452
  // Vite build produces a manifest.json.
453
453
  // Let's assume standard behavior for now:
454
454
  // bootstrapModules: ['/entry-client-hash.js']
@@ -468,7 +468,7 @@ async function start() {
468
468
  }
469
469
 
470
470
  // The manifest path key might be relative to project root or source root.
471
- // Vite defaults: "node_modules/@vista/core/src/entry-client.tsx" if externalized?
471
+ // Vite defaults: "node_modules/vista-core-js/src/entry-client.tsx" if externalized?
472
472
  // Or just "src/entry-client.tsx" if local.
473
473
  // Let's print keys if fails.
474
474
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vista-app",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "vista": "./bin/vista.js"
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@tailwindcss/vite": "^4.0.0-beta.9",
27
- "@vista/core": "^0.0.2",
27
+ "vista-core-js": "^0.0.2",
28
28
  "@vitejs/plugin-react": "^5.1.2",
29
29
  "compression": "^1.8.1",
30
30
  "express": "^5.2.1",
@@ -11,8 +11,8 @@
11
11
  "preview": "vite preview"
12
12
  },
13
13
  "dependencies": {
14
- "@vista/core": "^0.0.2",
15
- "create-vista-app": "^0.0.1",
14
+ "vista-core-js": "^0.0.2",
15
+ "vista": "npm:create-vista-app@latest",
16
16
  "react": "^18.3.1",
17
17
  "react-dom": "^18.3.1"
18
18
  },