@corva/create-app 0.60.0-2 → 0.60.0-rc.0

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.
@@ -13,7 +13,7 @@ const uiDependencies = {
13
13
  'lodash': '^4.17.4',
14
14
  'mapbox.js': '3.2.1',
15
15
  'moment': '2.29.4',
16
- 'moment-timezone': '0.5.23',
16
+ 'moment-timezone': '0.5.43',
17
17
  'react': '17.0.1',
18
18
  'react-dom': '17.0.1',
19
19
  };
@@ -109,7 +109,18 @@ export const resolveAppRuntime = (opts) => {
109
109
 
110
110
  return {
111
111
  language: 'python',
112
- isRuntimeAvailable: () => checkCliVersion(IS_WINDOWS ? `py -${version}` : 'python3', version),
112
+ isRuntimeAvailable: async () => {
113
+ if (!IS_WINDOWS) {
114
+ return checkCliVersion(`python${version}`, version);
115
+ }
116
+
117
+ return (
118
+ (await checkCliVersion(`py -${version}`, version)) ||
119
+ (await checkCliVersion('python', version)) ||
120
+ (await checkCliVersion('python3', version))
121
+ );
122
+ },
123
+
113
124
  packageManager: 'pip',
114
125
  version,
115
126
  semver: semverVersionsMapping.python[version],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/create-app",
3
- "version": "0.60.0-2",
3
+ "version": "0.60.0-rc.0",
4
4
  "private": false,
5
5
  "description": "Create an app to use it in CORVA.AI",
6
6
  "keywords": [