@contentful/create-contentful-app 1.16.1 → 1.16.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.
@@ -25,19 +25,19 @@ const addBuildCommand = (0, package_1.getAddBuildCommandFn)({
25
25
  command: 'node build-functions.js',
26
26
  });
27
27
  const VALID_FUNCTION_TEMPLATES_DIRS = [
28
- 'templates',
28
+ 'external-references',
29
29
  'appevent-filter',
30
30
  'appevent-handler',
31
31
  'appevent-transformation',
32
32
  ];
33
33
  function functionTemplateFromName(functionName) {
34
34
  let dirName = functionName;
35
- if (functionName === 'external-references')
36
- dirName = 'templates'; // backwards compatible for the apps repo examples folder for delivery functions (external-references)
37
35
  if (!VALID_FUNCTION_TEMPLATES_DIRS.includes(dirName)) {
38
36
  console.error(`Invalid function template: ${functionName}. Must be one of ${VALID_FUNCTION_TEMPLATES_DIRS.join(', ')}.`);
39
37
  process.exit(1);
40
38
  }
39
+ if (functionName === 'external-references')
40
+ dirName = 'templates'; // backwards compatible for the apps repo examples folder for delivery functions (external-references)
41
41
  return dirName;
42
42
  }
43
43
  function cloneFunction(destination, templateIsJavascript, functionName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/create-contentful-app",
3
- "version": "1.16.1",
3
+ "version": "1.16.2",
4
4
  "description": "A template for building Contentful Apps",
5
5
  "keywords": [
6
6
  "contentful",
@@ -81,5 +81,5 @@
81
81
  "sinon-chai": "^3.7.0",
82
82
  "ts-node": "^10.9.1"
83
83
  },
84
- "gitHead": "a4a02a44a4231bfe52c093625a356889f53e5859"
84
+ "gitHead": "3121b601d52eb45be574db0f623830216684dd9c"
85
85
  }