@soybeanjs/cli 0.5.6 → 0.5.7

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/index.cjs CHANGED
@@ -16,7 +16,7 @@ const cac__default = /*#__PURE__*/_interopDefaultCompat(cac);
16
16
  const enquirer__default = /*#__PURE__*/_interopDefaultCompat(enquirer);
17
17
  const versionBump__default = /*#__PURE__*/_interopDefaultCompat(versionBump);
18
18
 
19
- const version = "0.5.6";
19
+ const version = "0.5.7";
20
20
 
21
21
  async function execCommand(cmd, args, options) {
22
22
  const { execa } = await import('execa');
@@ -190,18 +190,19 @@ const defaultOptions = {
190
190
  lintStagedConfig: {
191
191
  [eslintExt]: "eslint --fix",
192
192
  "*": "soy prettier-write"
193
- }
193
+ },
194
+ useSoybeanToken: false
194
195
  };
195
196
  async function loadCliOptions(overrides, cwd = process.cwd()) {
196
197
  const { config } = await c12.loadConfig({
197
198
  name: "soybean",
198
199
  defaults: defaultOptions,
199
200
  overrides,
200
- cwd
201
+ cwd,
202
+ packageJson: true
201
203
  });
202
204
  return config;
203
205
  }
204
- const SOYBEAN_GITHUB_TOKEN = "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";
205
206
 
206
207
  async function setupCli() {
207
208
  const cliOptions = await loadCliOptions();
@@ -309,5 +310,4 @@ function defineConfig(config) {
309
310
  return config;
310
311
  }
311
312
 
312
- exports.SOYBEAN_GITHUB_TOKEN = SOYBEAN_GITHUB_TOKEN;
313
313
  exports.defineConfig = defineConfig;
package/dist/index.d.ts CHANGED
@@ -41,10 +41,12 @@ interface CliOption {
41
41
  * lint-staged config
42
42
  */
43
43
  lintStagedConfig: Record<string, string | string[]>;
44
+ /**
45
+ * use soybean token
46
+ */
47
+ useSoybeanToken: boolean;
44
48
  }
45
49
 
46
- declare const SOYBEAN_GITHUB_TOKEN = "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";
47
-
48
50
  declare function defineConfig(config?: Partial<CliOption>): Partial<CliOption> | undefined;
49
51
 
50
- export { CliOption, SOYBEAN_GITHUB_TOKEN, defineConfig };
52
+ export { CliOption, defineConfig };
package/dist/index.mjs CHANGED
@@ -8,7 +8,7 @@ import { generateTotalChangelog, generateChangelog } from '@soybeanjs/changelog'
8
8
  import versionBump from 'bumpp';
9
9
  import { loadConfig } from 'c12';
10
10
 
11
- const version = "0.5.6";
11
+ const version = "0.5.7";
12
12
 
13
13
  async function execCommand(cmd, args, options) {
14
14
  const { execa } = await import('execa');
@@ -182,18 +182,19 @@ const defaultOptions = {
182
182
  lintStagedConfig: {
183
183
  [eslintExt]: "eslint --fix",
184
184
  "*": "soy prettier-write"
185
- }
185
+ },
186
+ useSoybeanToken: false
186
187
  };
187
188
  async function loadCliOptions(overrides, cwd = process.cwd()) {
188
189
  const { config } = await loadConfig({
189
190
  name: "soybean",
190
191
  defaults: defaultOptions,
191
192
  overrides,
192
- cwd
193
+ cwd,
194
+ packageJson: true
193
195
  });
194
196
  return config;
195
197
  }
196
- const SOYBEAN_GITHUB_TOKEN = "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";
197
198
 
198
199
  async function setupCli() {
199
200
  const cliOptions = await loadCliOptions();
@@ -301,4 +302,4 @@ function defineConfig(config) {
301
302
  return config;
302
303
  }
303
304
 
304
- export { SOYBEAN_GITHUB_TOKEN, defineConfig };
305
+ export { defineConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soybeanjs/cli",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "SoybeanJS's command line tools",
5
5
  "author": {
6
6
  "name": "Soybean",
@@ -25,6 +25,9 @@
25
25
  "types": "./dist/index.d.ts"
26
26
  }
27
27
  },
28
+ "main": "dist/index.cjs",
29
+ "module": "dist/index.mjs",
30
+ "types": "dist/index.d.ts",
28
31
  "bin": {
29
32
  "soybean": "dist/index.cjs",
30
33
  "soy": "dist/index.cjs"
@@ -59,6 +62,9 @@
59
62
  "commit-msg": "pnpm soy git-commit-verify",
60
63
  "pre-commit": "pnpm typecheck && pnpm soy lint-staged"
61
64
  },
65
+ "soybean": {
66
+ "useSoybeanToken": true
67
+ },
62
68
  "scripts": {
63
69
  "build": "pnpm typecheck && unbuild",
64
70
  "lint": "eslint . --fix",