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.
package/dist/setup/tailwind.js
CHANGED
|
@@ -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
|
|
16
|
+
const rootTsxPath = path.join(projectDir, "src", "root.tsx");
|
|
17
17
|
const mainContent = `import './styles/global.css';\n` +
|
|
18
|
-
(await fs.readFile(
|
|
19
|
-
await fs.writeFile(
|
|
18
|
+
(await fs.readFile(rootTsxPath, "utf-8"));
|
|
19
|
+
await fs.writeFile(rootTsxPath, mainContent);
|
|
20
20
|
}
|
package/package.json
CHANGED
package/src/setup/tailwind.ts
CHANGED
|
@@ -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
|
|
29
|
+
const rootTsxPath = path.join(projectDir, "src", "root.tsx");
|
|
30
30
|
const mainContent =
|
|
31
31
|
`import './styles/global.css';\n` +
|
|
32
|
-
(await fs.readFile(
|
|
33
|
-
await fs.writeFile(
|
|
32
|
+
(await fs.readFile(rootTsxPath, "utf-8"));
|
|
33
|
+
await fs.writeFile(rootTsxPath, mainContent);
|
|
34
34
|
}
|
package/template/index.html
CHANGED
|
File without changes
|