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