phpxui 0.1.0 → 0.1.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.
|
@@ -15,9 +15,9 @@ const path_1 = __importDefault(require("path"));
|
|
|
15
15
|
*/
|
|
16
16
|
function copyTailwindCss(force = false) {
|
|
17
17
|
// Path to the CSS bundled with the CLI
|
|
18
|
-
const source = path_1.default.resolve(__dirname, "../css/
|
|
18
|
+
const source = path_1.default.resolve(__dirname, "../css/globals.css");
|
|
19
19
|
// Path inside the user’s project
|
|
20
|
-
const target = path_1.default.resolve(process.cwd(), "src/app/
|
|
20
|
+
const target = path_1.default.resolve(process.cwd(), "src/app/globals.css");
|
|
21
21
|
if (!force && fs_extra_1.default.existsSync(target)) {
|
|
22
22
|
return false; // skip quietly
|
|
23
23
|
}
|
package/dist/index.js
CHANGED
|
@@ -63,7 +63,7 @@ const CORE_COMPONENTS = ["Slot", "Portal"];
|
|
|
63
63
|
const cssUpdated = (0, copy_tailwind_1.copyTailwindCss)(isFirstRun /* ignore flags.force here */);
|
|
64
64
|
if (cssUpdated) {
|
|
65
65
|
const relCss = path_1.default
|
|
66
|
-
.relative(process.cwd(), "src/app/
|
|
66
|
+
.relative(process.cwd(), "src/app/globals.css")
|
|
67
67
|
.replace(/\\/g, "/");
|
|
68
68
|
console.log(chalk_1.default.green(isFirstRun
|
|
69
69
|
? `✔ Installed base Tailwind CSS → ${relCss}`
|
package/package.json
CHANGED
|
File without changes
|