@corva/create-app 0.33.0-2 → 0.34.0-1

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/index.js CHANGED
@@ -355,6 +355,7 @@ async function configureApp(root, manifest, runtime) {
355
355
  }
356
356
 
357
357
  if (manifest.isNode()) {
358
+ await addNvmRc(root, manifest, runtime);
358
359
  await addTsConfigs(root, manifest, runtime);
359
360
  }
360
361
 
@@ -363,6 +364,10 @@ async function configureApp(root, manifest, runtime) {
363
364
  }
364
365
  }
365
366
 
367
+ const addNvmRc = async (root, manifest, runtime) => {
368
+ await fs.outputFile(path.join(root, '.nvmrc'), `${runtime.version}\n`);
369
+ }
370
+
366
371
  const addTsConfigs = (root, manifest, runtime) => {
367
372
  if (runtime.language !== 'typescript') {
368
373
  return;
@@ -430,8 +435,7 @@ function addPackageJSON(root, manifest, runtime) {
430
435
  version: defaults.version,
431
436
  description: manifest.description || defaults.description,
432
437
  engines: {
433
- node: '>=16',
434
- // node: `>=${runtime.version}`,
438
+ node: `^${runtime.version}`,
435
439
  [runtime.packageManager]: '*',
436
440
  },
437
441
  scripts: defaults.scripts,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/create-app",
3
- "version": "0.33.0-2",
3
+ "version": "0.34.0-1",
4
4
  "private": false,
5
5
  "description": "Create app to use it in CORVA.AI",
6
6
  "keywords": [
@@ -1,5 +1,3 @@
1
- jest.mock('@corva/node-api-client');
2
-
3
1
  const Processor = require('../src/processor');
4
2
 
5
3
  test('process event', async () => {