create-nexa-app 1.0.8 → 1.0.10

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/bin/nexa.js +3 -3
  2. package/package.json +1 -1
package/bin/nexa.js CHANGED
@@ -820,8 +820,8 @@ coverage/
820
820
  .replace(/href=["']\/favicon\.png["']/i, 'href="./favicon.png"')
821
821
  .replace(/href=["']\.\/nexa\.svg["']/i, 'href="./nexa.svg"')
822
822
  .replace(/href=["']\/nexa\.svg["']/i, 'href="./nexa.svg"')
823
- .replace(/src=["']\.\/src\/main\.jsx["']/i, 'src="/src/main.jsx"')
824
- .replace(/src=["']src\/main\.jsx["']/i, 'src="/src/main.jsx"');
823
+ .replace(/src=["']\.\/src\/main\.jsx["']/i, 'src="./src/main.jsx"')
824
+ .replace(/src=["']\/src\/main\.jsx["']/i, 'src="./src/main.jsx"');
825
825
 
826
826
  writeFileSafe(rootIndexPath, patchedIndex);
827
827
  fs.unlinkSync(publicIndexPath);
@@ -846,7 +846,7 @@ coverage/
846
846
  </head>
847
847
  <body>
848
848
  <div id="root"></div>
849
- <script type="module" src="/src/main.jsx"></script>
849
+ <script type="module" src="./src/main.jsx"></script>
850
850
  </body>
851
851
  </html>
852
852
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nexa-app",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Create a new Nexa app with prebuilt structure, PWA support, and modern React/Vite setup",
5
5
  "bin": {
6
6
  "create-nexa-app": "bin/nexa.js",