@batijs/cli 0.0.677 → 0.0.679
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.
|
@@ -1,32 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { loadYaml } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/pnpm/dist/files/$pnpm-workspace.yaml.mjs
|
|
5
|
-
const dependenciesApproveBuild = {
|
|
6
|
-
"@biomejs/biome": true,
|
|
7
|
-
"@sentry/cli": true,
|
|
8
|
-
"@tailwindcss/oxide": true,
|
|
9
|
-
"better-sqlite3": true,
|
|
10
|
-
esbuild: true,
|
|
11
|
-
sharp: true,
|
|
12
|
-
workerd: true,
|
|
13
|
-
tsx: ["esbuild"]
|
|
14
|
-
};
|
|
15
|
-
function intersect(a, b) {
|
|
16
|
-
return a.filter((x) => b.includes(x));
|
|
17
|
-
}
|
|
18
5
|
async function getPnpmWorkspace(props) {
|
|
19
|
-
const deps = [...Object.keys(props.packageJson.dependencies ?? {}), ...Object.keys(props.packageJson.devDependencies ?? {})];
|
|
20
|
-
const intersection = intersect(Object.keys(dependenciesApproveBuild), deps);
|
|
21
|
-
if (intersection.length === 0) return;
|
|
22
6
|
const pnpmWorkspace = await loadYaml(props, { fallbackEmpty: true });
|
|
23
|
-
|
|
24
|
-
if (!allowBuilds) {
|
|
25
|
-
allowBuilds = new YAMLMap();
|
|
26
|
-
pnpmWorkspace.set("allowBuilds", allowBuilds);
|
|
27
|
-
}
|
|
28
|
-
for (const pack of intersection) if (dependenciesApproveBuild[pack] === true) allowBuilds.set(pack, true);
|
|
29
|
-
else if (Array.isArray(dependenciesApproveBuild[pack])) for (const pack2 of dependenciesApproveBuild[pack]) allowBuilds.set(pack2, true);
|
|
7
|
+
pnpmWorkspace.set("dangerouslyAllowAllBuilds", true);
|
|
30
8
|
return pnpmWorkspace;
|
|
31
9
|
}
|
|
32
10
|
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -2638,7 +2638,7 @@ function kebabCase(str, joiner) {
|
|
|
2638
2638
|
//#endregion
|
|
2639
2639
|
//#region package.json
|
|
2640
2640
|
var name = "@batijs/cli";
|
|
2641
|
-
var version = "0.0.
|
|
2641
|
+
var version = "0.0.679";
|
|
2642
2642
|
var description = "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want";
|
|
2643
2643
|
//#endregion
|
|
2644
2644
|
//#region rules.ts
|
|
@@ -2985,8 +2985,8 @@ function gitInit(cwd) {
|
|
|
2985
2985
|
});
|
|
2986
2986
|
execSync([
|
|
2987
2987
|
"git",
|
|
2988
|
-
"-c user.name=\"
|
|
2989
|
-
"-c user.email=\"no-reply@
|
|
2988
|
+
"-c user.name=\"Vike\"",
|
|
2989
|
+
"-c user.email=\"no-reply@vike.dev\"",
|
|
2990
2990
|
"commit",
|
|
2991
2991
|
"--no-gpg-sign",
|
|
2992
2992
|
"--message=\"scaffold Vike app with Bati\""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.679",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"check-types": "tsc --noEmit",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"repository": "https://github.com/vikejs/bati",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@batijs/build": "0.0.
|
|
17
|
-
"@batijs/compile": "0.0.
|
|
16
|
+
"@batijs/build": "0.0.679",
|
|
17
|
+
"@batijs/compile": "0.0.679",
|
|
18
18
|
"@inquirer/prompts": "^8.5.2",
|
|
19
19
|
"@types/node": "^20.19.37",
|
|
20
20
|
"@types/which": "^3.0.4",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"vite": "^8.2.1"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@batijs/core": "0.0.
|
|
34
|
-
"@batijs/features": "0.0.
|
|
33
|
+
"@batijs/core": "0.0.679",
|
|
34
|
+
"@batijs/features": "0.0.679"
|
|
35
35
|
},
|
|
36
36
|
"bin": "./cli.js",
|
|
37
37
|
"exports": {
|