@vocoder/cli 0.12.1 → 0.12.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.
package/dist/bin.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
readAuthData,
|
|
14
14
|
verifyStoredAuth,
|
|
15
15
|
writeAuthData
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2Q3JPWWV.mjs";
|
|
17
17
|
|
|
18
18
|
// src/bin.ts
|
|
19
19
|
import { Command } from "commander";
|
|
@@ -41,15 +41,13 @@ function writeVocoderConfig(options) {
|
|
|
41
41
|
const {
|
|
42
42
|
targetBranches = ["main"],
|
|
43
43
|
useTypeScript = true,
|
|
44
|
-
cwd = process.cwd()
|
|
45
|
-
appDir
|
|
44
|
+
cwd = process.cwd()
|
|
46
45
|
} = options;
|
|
47
46
|
if (findExistingConfig(cwd)) return null;
|
|
48
47
|
const ext = useTypeScript ? "ts" : "js";
|
|
49
48
|
const configPath = join(cwd, `vocoder.config.${ext}`);
|
|
50
49
|
const branchesStr = targetBranches.map((b) => `'${b}'`).join(", ");
|
|
51
|
-
const
|
|
52
|
-
const includes = appDir ? defaultIncludes.map((p14) => `${appDir}/${p14}`) : defaultIncludes;
|
|
50
|
+
const includes = ["**/*.{tsx,jsx,ts,js}"];
|
|
53
51
|
const includesStr = includes.map((p14) => `'${p14}'`).join(", ");
|
|
54
52
|
const content = `import { defineConfig } from '@vocoder/config'
|
|
55
53
|
|
|
@@ -1345,7 +1343,7 @@ function runScaffold(params) {
|
|
|
1345
1343
|
printCodeBlock(step.code);
|
|
1346
1344
|
if (i < steps.length - 1) p5.log.message("");
|
|
1347
1345
|
}
|
|
1348
|
-
const written = writeVocoderConfig({ targetBranches, useTypeScript
|
|
1346
|
+
const written = writeVocoderConfig({ targetBranches, useTypeScript });
|
|
1349
1347
|
if (written) {
|
|
1350
1348
|
p5.log.success(`Created ${chalk6.cyan(written)}`);
|
|
1351
1349
|
} else if (!findExistingConfig(process.cwd())) {
|