idcmd 0.0.3 → 0.0.5
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/package.json
CHANGED
|
@@ -12,7 +12,8 @@ const findTailwindInput = async (): Promise<string> => {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
const idcmdBuildEntry = (): string =>
|
|
15
|
-
|
|
15
|
+
// `src/build.ts` lives two levels up from `src/cli/commands/*`.
|
|
16
|
+
Bun.fileURLToPath(new URL("../../build.ts", import.meta.url));
|
|
16
17
|
|
|
17
18
|
export const buildCommand = async (): Promise<number> => {
|
|
18
19
|
const tailwindInput = await findTailwindInput();
|
package/src/cli/commands/dev.ts
CHANGED
|
@@ -25,7 +25,8 @@ const resolveTailwindOutput = async (): Promise<string> => {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
const idcmdServerEntry = (): string =>
|
|
28
|
-
|
|
28
|
+
// `src/server.ts` lives two levels up from `src/cli/commands/*`.
|
|
29
|
+
Bun.fileURLToPath(new URL("../../server.ts", import.meta.url));
|
|
29
30
|
|
|
30
31
|
const installSignalHandlers = (shutdown: () => void): void => {
|
|
31
32
|
process.on("SIGINT", shutdown);
|
|
@@ -45,7 +46,8 @@ export const devCommand = async (flags: DevFlags): Promise<number> => {
|
|
|
45
46
|
tailwindInput,
|
|
46
47
|
"-o",
|
|
47
48
|
tailwindOutput,
|
|
48
|
-
|
|
49
|
+
// Tailwind v4 exits watch mode when stdin is closed unless `always` is specified.
|
|
50
|
+
"--watch=always",
|
|
49
51
|
],
|
|
50
52
|
{ stderr: "inherit", stdout: "inherit" }
|
|
51
53
|
);
|