@batijs/cli 0.0.156 → 0.0.158
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/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$.eslintrc.json.js +7 -1
- package/dist/boilerplates/@batijs/react/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/shared/files/package.json +2 -2
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +6 -6
|
@@ -7,8 +7,14 @@ async function getEslintConfig(props) {
|
|
|
7
7
|
eslintConfig.extends = eslintConfig.extends.filter(
|
|
8
8
|
(p) => p !== "eslint:recommended" && p !== "plugin:@typescript-eslint/recommended"
|
|
9
9
|
);
|
|
10
|
-
eslintConfig.extends.push("react
|
|
10
|
+
eslintConfig.extends.push("plugin:react/recommended");
|
|
11
11
|
eslintConfig.plugins = eslintConfig.plugins.filter((p) => p !== "@typescript-eslint");
|
|
12
|
+
eslintConfig.plugins.push("react");
|
|
13
|
+
eslintConfig.settings ??= {};
|
|
14
|
+
eslintConfig.settings.react = { version: "detect" };
|
|
15
|
+
eslintConfig.parserOptions ??= {};
|
|
16
|
+
eslintConfig.parserOptions.ecmaFeatures ??= {};
|
|
17
|
+
eslintConfig.parserOptions.ecmaFeatures.jsx = true;
|
|
12
18
|
return eslintConfig;
|
|
13
19
|
}
|
|
14
20
|
export {
|
|
@@ -50,7 +50,7 @@ var require_package = __commonJS({
|
|
|
50
50
|
"@types/react-dom": "^18.2.19",
|
|
51
51
|
"@vitejs/plugin-react": "^4.2.1",
|
|
52
52
|
"cross-fetch": "^4.0.0",
|
|
53
|
-
"eslint-
|
|
53
|
+
"eslint-plugin-react": "^7.33.2",
|
|
54
54
|
react: "^18.2.0",
|
|
55
55
|
"react-dom": "^18.2.0",
|
|
56
56
|
tailwindcss: "^3.4.1",
|
|
@@ -182,7 +182,7 @@ async function getPackageJson(props) {
|
|
|
182
182
|
const packageJson = await loadAsJson(props);
|
|
183
183
|
if (props.meta.BATI.has("eslint")) {
|
|
184
184
|
addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)), {
|
|
185
|
-
devDependencies: ["eslint-
|
|
185
|
+
devDependencies: ["eslint-plugin-react"]
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
return addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)), {
|
|
@@ -43,7 +43,7 @@ var require_package = __commonJS({
|
|
|
43
43
|
devDependencies: {
|
|
44
44
|
"@batijs/compile": "workspace:*",
|
|
45
45
|
"@types/node": "^18.19.14",
|
|
46
|
-
"@vitejs/plugin-vue": "^5.0.
|
|
46
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
47
47
|
"@vue/compiler-sfc": "^3.4.18",
|
|
48
48
|
"@vue/server-renderer": "^3.4.18",
|
|
49
49
|
"cross-fetch": "^4.0.0",
|
package/dist/index.js
CHANGED
|
@@ -585,7 +585,7 @@ Please report this issue to https://github.com/magne4000/bati`
|
|
|
585
585
|
// package.json
|
|
586
586
|
var package_default = {
|
|
587
587
|
name: "@batijs/cli",
|
|
588
|
-
version: "0.0.
|
|
588
|
+
version: "0.0.158",
|
|
589
589
|
type: "module",
|
|
590
590
|
scripts: {
|
|
591
591
|
"check-types": "tsc --noEmit",
|
|
@@ -609,7 +609,7 @@ var package_default = {
|
|
|
609
609
|
execa: "^8.0.1",
|
|
610
610
|
rimraf: "^5.0.5",
|
|
611
611
|
sift: "^17.0.1",
|
|
612
|
-
tsup: "^8.0.
|
|
612
|
+
tsup: "^8.0.2",
|
|
613
613
|
typescript: "^5.3.3",
|
|
614
614
|
vite: "^5.1.1"
|
|
615
615
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.158",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"execa": "^8.0.1",
|
|
17
17
|
"rimraf": "^5.0.5",
|
|
18
18
|
"sift": "^17.0.1",
|
|
19
|
-
"tsup": "^8.0.
|
|
19
|
+
"tsup": "^8.0.2",
|
|
20
20
|
"typescript": "^5.3.3",
|
|
21
21
|
"vite": "^5.1.1",
|
|
22
|
-
"@batijs/build": "0.0.
|
|
23
|
-
"@batijs/compile": "0.0.
|
|
22
|
+
"@batijs/build": "0.0.158",
|
|
23
|
+
"@batijs/compile": "0.0.158"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@batijs/core": "0.0.
|
|
27
|
-
"@batijs/features": "0.0.
|
|
26
|
+
"@batijs/core": "0.0.158",
|
|
27
|
+
"@batijs/features": "0.0.158"
|
|
28
28
|
},
|
|
29
29
|
"bin": "./dist/index.js",
|
|
30
30
|
"exports": {
|