@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 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
@@ -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
- if (await isInRepo()) {
747
- await gluegun_1.system.run('git add --all', { cwd: directory });
748
- await gluegun_1.system.run('git commit -m "Initialize subgraph"', {
749
- cwd: directory,
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
- else {
753
- await gluegun_1.system.run('git init', { cwd: directory });
754
- await gluegun_1.system.run('git add --all', { cwd: directory });
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) {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.67.2",
2
+ "version": "0.67.3-alpha-20240124142956-af00244",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.67.2",
3
+ "version": "0.67.3-alpha-20240124142956-af00244",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {