@mayrlabs/setup-project 0.1.5 → 0.1.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mayrlabs/setup-project
2
2
 
3
+ ## 0.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - ed8f000: Fixed lint-staged
8
+
9
+ ## 0.1.6
10
+
11
+ ### Patch Changes
12
+
13
+ - 7a92694: Fixed git check commit message
14
+
3
15
  ## 0.1.5
4
16
 
5
17
  ### Patch Changes
package/dist/index.js CHANGED
@@ -80,14 +80,14 @@ var TOOL_OPTIONS = [
80
80
  { value: "husky", label: "Husky" },
81
81
  { value: "formatter", label: "Formatter (Prettier/Oxfmt)" },
82
82
  { value: "linter", label: "Linter (Eslint/Oxlint)" },
83
- { value: "lint-staged", label: "Lint-staged" },
83
+ { value: "lintStaged", label: "Lint-staged" },
84
84
  { value: "env", label: "Env Validation (@t3-oss/env)" },
85
85
  { value: "test", label: "Test Runner (Vitest/Jest)" },
86
86
  { value: "editorConfig", label: "EditorConfig" },
87
87
  { value: "license", label: "License" }
88
88
  ];
89
89
  var HUSKY_HOOK_OPTIONS = [
90
- { value: "lint-staged", label: "lint-staged" },
90
+ { value: "lintStaged", label: "lint-staged" },
91
91
  { value: "custom", label: "Custom script" },
92
92
  { value: "none", label: "None" }
93
93
  ];
@@ -188,7 +188,7 @@ async function promptHusky(config2) {
188
188
  );
189
189
  const huskyConfig = config2.get("husky");
190
190
  huskyConfig.options = { hookType };
191
- if (hookType === "lint-staged") {
191
+ if (hookType === "lintStaged") {
192
192
  config2.enableTool("lintStaged");
193
193
  } else if (hookType === "custom") {
194
194
  const script = await withCancelHandling(
@@ -214,7 +214,7 @@ async function installHusky(config2) {
214
214
  const husky = config2.get("husky");
215
215
  const hookType = husky.options.hookType;
216
216
  const customScript = husky.options.customScript;
217
- if (hookType === "lint-staged") {
217
+ if (hookType === "lintStaged") {
218
218
  await import_fs_extra.default.outputFile(".husky/pre-commit", "npx lint-staged\n", {
219
219
  mode: 493
220
220
  });
@@ -822,7 +822,7 @@ async function gitCheck() {
822
822
  message: "Your working directory is dirty. Would you like to commit changes before proceeding?"
823
823
  });
824
824
  if (shouldCommit) {
825
- const message = (0, import_prompts11.text)({
825
+ const message = await (0, import_prompts11.text)({
826
826
  message: "Enter commit message:",
827
827
  placeholder: "wip: pre-setup commit",
828
828
  validate(value) {
@@ -847,7 +847,7 @@ var import_figlet = __toESM(require("figlet"));
847
847
  // package.json
848
848
  var package_default = {
849
849
  name: "@mayrlabs/setup-project",
850
- version: "0.1.5",
850
+ version: "0.1.7",
851
851
  description: "Interactive CLI to setup project tools",
852
852
  private: false,
853
853
  publishConfig: {
package/dist/index.mjs CHANGED
@@ -75,14 +75,14 @@ var init_options = __esm({
75
75
  { value: "husky", label: "Husky" },
76
76
  { value: "formatter", label: "Formatter (Prettier/Oxfmt)" },
77
77
  { value: "linter", label: "Linter (Eslint/Oxlint)" },
78
- { value: "lint-staged", label: "Lint-staged" },
78
+ { value: "lintStaged", label: "Lint-staged" },
79
79
  { value: "env", label: "Env Validation (@t3-oss/env)" },
80
80
  { value: "test", label: "Test Runner (Vitest/Jest)" },
81
81
  { value: "editorConfig", label: "EditorConfig" },
82
82
  { value: "license", label: "License" }
83
83
  ];
84
84
  HUSKY_HOOK_OPTIONS = [
85
- { value: "lint-staged", label: "lint-staged" },
85
+ { value: "lintStaged", label: "lint-staged" },
86
86
  { value: "custom", label: "Custom script" },
87
87
  { value: "none", label: "None" }
88
88
  ];
@@ -195,7 +195,7 @@ async function promptHusky(config2) {
195
195
  );
196
196
  const huskyConfig = config2.get("husky");
197
197
  huskyConfig.options = { hookType };
198
- if (hookType === "lint-staged") {
198
+ if (hookType === "lintStaged") {
199
199
  config2.enableTool("lintStaged");
200
200
  } else if (hookType === "custom") {
201
201
  const script = await withCancelHandling(
@@ -221,7 +221,7 @@ async function installHusky(config2) {
221
221
  const husky = config2.get("husky");
222
222
  const hookType = husky.options.hookType;
223
223
  const customScript = husky.options.customScript;
224
- if (hookType === "lint-staged") {
224
+ if (hookType === "lintStaged") {
225
225
  await fs.outputFile(".husky/pre-commit", "npx lint-staged\n", {
226
226
  mode: 493
227
227
  });
@@ -935,7 +935,7 @@ async function gitCheck() {
935
935
  message: "Your working directory is dirty. Would you like to commit changes before proceeding?"
936
936
  });
937
937
  if (shouldCommit) {
938
- const message = text4({
938
+ const message = await text4({
939
939
  message: "Enter commit message:",
940
940
  placeholder: "wip: pre-setup commit",
941
941
  validate(value) {
@@ -966,7 +966,7 @@ var init_package = __esm({
966
966
  "package.json"() {
967
967
  package_default = {
968
968
  name: "@mayrlabs/setup-project",
969
- version: "0.1.5",
969
+ version: "0.1.7",
970
970
  description: "Interactive CLI to setup project tools",
971
971
  private: false,
972
972
  publishConfig: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mayrlabs/setup-project",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Interactive CLI to setup project tools",
5
5
  "private": false,
6
6
  "publishConfig": {