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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idcmd",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rustydotwtf/idcmd"
@@ -12,7 +12,8 @@ const findTailwindInput = async (): Promise<string> => {
12
12
  };
13
13
 
14
14
  const idcmdBuildEntry = (): string =>
15
- Bun.fileURLToPath(new URL("../build.ts", import.meta.url));
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();
@@ -25,7 +25,8 @@ const resolveTailwindOutput = async (): Promise<string> => {
25
25
  };
26
26
 
27
27
  const idcmdServerEntry = (): string =>
28
- Bun.fileURLToPath(new URL("../server.ts", import.meta.url));
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
- "--watch",
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
  );