@corva/create-app 0.65.0-3 → 0.65.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.
package/lib/commands/create.js
CHANGED
|
@@ -276,10 +276,10 @@ const addNvmRc = async (root, manifest, runtime) => {
|
|
|
276
276
|
*
|
|
277
277
|
* @param {string} root
|
|
278
278
|
* @param {Manifest} manifest
|
|
279
|
-
* @param {import('
|
|
279
|
+
* @param {import('../helpers/resolve-app-runtime.js').Runtime} runtime
|
|
280
280
|
*/
|
|
281
281
|
const addPythonConfigs = async (root, manifest, runtime) => {
|
|
282
|
-
await fs.writeFile(resolve(root, '.python-version'), `${runtime.
|
|
282
|
+
await fs.writeFile(resolve(root, '.python-version'), `${runtime.version}\n`);
|
|
283
283
|
await fs.writeFile(resolve(root, '.python-virtualenv'), `${manifest.unix_name}\n`);
|
|
284
284
|
};
|
|
285
285
|
|
|
@@ -105,13 +105,13 @@ export const resolveAppRuntime = (opts) => {
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
const version = /python(\d\.\d)/.exec(opts.runtime)[1];
|
|
108
|
+
const version = /python(\d\.\d+)/.exec(opts.runtime)[1];
|
|
109
109
|
|
|
110
110
|
return {
|
|
111
111
|
language: 'python',
|
|
112
112
|
isRuntimeAvailable: async () => {
|
|
113
113
|
if (!IS_WINDOWS) {
|
|
114
|
-
return checkCliVersion(`
|
|
114
|
+
return checkCliVersion(`python3`, version);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
return (
|
package/package.json
CHANGED