@contentful/create-contentful-app 1.3.1 → 1.3.2
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/README.md +1 -1
- package/lib/index.js +1 -1
- package/lib/logger.js +9 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ To start developing your first app, run:
|
|
|
17
17
|
npx create-contentful-app my-first-app
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-

|
|
21
21
|
|
|
22
22
|
## Bootstrap
|
|
23
23
|
|
package/lib/index.js
CHANGED
|
@@ -94,7 +94,7 @@ function initProject(appName, options) {
|
|
|
94
94
|
successMessage(fullAppFolder);
|
|
95
95
|
}
|
|
96
96
|
catch (err) {
|
|
97
|
-
(0, logger_1.error)(`Failed to create ${appName}`, err
|
|
97
|
+
(0, logger_1.error)(`Failed to create ${appName}`, err);
|
|
98
98
|
process.exit(1);
|
|
99
99
|
}
|
|
100
100
|
});
|
package/lib/logger.js
CHANGED
|
@@ -10,15 +10,18 @@ function warn(message) {
|
|
|
10
10
|
}
|
|
11
11
|
exports.warn = warn;
|
|
12
12
|
function error(message, error) {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
console.log(`${chalk_1.default.red('Error:')} ${message}`);
|
|
14
|
+
if (error === undefined) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
else if (error instanceof Error) {
|
|
18
|
+
console.log();
|
|
15
19
|
console.log(error);
|
|
16
20
|
}
|
|
17
21
|
else {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
`);
|
|
22
|
+
const strigifiedError = String(error);
|
|
23
|
+
console.log();
|
|
24
|
+
console.log(`${strigifiedError.startsWith('Error: ') ? strigifiedError.substring(7) : strigifiedError}`);
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
exports.error = error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/create-contentful-app",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "A template for building Contentful Apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contentful",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"@types/tildify": "^2.0.2",
|
|
65
65
|
"@types/validate-npm-package-name": "^3.0.3"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "257b55c95bf7ec19f5d998fad0ed7d7367a3beb4"
|
|
68
68
|
}
|