@hubspot/cli 4.1.4-beta.2 → 4.1.5-beta.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.
|
@@ -27,7 +27,10 @@ const invalidPath = src => {
|
|
|
27
27
|
|
|
28
28
|
exports.handler = async options => {
|
|
29
29
|
const src = path.resolve(getCwd(), options.src);
|
|
30
|
-
const
|
|
30
|
+
const themeJSONPath = getThemeJSONPath(src);
|
|
31
|
+
const projectRoot = themeJSONPath
|
|
32
|
+
? path.dirname(themeJSONPath)
|
|
33
|
+
: path.dirname(getCwd());
|
|
31
34
|
let stats;
|
|
32
35
|
try {
|
|
33
36
|
stats = fs.statSync(src);
|
package/commands/upload.js
CHANGED
|
@@ -80,7 +80,9 @@ exports.handler = async options => {
|
|
|
80
80
|
}
|
|
81
81
|
// Check for theme.json file and determine the root path for the project based on it if it exists
|
|
82
82
|
const themeJsonPath = getThemeJSONPath(absoluteSrcPath);
|
|
83
|
-
const projectRoot = themeJsonPath
|
|
83
|
+
const projectRoot = themeJsonPath
|
|
84
|
+
? path.dirname(themeJsonPath)
|
|
85
|
+
: path.dirname(getCwd());
|
|
84
86
|
const convertFields =
|
|
85
87
|
projectRoot &&
|
|
86
88
|
isConvertableFieldJs(projectRoot, absoluteSrcPath, options.convertFields);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cli",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.5-beta.0",
|
|
4
4
|
"description": "CLI for working with HubSpot",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"url": "https://github.com/HubSpot/hubspot-cms-tools"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@hubspot/cli-lib": "4.1.
|
|
12
|
-
"@hubspot/serverless-dev-runtime": "4.1.
|
|
11
|
+
"@hubspot/cli-lib": "4.1.5-beta.0",
|
|
12
|
+
"@hubspot/serverless-dev-runtime": "4.1.5-beta.0",
|
|
13
13
|
"archiver": "^5.3.0",
|
|
14
14
|
"chalk": "^4.1.2",
|
|
15
15
|
"express": "^4.17.1",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "1a595ed45ec231ebfc1ed96c084e879f90387a92"
|
|
41
41
|
}
|