@contentful/app-scripts 2.0.0 → 2.0.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.
|
@@ -56,8 +56,8 @@ async function touchupAppManifest(localPath, settings, renameFunctionFile) {
|
|
|
56
56
|
const entry = appManifest["functions"][appManifest["functions"].length - 1];
|
|
57
57
|
entry.id = settings.name;
|
|
58
58
|
// the path always has a .js extension
|
|
59
|
-
entry.path =
|
|
60
|
-
entry.entryFile =
|
|
59
|
+
entry.path = `functions/${renameFunctionFile.replace('.ts', '.js')}`;
|
|
60
|
+
entry.entryFile = `functions/${renameFunctionFile}`;
|
|
61
61
|
await node_fs_1.default.writeFileSync(`${localPath}/${constants_1.CONTENTFUL_APP_MANIFEST}`, JSON.stringify(appManifest, null, 2));
|
|
62
62
|
}
|
|
63
63
|
function moveFilesToFinalDirectory(localTmpPath, localFunctionsPath) {
|
|
@@ -8,6 +8,7 @@ const chalk_1 = __importDefault(require("chalk"));
|
|
|
8
8
|
const ora_1 = __importDefault(require("ora"));
|
|
9
9
|
const get_app_info_1 = require("../get-app-info");
|
|
10
10
|
const validate_arguments_1 = require("../validate-arguments");
|
|
11
|
+
const constants_1 = require("../constants");
|
|
11
12
|
const requiredOptions = {
|
|
12
13
|
organizationId: '--organization-id',
|
|
13
14
|
definitionId: '--definition-id',
|
|
@@ -20,7 +21,7 @@ async function getCreateAppActionsArgs(settings) {
|
|
|
20
21
|
const appInfo = await (0, get_app_info_1.getAppInfo)(settings);
|
|
21
22
|
return {
|
|
22
23
|
host: settings.host || 'api.contentful.com',
|
|
23
|
-
manifestFile: settings.manifestFile,
|
|
24
|
+
manifestFile: settings.manifestFile || constants_1.DEFAULT_APP_MANIFEST_PATH,
|
|
24
25
|
accessToken: settings.token,
|
|
25
26
|
appDefinitionId: appInfo.definition.value,
|
|
26
27
|
organizationId: appInfo.organization.value,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/app-scripts",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "A collection of scripts for building Contentful Apps",
|
|
5
5
|
"author": "Contentful GmbH",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tiged": "^2.12.7",
|
|
68
68
|
"zod": "^3.24.1"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "ec5a1531a4898317c208685885d887fa943e013c",
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/adm-zip": "0.5.7",
|
|
73
73
|
"@types/analytics-node": "3.1.14",
|