@contentful/create-contentful-app 0.15.4 → 0.15.7

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.
Files changed (2) hide show
  1. package/lib/index.js +4 -2
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -7,7 +7,7 @@ const spawn = require('cross-spawn');
7
7
  const path = require('path');
8
8
  const tildify = require('tildify');
9
9
  const { createAppDefinition } = require('@contentful/app-scripts');
10
- const { version } = require('../package.json');
10
+ const packageJson = require('../package.json');
11
11
 
12
12
  const command = process.argv[2];
13
13
  const appFolder = process.argv[3];
@@ -19,7 +19,9 @@ function getTemplate() {
19
19
  const templatePkg = '@contentful/cra-template-create-contentful-app';
20
20
 
21
21
  if (!process.env.USE_LINKED_TEMPLATE) {
22
- return `${templatePkg}@${version}`;
22
+ const templateVersion =
23
+ packageJson.dependencies['@contentful/cra-template-create-contentful-app'].slice(1);
24
+ return `${templatePkg}@${templateVersion}`;
23
25
  }
24
26
 
25
27
  const linkedTemplatePath = path.relative(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/create-contentful-app",
3
- "version": "0.15.4",
3
+ "version": "0.15.7",
4
4
  "description": "A template for building Contentful Apps",
5
5
  "author": "Contentful GmbH",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
32
32
  },
33
33
  "dependencies": {
34
- "@contentful/app-scripts": "^0.15.2",
34
+ "@contentful/app-scripts": "^0.15.4",
35
35
  "@contentful/cra-template-create-contentful-app": "^0.15.3",
36
36
  "chalk": "^4.1.0",
37
37
  "contentful-management": "^8.0.0",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "b8a9d4817701ad7f76aaa7a4e2d57081c70d08a4"
58
+ "gitHead": "f33833bef37748cb1989ea735580fda6f7e7ff40"
59
59
  }