@geekmidas/cli 0.27.0 ā 0.28.0
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/dist/index.cjs +25 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +25 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/init/generators/models.ts +2 -11
- package/src/init/index.ts +15 -0
package/dist/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ import prompts from "prompts";
|
|
|
26
26
|
|
|
27
27
|
//#region package.json
|
|
28
28
|
var name = "@geekmidas/cli";
|
|
29
|
-
var version = "0.
|
|
29
|
+
var version = "0.28.0";
|
|
30
30
|
var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
|
|
31
31
|
var private$1 = false;
|
|
32
32
|
var type = "module";
|
|
@@ -4945,21 +4945,8 @@ function generateModelsPackage(options) {
|
|
|
4945
4945
|
version: "0.0.1",
|
|
4946
4946
|
private: true,
|
|
4947
4947
|
type: "module",
|
|
4948
|
-
exports: {
|
|
4949
|
-
|
|
4950
|
-
types: "./dist/index.d.ts",
|
|
4951
|
-
import: "./dist/index.js"
|
|
4952
|
-
},
|
|
4953
|
-
"./*": {
|
|
4954
|
-
types: "./dist/*.d.ts",
|
|
4955
|
-
import: "./dist/*.js"
|
|
4956
|
-
}
|
|
4957
|
-
},
|
|
4958
|
-
scripts: {
|
|
4959
|
-
build: "tsc",
|
|
4960
|
-
"build:watch": "tsc --watch",
|
|
4961
|
-
typecheck: "tsc --noEmit"
|
|
4962
|
-
},
|
|
4948
|
+
exports: { "./*": "./src/*.ts" },
|
|
4949
|
+
scripts: { typecheck: "tsc --noEmit" },
|
|
4963
4950
|
dependencies: { zod: "~4.1.0" },
|
|
4964
4951
|
devDependencies: { typescript: "~5.8.2" }
|
|
4965
4952
|
};
|
|
@@ -6789,6 +6776,28 @@ async function initCommand(projectName, options = {}) {
|
|
|
6789
6776
|
});
|
|
6790
6777
|
} catch {}
|
|
6791
6778
|
}
|
|
6779
|
+
console.log("\nš¦ Initializing git repository...\n");
|
|
6780
|
+
try {
|
|
6781
|
+
execSync("git init", {
|
|
6782
|
+
cwd: targetDir,
|
|
6783
|
+
stdio: "pipe"
|
|
6784
|
+
});
|
|
6785
|
+
execSync("git branch -M main", {
|
|
6786
|
+
cwd: targetDir,
|
|
6787
|
+
stdio: "pipe"
|
|
6788
|
+
});
|
|
6789
|
+
execSync("git add .", {
|
|
6790
|
+
cwd: targetDir,
|
|
6791
|
+
stdio: "pipe"
|
|
6792
|
+
});
|
|
6793
|
+
execSync("git commit -m \"š Project created with @geekmidas/toolbox\"", {
|
|
6794
|
+
cwd: targetDir,
|
|
6795
|
+
stdio: "pipe"
|
|
6796
|
+
});
|
|
6797
|
+
console.log(" Initialized git repository on branch main");
|
|
6798
|
+
} catch {
|
|
6799
|
+
console.log(" Could not initialize git repository (git may not be installed)");
|
|
6800
|
+
}
|
|
6792
6801
|
printNextSteps(name$1, templateOptions, pkgManager);
|
|
6793
6802
|
}
|
|
6794
6803
|
/**
|