@soybeanjs/cli 0.5.5 → 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.5";
19
+ const version = "0.5.7";
20
20
 
21
21
  async function execCommand(cmd, args, options) {
22
22
  const { execa } = await import('execa');
@@ -190,14 +190,16 @@ 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
  }
package/dist/index.d.ts CHANGED
@@ -41,6 +41,10 @@ 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
50
  declare function defineConfig(config?: Partial<CliOption>): Partial<CliOption> | undefined;
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.5";
11
+ const version = "0.5.7";
12
12
 
13
13
  async function execCommand(cmd, args, options) {
14
14
  const { execa } = await import('execa');
@@ -182,14 +182,16 @@ 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soybeanjs/cli",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "description": "SoybeanJS's command line tools",
5
5
  "author": {
6
6
  "name": "Soybean",
@@ -20,9 +20,14 @@
20
20
  },
21
21
  "exports": {
22
22
  ".": {
23
+ "import": "./dist/index.mjs",
24
+ "require": "./dist/index.cjs",
23
25
  "types": "./dist/index.d.ts"
24
26
  }
25
27
  },
28
+ "main": "dist/index.cjs",
29
+ "module": "dist/index.mjs",
30
+ "types": "dist/index.d.ts",
26
31
  "bin": {
27
32
  "soybean": "dist/index.cjs",
28
33
  "soy": "dist/index.cjs"
@@ -57,6 +62,9 @@
57
62
  "commit-msg": "pnpm soy git-commit-verify",
58
63
  "pre-commit": "pnpm typecheck && pnpm soy lint-staged"
59
64
  },
65
+ "soybean": {
66
+ "useSoybeanToken": true
67
+ },
60
68
  "scripts": {
61
69
  "build": "pnpm typecheck && unbuild",
62
70
  "lint": "eslint . --fix",