@contentful/app-scripts 1.0.2 → 1.1.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.
|
@@ -6,7 +6,7 @@ const { createClient } = require('contentful-management');
|
|
|
6
6
|
async function activateBundle({ accessToken, organization, definition, bundleId }) {
|
|
7
7
|
const activationSpinner = ora('Activating your bundle').start();
|
|
8
8
|
const plainClient = createClient({ accessToken }, { type: 'plain' });
|
|
9
|
-
const defaultLocations = [{location: 'dialog'}];
|
|
9
|
+
const defaultLocations = [{ location: 'dialog' }];
|
|
10
10
|
|
|
11
11
|
const currentDefinition = await plainClient.appDefinition.get({
|
|
12
12
|
appDefinitionId: definition.value,
|
|
@@ -44,12 +44,18 @@ async function activateBundle({ accessToken, organization, definition, bundleId
|
|
|
44
44
|
|
|
45
45
|
console.log(`
|
|
46
46
|
${chalk.cyan('Success!')} Your app bundle was activated for ${chalk.cyan(
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
definition.name
|
|
48
|
+
)} in ${chalk.bold(organization.name)}.
|
|
49
49
|
|
|
50
|
-
Bundle Id: ${chalk.yellow(bundleId)}
|
|
51
|
-
`
|
|
52
|
-
|
|
50
|
+
Bundle Id: ${chalk.yellow(bundleId)}`);
|
|
51
|
+
console.log(`
|
|
52
|
+
----------------------------
|
|
53
|
+
|
|
54
|
+
Ready to share your app with the world? Submit it to the Developer Showcase (${chalk.cyan(
|
|
55
|
+
'https://ctfl.io/dev-showcase'
|
|
56
|
+
)}) or our Marketplace (${chalk.cyan('https://ctfl.io/submit-app')}).
|
|
57
|
+
|
|
58
|
+
`);
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
module.exports = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/app-scripts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "A collection of scripts for building Contentful Apps",
|
|
5
5
|
"author": "Contentful GmbH",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"open": "^8.0.5",
|
|
61
61
|
"ora": "^5.4.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "36e8af239a193298f18bc7aefceea53cc6d9bb97"
|
|
64
64
|
}
|