mick-templates 1.1.7 → 1.1.8

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": "mick-templates",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "cli tool for creating projects from templates",
5
5
  "bin": {
6
6
  "mick-templates": "bin/cli.js"
package/src/app.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import { existsSync, readdirSync } from "node:fs";
2
- import { useCallback, useEffect, useState } from "react";
2
+ import React, { useCallback, useEffect, useState } from "react";
3
3
  import { LanguageSelect } from "./components/language-select.js";
4
4
  import { OverwritePrompt } from "./components/overwrite-prompt.js";
5
5
  import { Status } from "./components/status.js";
@@ -1,5 +1,6 @@
1
1
  import { Box, Text } from "ink";
2
2
  import SelectInput from "ink-select-input";
3
+ import React from "react";
3
4
  import { LANGUAGE_OPTIONS } from "../lib/constants.js";
4
5
  import type { Language } from "../lib/template.js";
5
6
 
@@ -1,5 +1,6 @@
1
1
  import { Box, Text } from "ink";
2
2
  import SelectInput from "ink-select-input";
3
+ import React from "react";
3
4
 
4
5
  interface Props {
5
6
  onSelect: (overwrite: boolean) => void;
@@ -1,4 +1,5 @@
1
1
  import { Text } from "ink";
2
+ import React from "react";
2
3
 
3
4
  interface Props {
4
5
  status: "processing" | "done" | "error";
package/src/index.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bun
2
-
3
2
  import { Box, render, Text } from "ink";
3
+ import React from "react";
4
4
  import { App } from "./app.js";
5
5
  import { LANGUAGE_OPTIONS } from "./lib/constants.js";
6
6
  import { type Language, listTemplates } from "./lib/template.js";