@corva/create-app 0.62.0-0 → 0.62.0-2
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.
|
@@ -6,6 +6,7 @@ import { promises as fs } from 'node:fs';
|
|
|
6
6
|
import { resolve } from 'node:path';
|
|
7
7
|
import { promisify } from 'node:util';
|
|
8
8
|
import { getIncreasedVersion } from '../../helpers/cli-version.js';
|
|
9
|
+
import { generateRandomString } from '../../helpers/utils.js';
|
|
9
10
|
import { loadJson } from '../lib/json.js';
|
|
10
11
|
import { StepError } from '../lib/step-error.js';
|
|
11
12
|
|
|
@@ -92,8 +93,15 @@ const resolveDataToZipUiApp = async (itemsToZip = [], { options, pkg, dirName, m
|
|
|
92
93
|
});
|
|
93
94
|
}
|
|
94
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Note: This random suffix is needed to not cause a conflict when
|
|
98
|
+
* we call 2 parallel commands at the same time.
|
|
99
|
+
* Example: CI simulteniously runs the release command to both QA and Prod envs
|
|
100
|
+
*/
|
|
101
|
+
const tmpPackageForSourceName = `packageForSource_${generateRandomString()}.json`;
|
|
102
|
+
|
|
95
103
|
itemsToSave.push({
|
|
96
|
-
name:
|
|
104
|
+
name: tmpPackageForSourceName,
|
|
97
105
|
content: _.set(
|
|
98
106
|
'scripts',
|
|
99
107
|
{
|
|
@@ -103,7 +111,7 @@ const resolveDataToZipUiApp = async (itemsToZip = [], { options, pkg, dirName, m
|
|
|
103
111
|
),
|
|
104
112
|
});
|
|
105
113
|
|
|
106
|
-
const itemsToRemove = [
|
|
114
|
+
const itemsToRemove = [tmpPackageForSourceName];
|
|
107
115
|
|
|
108
116
|
itemsToZip.push(
|
|
109
117
|
'manifest.json',
|
|
@@ -113,7 +121,7 @@ const resolveDataToZipUiApp = async (itemsToZip = [], { options, pkg, dirName, m
|
|
|
113
121
|
'.nvmrc',
|
|
114
122
|
'yarn.lock',
|
|
115
123
|
{
|
|
116
|
-
path: resolve(dirName,
|
|
124
|
+
path: resolve(dirName, tmpPackageForSourceName),
|
|
117
125
|
name: 'package.json',
|
|
118
126
|
},
|
|
119
127
|
...(await transformPatternsIntoFileNames(dirName, ['src/**/*'], options.ignoredFiles)),
|
package/lib/helpers/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/create-app",
|
|
3
|
-
"version": "0.62.0-
|
|
3
|
+
"version": "0.62.0-2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Create an app to use it in CORVA.AI",
|
|
6
6
|
"keywords": [
|
|
@@ -40,22 +40,21 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"archiver": "^5.3.0",
|
|
43
|
-
"chalk": "4.1.0",
|
|
43
|
+
"chalk": "^4.1.0",
|
|
44
44
|
"commander": "^9.1.0",
|
|
45
45
|
"cross-spawn": "^7.0.3",
|
|
46
46
|
"debug": "^4.3.4",
|
|
47
47
|
"dotenv": "^16.0.0",
|
|
48
|
-
"eslint-plugin-react": "^7.32.0",
|
|
49
48
|
"figlet": "^1.5.0",
|
|
50
49
|
"form-data": "^4.0.0",
|
|
51
|
-
"fs-extra": "9.0.1",
|
|
50
|
+
"fs-extra": "^9.0.1",
|
|
52
51
|
"glob": "^8.0.1",
|
|
53
52
|
"got": "^12.5.1",
|
|
54
53
|
"inquirer": "^8.2.3",
|
|
55
54
|
"is-glob": "^4.0.3",
|
|
56
55
|
"lodash": "^4.17.21",
|
|
57
56
|
"npm-api": "^1.0.0",
|
|
58
|
-
"semver": "7.3.2",
|
|
57
|
+
"semver": "^7.3.2",
|
|
59
58
|
"terminal-link": "^3.0.0"
|
|
60
59
|
},
|
|
61
60
|
"devDependencies": {
|
|
@@ -80,6 +79,7 @@
|
|
|
80
79
|
"eslint-plugin-jest": "^27.1.5",
|
|
81
80
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
82
81
|
"eslint-plugin-prettier": "^4.2.1",
|
|
82
|
+
"eslint-plugin-react": "^7.32.0",
|
|
83
83
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
84
84
|
"eslint-plugin-require-sort": "^1.3.0",
|
|
85
85
|
"husky": "^8.0.2",
|