revine 0.3.0 → 0.3.1

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.
@@ -13,8 +13,8 @@ export async function setupTailwind(projectDir) {
13
13
  await fs.ensureDir(cssDir);
14
14
  await fs.writeFile(path.join(cssDir, "global.css"), "@import 'tailwindcss';\n");
15
15
  // Prepend the CSS import to src/main.tsx
16
- const mainTsxPath = path.join(projectDir, "src", "main.tsx");
16
+ const rootTsxPath = path.join(projectDir, "src", "root.tsx");
17
17
  const mainContent = `import './styles/global.css';\n` +
18
- (await fs.readFile(mainTsxPath, "utf-8"));
19
- await fs.writeFile(mainTsxPath, mainContent);
18
+ (await fs.readFile(rootTsxPath, "utf-8"));
19
+ await fs.writeFile(rootTsxPath, mainContent);
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revine",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A react framework, but better.",
5
5
  "license": "ISC",
6
6
  "author": "Rachit Bharadwaj",
@@ -26,9 +26,9 @@ export async function setupTailwind(projectDir: string) {
26
26
  );
27
27
 
28
28
  // Prepend the CSS import to src/main.tsx
29
- const mainTsxPath = path.join(projectDir, "src", "main.tsx");
29
+ const rootTsxPath = path.join(projectDir, "src", "root.tsx");
30
30
  const mainContent =
31
31
  `import './styles/global.css';\n` +
32
- (await fs.readFile(mainTsxPath, "utf-8"));
33
- await fs.writeFile(mainTsxPath, mainContent);
32
+ (await fs.readFile(rootTsxPath, "utf-8"));
33
+ await fs.writeFile(rootTsxPath, mainContent);
34
34
  }
@@ -11,7 +11,7 @@
11
11
  </head>
12
12
  <body>
13
13
  <div id="root"></div>
14
- <script type="module" src="/src/main.tsx"></script>
14
+ <script type="module" src="/src/root.tsx"></script>
15
15
  <noscript>
16
16
  <h1>This application requires JavaScript to run.</h1>
17
17
  </noscript>
File without changes