@graphprotocol/graph-cli 0.67.2 → 0.67.3-alpha-20240124142956-af00244
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 +8 -0
- package/dist/commands/init.js +18 -12
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
+
## 0.67.3-alpha-20240124142956-af00244
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1574](https://github.com/graphprotocol/graph-tooling/pull/1574)
|
|
8
|
+
[`af00244`](https://github.com/graphprotocol/graph-tooling/commit/af002449068bda0b9edc42b1f78e37f22dd39231)
|
|
9
|
+
Thanks [@saihaj](https://github.com/saihaj)! - add debug logs for git init flow
|
|
10
|
+
|
|
3
11
|
## 0.67.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/commands/init.js
CHANGED
|
@@ -743,20 +743,26 @@ const initRepository = async (directory) => await (0, spinner_1.withSpinner)(`In
|
|
|
743
743
|
if (gluegun_1.filesystem.exists(gitDir)) {
|
|
744
744
|
gluegun_1.filesystem.remove(gitDir);
|
|
745
745
|
}
|
|
746
|
-
|
|
747
|
-
await
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
746
|
+
try {
|
|
747
|
+
if (await isInRepo()) {
|
|
748
|
+
await gluegun_1.system.run('git add --all', { cwd: directory });
|
|
749
|
+
await gluegun_1.system.run('git commit -m "Initialize subgraph"', {
|
|
750
|
+
cwd: directory,
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
else {
|
|
754
|
+
await gluegun_1.system.run('git init', { cwd: directory });
|
|
755
|
+
await gluegun_1.system.run('git add --all', { cwd: directory });
|
|
756
|
+
await gluegun_1.system.run('git commit -m "Initial commit"', {
|
|
757
|
+
cwd: directory,
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
return true;
|
|
751
761
|
}
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
await gluegun_1.system.run('git commit -m "Initial commit"', {
|
|
756
|
-
cwd: directory,
|
|
757
|
-
});
|
|
762
|
+
catch (e) {
|
|
763
|
+
initDebugger.extend('initRepository')('error: %O', e);
|
|
764
|
+
throw e;
|
|
758
765
|
}
|
|
759
|
-
return true;
|
|
760
766
|
});
|
|
761
767
|
const installDependencies = async (directory, commands) => await (0, spinner_1.withSpinner)(`Install dependencies with ${commands.install}`, `Failed to install dependencies`, `Warnings while installing dependencies`, async () => {
|
|
762
768
|
if (process.env.GRAPH_CLI_TESTS) {
|
package/oclif.manifest.json
CHANGED