@gadmin2n/cli 0.0.132 → 0.0.133
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/actions/new.action.js +7 -0
- package/package.json +2 -2
package/actions/new.action.js
CHANGED
|
@@ -80,6 +80,13 @@ class NewAction extends abstract_action_1.AbstractAction {
|
|
|
80
80
|
catch (_a) {
|
|
81
81
|
// best-effort, never fatal
|
|
82
82
|
}
|
|
83
|
+
// npm strips .gitignore when packing, so the template ships it as
|
|
84
|
+
// `gitignore`. Rename it before git init so the repo tracks the right file.
|
|
85
|
+
const gitignoreSrc = (0, path_1.join)(projectAbsDir, 'gitignore');
|
|
86
|
+
const gitignoreDst = (0, path_1.join)(projectAbsDir, '.gitignore');
|
|
87
|
+
if (fs.existsSync(gitignoreSrc) && !fs.existsSync(gitignoreDst)) {
|
|
88
|
+
fs.renameSync(gitignoreSrc, gitignoreDst);
|
|
89
|
+
}
|
|
83
90
|
// Run git init BEFORE yarn install so that the template's `prepare`
|
|
84
91
|
// script (`cd .. && husky install`) can find the .git directory.
|
|
85
92
|
// Without this, husky install fails → yarn exits non-zero → CLI
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gadmin2n/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.133",
|
|
4
4
|
"description": "Gadmin - modern, fast, powerful node.js web framework (@cli)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@angular-devkit/core": "13.3.2",
|
|
48
48
|
"@angular-devkit/schematics": "13.3.2",
|
|
49
49
|
"@angular-devkit/schematics-cli": "13.3.2",
|
|
50
|
-
"@gadmin2n/schematics": "^0.0.
|
|
50
|
+
"@gadmin2n/schematics": "^0.0.105",
|
|
51
51
|
"abc": "^0.6.1",
|
|
52
52
|
"chalk": "3.0.0",
|
|
53
53
|
"chokidar": "3.5.3",
|