@corva/create-app 0.122.0 → 0.123.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
|
@@ -236,7 +236,11 @@ async function addTemplate(root, manifest, runtime, opts) {
|
|
|
236
236
|
const extPath = join(cliRoot, 'template_extensions', extension);
|
|
237
237
|
|
|
238
238
|
if (fs.existsSync(extPath)) {
|
|
239
|
-
|
|
239
|
+
// the extension's .eslintrc is the typescript one; a javascript app keeps
|
|
240
|
+
// its own @babel/eslint-parser config instead
|
|
241
|
+
const excludeFiles = runtime.language === 'javascript' ? ['.eslintrc'] : [];
|
|
242
|
+
|
|
243
|
+
copyFolderRecursiveSync(extPath, root, excludeFiles);
|
|
240
244
|
}
|
|
241
245
|
});
|
|
242
246
|
|
package/lib/constants/package.js
CHANGED
|
@@ -16,16 +16,15 @@ const uiDependencies = {
|
|
|
16
16
|
'mapbox-gl': '3.16.0',
|
|
17
17
|
'moment': '2.29.4',
|
|
18
18
|
'moment-timezone': '0.5.43',
|
|
19
|
-
'react': '
|
|
20
|
-
'react-dom': '
|
|
19
|
+
'react': '18.3.1',
|
|
20
|
+
'react-dom': '18.3.1',
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
const jsUiDevDependencies = {
|
|
24
24
|
'@corva/dc-platform-shared': 'latest',
|
|
25
25
|
'@corva/eslint-config-browser': '0.2.2',
|
|
26
26
|
'@testing-library/jest-dom': '^5.14.1',
|
|
27
|
-
'@testing-library/react': '^
|
|
28
|
-
'@testing-library/react-hooks': '^8.0.1',
|
|
27
|
+
'@testing-library/react': '^14.0.0',
|
|
29
28
|
'@testing-library/user-event': '^13.2.1',
|
|
30
29
|
'babel-jest': '^27.4.2',
|
|
31
30
|
'babel-preset-react-app': '^10.0.1',
|
|
@@ -44,8 +43,8 @@ const tsUiDevDependencies = {
|
|
|
44
43
|
'@types/minimatch': '3.0.5',
|
|
45
44
|
'@types/mime': '3.0.1',
|
|
46
45
|
'@types/node': '18.19.47',
|
|
47
|
-
'@types/react': '
|
|
48
|
-
'@types/react-dom': '^
|
|
46
|
+
'@types/react': '18.2.42',
|
|
47
|
+
'@types/react-dom': '^18.2',
|
|
49
48
|
'@types/jest': '^27.0.1',
|
|
50
49
|
'@typescript-eslint/eslint-plugin': '^4.31.2',
|
|
51
50
|
'@typescript-eslint/parser': '^4.31.2',
|