@batijs/cli 0.0.676 → 0.0.678

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 { YAMLMap, loadYaml } from "@batijs/core";
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
- let allowBuilds = pnpmWorkspace.get("allowBuilds", true);
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
@@ -14,12 +14,15 @@ function composeSkills(isSelected) {
14
14
  }));
15
15
  }
16
16
  function renderSkillMd(flag, label, llms) {
17
- const description = `${label} documentation — consider reading it, e.g. when using uncommon ${label} APIs or when stuck on ${article(label)} ${label} problem`;
17
+ const description = `${label} documentation index — a compact overview of ${possessive(label)} docs. Consider consulting it, e.g. when using uncommon ${label} APIs or when stuck on ${article(label)} ${label} problem.`;
18
18
  return `---\nname: ${yamlString(flag)}\ndescription: ${yamlString(description)}\n---\n\nSee ${llms}\n`;
19
19
  }
20
20
  function article(label) {
21
21
  return /^[aeiou]/i.test(label) ? "an" : "a";
22
22
  }
23
+ function possessive(label) {
24
+ return /s$/i.test(label) ? `${label}'` : `${label}'s`;
25
+ }
23
26
  function yamlString(s) {
24
27
  return `"${s.replace(/\\/g, "\\\\").replace(/"/g, "\\\"")}"`;
25
28
  }
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.676";
2641
+ var version = "0.0.678";
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=\"Bati\"",
2989
- "-c user.email=\"no-reply@batijs.dev\"",
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.676",
3
+ "version": "0.0.678",
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.676",
17
- "@batijs/compile": "0.0.676",
16
+ "@batijs/build": "0.0.678",
17
+ "@batijs/compile": "0.0.678",
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.676",
34
- "@batijs/features": "0.0.676"
33
+ "@batijs/core": "0.0.678",
34
+ "@batijs/features": "0.0.678"
35
35
  },
36
36
  "bin": "./cli.js",
37
37
  "exports": {