@corva/create-app 0.24.0-1 → 0.25.0-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.
Files changed (3) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/index.js +14 -6
  3. package/package.json +1 -4
package/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [0.25.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.24.0-4...v0.25.0-0) (2022-03-15)
6
+
7
+ ## [0.24.0-4](https://github.com/corva-ai/create-corva-app/compare/v0.24.0-1...v0.24.0-4) (2022-03-15)
8
+
9
+
10
+ ### Features
11
+
12
+ * **DC-3035:** revert engines ([fbe6c2d](https://github.com/corva-ai/create-corva-app/commit/fbe6c2de87c972bf11a6c53e967f8ed6f93e8aa2))
13
+ * **DC-3189:** suppress yarn warnings ([13265ab](https://github.com/corva-ai/create-corva-app/commit/13265ab4c5ce8ee74c883696855b643d21347d64))
14
+
15
+ ## [0.24.0-3](https://github.com/corva-ai/create-corva-app/compare/v0.24.0-0...v0.24.0-3) (2022-03-11)
16
+
17
+
18
+ ### Features
19
+
20
+ * **DC-2969:** prompt package version bump on yarn zip ([8d0825f](https://github.com/corva-ai/create-corva-app/commit/8d0825f0fb9362636b4d95d3e79249d2309a0789))
21
+ * **DC-3035:** revert engines ([fbe6c2d](https://github.com/corva-ai/create-corva-app/commit/fbe6c2de87c972bf11a6c53e967f8ed6f93e8aa2))
22
+ * **DC-3035:** specify node version ([ebabf71](https://github.com/corva-ai/create-corva-app/commit/ebabf7142b0788f8984c20b9cd74d043bdb0d952))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **DC-2969:** fix PR comments ([6993822](https://github.com/corva-ai/create-corva-app/commit/69938227c85a4749daff04e48fa366094b31b3f8))
28
+
29
+ ## [0.24.0-2](https://github.com/corva-ai/create-corva-app/compare/v0.24.0-1...v0.24.0-2) (2022-03-10)
30
+
31
+
32
+ ### Features
33
+
34
+ * **DC-3035:** revert engines ([fbe6c2d](https://github.com/corva-ai/create-corva-app/commit/fbe6c2de87c972bf11a6c53e967f8ed6f93e8aa2))
35
+
5
36
  ## [0.24.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.23.0-1...v0.24.0-1) (2022-03-08)
6
37
 
7
38
 
package/index.js CHANGED
@@ -98,8 +98,9 @@ async function initialChecks() {
98
98
  manifestConstants.manifestOptions(projectName).forEach((value) => {
99
99
  const type = typeof value.default;
100
100
  const option = new commander.Option(
101
- `${value.alias ? `-${value.alias}, ` : ''}--${value.name} [${(type !== 'undefined' && type) ||
102
- 'string'}]`,
101
+ `${value.alias ? `-${value.alias}, ` : ''}--${value.name} [${
102
+ (type !== 'undefined' && type) || 'string'
103
+ }]`,
103
104
  value.message
104
105
  );
105
106
 
@@ -284,9 +285,6 @@ function addPackageJSON(root, appName) {
284
285
  scripts: packageConstants.scripts,
285
286
  ...packageConstants.dependencies,
286
287
  devDependencies,
287
- engines: {
288
- node: '>=16',
289
- },
290
288
  };
291
289
 
292
290
  fs.writeFileSync(path.join(root, 'package.json'), JSON.stringify(packageJson, null, 2) + os.EOL);
@@ -326,7 +324,17 @@ function installJsApp(appPath, appType) {
326
324
  const args = ['install'];
327
325
 
328
326
  console.log(chalk.yellow(`Installing template dependencies using ${command}...`));
329
- const proc = spawn.sync(command, args, { stdio: 'inherit', cwd: appPath });
327
+ const proc = spawn.sync(command, args, { stdio: ['inherit', 'inherit', 'pipe'], cwd: appPath });
328
+
329
+ if (proc.stderr) {
330
+ const error = proc.stderr
331
+ .toString('utf8')
332
+ .split('\n')
333
+ // NOTE: filter out warnings caused by @corva/ui peer dependencies
334
+ .filter(line => !line.includes('@corva/ui'))
335
+ .join('\n');
336
+ console.log(error);
337
+ }
330
338
 
331
339
  if (proc.status !== 0) {
332
340
  console.error(`\`${command} ${args.join(' ')}\` failed`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/create-app",
3
- "version": "0.24.0-1",
3
+ "version": "0.25.0-0",
4
4
  "private": false,
5
5
  "description": "Create app to use it in CORVA.AI",
6
6
  "keywords": [
@@ -57,9 +57,6 @@
57
57
  "prettier": "^2.4.1",
58
58
  "standard-version": "^9.0.0"
59
59
  },
60
- "engines": {
61
- "node": ">=16"
62
- },
63
60
  "standard-version": {
64
61
  "skip": {
65
62
  "tag": true