@sprucelabs/spruce-skill-utils 32.1.9 → 32.1.10

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.
@@ -108,10 +108,14 @@ const diskUtil = {
108
108
  if (isInTypescript) {
109
109
  return 'ts';
110
110
  }
111
- const isInGoProject = this.doesDirExist(this.resolvePath(cwd, 'go.mod'));
111
+ const isInGoProject = this.doesFileExist(this.resolvePath(cwd, 'go.mod'));
112
112
  if (isInGoProject) {
113
113
  return 'go';
114
114
  }
115
+ const isChildOfGoProject = this.doesFileExist(this.resolvePath(cwd, '../go.mod'));
116
+ if (isChildOfGoProject) {
117
+ return 'go';
118
+ }
115
119
  const isInJsProject = this.doesFileExist(this.resolvePath(cwd, 'package.json'));
116
120
  if (isInJsProject) {
117
121
  return 'js';
@@ -102,10 +102,14 @@ const diskUtil = {
102
102
  if (isInTypescript) {
103
103
  return 'ts';
104
104
  }
105
- const isInGoProject = this.doesDirExist(this.resolvePath(cwd, 'go.mod'));
105
+ const isInGoProject = this.doesFileExist(this.resolvePath(cwd, 'go.mod'));
106
106
  if (isInGoProject) {
107
107
  return 'go';
108
108
  }
109
+ const isChildOfGoProject = this.doesFileExist(this.resolvePath(cwd, '../go.mod'));
110
+ if (isChildOfGoProject) {
111
+ return 'go';
112
+ }
109
113
  const isInJsProject = this.doesFileExist(this.resolvePath(cwd, 'package.json'));
110
114
  if (isInJsProject) {
111
115
  return 'js';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "32.1.9",
6
+ "version": "32.1.10",
7
7
  "skill": {
8
8
  "namespace": "skill-utils",
9
9
  "upgradeIgnoreList": [
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@sprucelabs/globby": "^2.0.506",
61
- "@sprucelabs/schema": "^32.3.2",
61
+ "@sprucelabs/schema": "^32.3.8",
62
62
  "chalk": "^4.1.2",
63
63
  "dotenv": "^17.2.3",
64
64
  "fs-extra": "^11.3.2",
@@ -67,12 +67,12 @@
67
67
  },
68
68
  "devDependencies": {
69
69
  "@sprucelabs/esm-postbuild": "^7.0.47",
70
- "@sprucelabs/jest-json-reporter": "^9.0.68",
70
+ "@sprucelabs/jest-json-reporter": "^9.0.69",
71
71
  "@sprucelabs/jest-sheets-reporter": "^4.0.49",
72
72
  "@sprucelabs/resolve-path-aliases": "^3.0.29",
73
73
  "@sprucelabs/semantic-release": "^5.0.2",
74
74
  "@sprucelabs/test": "^10.0.25",
75
- "@sprucelabs/test-utils": "^6.0.110",
75
+ "@sprucelabs/test-utils": "^6.0.113",
76
76
  "@types/fs-extra": "^11.0.4",
77
77
  "@types/inflection": "^2.0.0",
78
78
  "@types/lodash": "^4.17.20",