@icebreakers/monorepo 4.0.5 → 4.0.6
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/README.md +42 -37
- package/dist/cli.mjs +38 -64
- package/dist/{commands-BDc4kaVr.mjs → commands-D-ou6qGx.mjs} +249 -132
- package/dist/{config-itCaAICn.mjs → config-BrLDFwAH.mjs} +13 -22
- package/dist/{create-flow-BdzRAs_D.mjs → create-flow-OURvJR5T.mjs} +3 -3
- package/dist/{index-DvZrxwOh.d.mts → index-CJ0vJpBt.d.mts} +60 -45
- package/dist/index.d.mts +10 -17
- package/dist/index.mjs +5 -5
- package/dist/{tooling-cxnXmQex.mjs → tooling-D1Bjw6xy.mjs} +63 -37
- package/dist/tooling-entry.d.mts +2 -2
- package/dist/tooling-entry.mjs +1 -1
- package/dist/{types-l72Q1OXu.mjs → types-dLzSmmdf.mjs} +4 -4
- package/package.json +30 -10
- package/bin/mo.js +0 -2
- package/bin/monorepo.js +0 -2
- package/bin/rc.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as loadMonorepoConfig } from "./config-
|
|
1
|
+
import { a as loadMonorepoConfig } from "./config-BrLDFwAH.mjs";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
@@ -76,14 +76,14 @@ function findConfig(basePath, configCandidates) {
|
|
|
76
76
|
return null;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* 读取当前工作目录下的 `
|
|
79
|
+
* 读取当前工作目录下的 `repoctl.config.*` 中 `tooling` 配置块。
|
|
80
80
|
*
|
|
81
81
|
* @param cwd 配置文件解析起点。默认使用 `process.cwd()`
|
|
82
82
|
* @returns 标准化后的 tooling 配置;未配置时返回空对象
|
|
83
83
|
*
|
|
84
84
|
* @example
|
|
85
85
|
* ```ts
|
|
86
|
-
* import { loadMonorepoToolingConfig } from '
|
|
86
|
+
* import { loadMonorepoToolingConfig } from 'repoctl/tooling'
|
|
87
87
|
*
|
|
88
88
|
* const tooling = await loadMonorepoToolingConfig()
|
|
89
89
|
* console.log(tooling.vitest?.includeWorkspaceRootConfig)
|
|
@@ -98,7 +98,18 @@ async function loadToolingSection(key, cwd = process.cwd()) {
|
|
|
98
98
|
function resolveConfigInput(input) {
|
|
99
99
|
return {
|
|
100
100
|
cwd: input?.cwd ?? process.cwd(),
|
|
101
|
-
options: input?.options
|
|
101
|
+
options: input?.options
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function isDefineConfigWrapper(input) {
|
|
105
|
+
if (input === null || typeof input !== "object" || Array.isArray(input)) return false;
|
|
106
|
+
return "cwd" in input || "options" in input;
|
|
107
|
+
}
|
|
108
|
+
function resolveEslintOptions(options = {}, configs = []) {
|
|
109
|
+
const { configs: inlineConfigs = [], ...rest } = options;
|
|
110
|
+
return {
|
|
111
|
+
...rest,
|
|
112
|
+
configs: [...inlineConfigs, ...configs]
|
|
102
113
|
};
|
|
103
114
|
}
|
|
104
115
|
function mergeTsconfig(base, override) {
|
|
@@ -118,7 +129,7 @@ function loadBundledTsconfig() {
|
|
|
118
129
|
/**
|
|
119
130
|
* 基于 `@icebreakers/commitlint-config` 创建 commitlint 配置。
|
|
120
131
|
*
|
|
121
|
-
* 适合在需要手动传入覆盖项时使用;如果只想读取 `repoctl.config.ts`
|
|
132
|
+
* 适合在需要手动传入覆盖项时使用;如果只想读取 `repoctl.config.ts` 默认值,
|
|
122
133
|
* 优先使用 `defineCommitlintConfig()`。
|
|
123
134
|
*
|
|
124
135
|
* @param options 额外合并到默认 commitlint 配置上的字段
|
|
@@ -126,7 +137,7 @@ function loadBundledTsconfig() {
|
|
|
126
137
|
*
|
|
127
138
|
* @example
|
|
128
139
|
* ```ts
|
|
129
|
-
* import { createMonorepoCommitlintConfig } from '
|
|
140
|
+
* import { createMonorepoCommitlintConfig } from 'repoctl/tooling'
|
|
130
141
|
*
|
|
131
142
|
* export default createMonorepoCommitlintConfig({
|
|
132
143
|
* rules: {
|
|
@@ -139,14 +150,14 @@ function createMonorepoCommitlintConfig(options = {}) {
|
|
|
139
150
|
return icebreaker(options);
|
|
140
151
|
}
|
|
141
152
|
/**
|
|
142
|
-
* 从 `repoctl.config.ts`
|
|
153
|
+
* 从 `repoctl.config.ts` 读取 `tooling.commitlint`,并生成 commitlint 配置。
|
|
143
154
|
*
|
|
144
|
-
* @param input `cwd` 用于指定配置文件解析起点,`
|
|
155
|
+
* @param input `cwd` 用于指定配置文件解析起点,`options` 用于追加运行时覆盖项
|
|
145
156
|
* @returns 可直接导出的 commitlint 配置对象
|
|
146
157
|
*
|
|
147
158
|
* @example
|
|
148
159
|
* ```ts
|
|
149
|
-
* import { defineCommitlintConfig } from '
|
|
160
|
+
* import { defineCommitlintConfig } from 'repoctl/tooling'
|
|
150
161
|
*
|
|
151
162
|
* export default await defineCommitlintConfig()
|
|
152
163
|
* ```
|
|
@@ -164,31 +175,46 @@ async function defineCommitlintConfig(input = {}) {
|
|
|
164
175
|
* 默认会追加一个用于忽略 `fixtures` 目录的 glob,除非显式传入其他 `ignores`。
|
|
165
176
|
*
|
|
166
177
|
* @param options 额外 ESLint 配置;`ignores` 默认会忽略 `fixtures` 目录
|
|
178
|
+
* @param extraConfigs 额外追加的 flat config 片段,等价于 `options.configs`
|
|
167
179
|
* @returns 可直接作为 `eslint.config.js` 默认导出的 flat config
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```js
|
|
183
|
+
* import { createMonorepoEslintConfig } from 'repoctl/tooling'
|
|
184
|
+
*
|
|
185
|
+
* export default createMonorepoEslintConfig(
|
|
186
|
+
* { ignores: ['dist/**'] },
|
|
187
|
+
* { rules: { 'no-console': 'off' } },
|
|
188
|
+
* )
|
|
189
|
+
* ```
|
|
168
190
|
*/
|
|
169
|
-
function createMonorepoEslintConfig(options = {}) {
|
|
170
|
-
const { configs = [], ...rest } = options;
|
|
171
|
-
return icebreaker$1(rest, ...
|
|
191
|
+
function createMonorepoEslintConfig(options = {}, ...extraConfigs) {
|
|
192
|
+
const { configs: resolvedConfigs = [], ...rest } = resolveEslintOptions(options, extraConfigs);
|
|
193
|
+
return icebreaker$1(rest, ...resolvedConfigs);
|
|
172
194
|
}
|
|
173
195
|
/**
|
|
174
|
-
* 从 `repoctl.config.ts`
|
|
196
|
+
* 从 `repoctl.config.ts` 读取 `tooling.eslint`,并生成 ESLint 配置。
|
|
175
197
|
*
|
|
176
|
-
* @param input `cwd` 用于指定配置文件解析起点,`
|
|
198
|
+
* @param input `cwd` 用于指定配置文件解析起点,`options` 与 `configs` 用于追加运行时覆盖项
|
|
177
199
|
* @returns 可直接导出的 ESLint flat config
|
|
178
200
|
*
|
|
179
201
|
* @example
|
|
180
202
|
* ```js
|
|
181
|
-
* import { defineEslintConfig } from '
|
|
203
|
+
* import { defineEslintConfig } from 'repoctl/tooling'
|
|
182
204
|
*
|
|
183
|
-
* export default await defineEslintConfig(
|
|
205
|
+
* export default await defineEslintConfig(
|
|
206
|
+
* { ignores: ['dist/**'] },
|
|
207
|
+
* { rules: { 'no-console': 'off' } },
|
|
208
|
+
* )
|
|
184
209
|
* ```
|
|
185
210
|
*/
|
|
186
|
-
async function defineEslintConfig(input = {}) {
|
|
187
|
-
const
|
|
211
|
+
async function defineEslintConfig(input = {}, ...configs) {
|
|
212
|
+
const wrapped = isDefineConfigWrapper(input) ? input : { options: input };
|
|
213
|
+
const resolved = resolveConfigInput(wrapped);
|
|
188
214
|
return createMonorepoEslintConfig({
|
|
189
215
|
...await loadToolingSection("eslint", resolved.cwd),
|
|
190
216
|
...resolved.options
|
|
191
|
-
});
|
|
217
|
+
}, ...wrapped.configs ?? [], ...configs);
|
|
192
218
|
}
|
|
193
219
|
/**
|
|
194
220
|
* 基于 `@icebreakers/stylelint-config` 创建 Stylelint 配置。
|
|
@@ -200,9 +226,9 @@ function createMonorepoStylelintConfig(options = {}) {
|
|
|
200
226
|
return icebreaker$2(options);
|
|
201
227
|
}
|
|
202
228
|
/**
|
|
203
|
-
* 从 `repoctl.config.ts`
|
|
229
|
+
* 从 `repoctl.config.ts` 读取 `tooling.stylelint`,并生成 Stylelint 配置。
|
|
204
230
|
*
|
|
205
|
-
* @param input `cwd` 用于指定配置文件解析起点,`
|
|
231
|
+
* @param input `cwd` 用于指定配置文件解析起点,`options` 用于追加运行时覆盖项
|
|
206
232
|
* @returns 可直接导出的 Stylelint 配置对象
|
|
207
233
|
*/
|
|
208
234
|
async function defineStylelintConfig(input = {}) {
|
|
@@ -222,9 +248,9 @@ function createMonorepoTsconfig(options = {}) {
|
|
|
222
248
|
return mergeTsconfig(loadBundledTsconfig(), options);
|
|
223
249
|
}
|
|
224
250
|
/**
|
|
225
|
-
* 从 `repoctl.config.ts`
|
|
251
|
+
* 从 `repoctl.config.ts` 读取 `tooling.tsconfig`,并生成最终的 TypeScript 配置对象。
|
|
226
252
|
*
|
|
227
|
-
* @param input `cwd` 用于指定配置文件解析起点,`
|
|
253
|
+
* @param input `cwd` 用于指定配置文件解析起点,`options` 用于追加运行时覆盖项
|
|
228
254
|
* @returns 可直接写入或导出的 `tsconfig.json` 配置对象
|
|
229
255
|
*/
|
|
230
256
|
async function defineTsconfigConfig(input = {}) {
|
|
@@ -240,37 +266,37 @@ async function defineTsconfigConfig(input = {}) {
|
|
|
240
266
|
* - `*.{ts,tsx,mts,cts,vue}` 调用 `pnpm exec repo verify staged-typecheck`
|
|
241
267
|
* - 样式文件运行 `stylelint --fix --allow-empty-input`
|
|
242
268
|
*
|
|
243
|
-
* @param options
|
|
269
|
+
* @param options 可配置 `repoCommand`,默认值为 `pnpm exec repo`
|
|
244
270
|
* @returns 可直接导出的 `lint-staged` 配置对象
|
|
245
271
|
*
|
|
246
272
|
* @example
|
|
247
273
|
* ```js
|
|
248
|
-
* import { createMonorepoLintStagedConfig } from '
|
|
274
|
+
* import { createMonorepoLintStagedConfig } from 'repoctl/tooling'
|
|
249
275
|
*
|
|
250
276
|
* export default createMonorepoLintStagedConfig({
|
|
251
|
-
*
|
|
277
|
+
* repoCommand: 'pnpm exec repo',
|
|
252
278
|
* })
|
|
253
279
|
* ```
|
|
254
280
|
*/
|
|
255
281
|
function createMonorepoLintStagedConfig(options = {}) {
|
|
256
282
|
if (options.config) return options.config;
|
|
257
|
-
const
|
|
283
|
+
const repoCommand = options.repoCommand ?? "pnpm exec repo";
|
|
258
284
|
return {
|
|
259
285
|
"*.{js,jsx,mjs,ts,tsx,mts,cts}": ["eslint --fix"],
|
|
260
286
|
"*.vue": ["eslint --fix", "stylelint --fix --allow-empty-input"],
|
|
261
287
|
"*.{ts,tsx,mts,cts,vue}": (files) => {
|
|
262
288
|
const uniqueFiles = [...new Set(files)];
|
|
263
289
|
if (uniqueFiles.length === 0) return [];
|
|
264
|
-
return `${
|
|
290
|
+
return `${repoCommand} verify staged-typecheck ${uniqueFiles.map(escapeForShell).join(" ")}`;
|
|
265
291
|
},
|
|
266
292
|
"*.{json,md,mdx,html,yml,yaml}": ["eslint --fix"],
|
|
267
293
|
"*.{css,scss,sass,less}": ["stylelint --fix --allow-empty-input"]
|
|
268
294
|
};
|
|
269
295
|
}
|
|
270
296
|
/**
|
|
271
|
-
* 从 `repoctl.config.ts`
|
|
297
|
+
* 从 `repoctl.config.ts` 读取 `tooling.lintStaged`,并生成 `lint-staged` 配置。
|
|
272
298
|
*
|
|
273
|
-
* @param input `cwd` 用于指定配置文件解析起点,`
|
|
299
|
+
* @param input `cwd` 用于指定配置文件解析起点,`options` 用于追加运行时覆盖项
|
|
274
300
|
* @returns 可直接导出的 `lint-staged` 配置对象
|
|
275
301
|
*/
|
|
276
302
|
async function defineLintStagedConfig(input = {}) {
|
|
@@ -297,7 +323,7 @@ async function defineLintStagedConfig(input = {}) {
|
|
|
297
323
|
*
|
|
298
324
|
* @example
|
|
299
325
|
* ```ts
|
|
300
|
-
* import { createMonorepoVitestConfig } from '
|
|
326
|
+
* import { createMonorepoVitestConfig } from 'repoctl/tooling'
|
|
301
327
|
*
|
|
302
328
|
* export default {
|
|
303
329
|
* ...createMonorepoVitestConfig({
|
|
@@ -342,11 +368,11 @@ function mergeMonorepoVitestConfig(base, overrides = {}) {
|
|
|
342
368
|
return merged;
|
|
343
369
|
}
|
|
344
370
|
/**
|
|
345
|
-
* 从 `repoctl.config.ts`
|
|
371
|
+
* 从 `repoctl.config.ts` 读取 `tooling.vitest`,再叠加运行时 `options` 与 `overrides`
|
|
346
372
|
* 生成最终 Vitest 配置。
|
|
347
373
|
*
|
|
348
374
|
* 优先级从低到高:
|
|
349
|
-
* 1. `repoctl.config.ts
|
|
375
|
+
* 1. `repoctl.config.ts -> tooling.vitest`
|
|
350
376
|
* 2. `options`
|
|
351
377
|
* 3. `overrides`
|
|
352
378
|
*
|
|
@@ -357,7 +383,7 @@ function mergeMonorepoVitestConfig(base, overrides = {}) {
|
|
|
357
383
|
*
|
|
358
384
|
* @example
|
|
359
385
|
* ```ts
|
|
360
|
-
* import { defineVitestConfig } from '
|
|
386
|
+
* import { defineVitestConfig } from 'repoctl/tooling'
|
|
361
387
|
* import { defineConfig } from 'vitest/config'
|
|
362
388
|
*
|
|
363
389
|
* export default defineConfig(async () => await defineVitestConfig({
|
|
@@ -407,11 +433,11 @@ function createMonorepoVitestProjectConfig(options = {}) {
|
|
|
407
433
|
} };
|
|
408
434
|
}
|
|
409
435
|
/**
|
|
410
|
-
* 从 `repoctl.config.ts`
|
|
436
|
+
* 从 `repoctl.config.ts` 读取 `tooling.vitestProject`,再叠加运行时 `options`
|
|
411
437
|
* 生成单个 package/app 的项目级 Vitest 配置。
|
|
412
438
|
*
|
|
413
439
|
* 优先级从低到高:
|
|
414
|
-
* 1. `repoctl.config.ts
|
|
440
|
+
* 1. `repoctl.config.ts -> tooling.vitestProject`
|
|
415
441
|
* 2. `options`
|
|
416
442
|
*
|
|
417
443
|
* @param input `cwd` 用于配置文件解析起点,`options` 用于追加项目内局部覆盖项
|
|
@@ -420,7 +446,7 @@ function createMonorepoVitestProjectConfig(options = {}) {
|
|
|
420
446
|
async function defineVitestProjectConfig(input = {}) {
|
|
421
447
|
return createMonorepoVitestProjectConfig({
|
|
422
448
|
...await loadToolingSection("vitestProject", input.cwd ?? process.cwd()),
|
|
423
|
-
...input.options
|
|
449
|
+
...input.options
|
|
424
450
|
});
|
|
425
451
|
}
|
|
426
452
|
//#endregion
|
package/dist/tooling-entry.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { DefineConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, MonorepoCommitlintConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
|
|
1
|
+
import { A as loadMonorepoToolingConfig, C as defineCommitlintConfig, D as defineTsconfigConfig, E as defineStylelintConfig, O as defineVitestConfig, S as createMonorepoVitestProjectConfig, T as defineLintStagedConfig, _ as createMonorepoEslintConfig, a as MonorepoCommitlintConfig, b as createMonorepoTsconfig, c as MonorepoLintStagedConfigOptions, d as MonorepoVitestConfigOptions, f as MonorepoVitestConfigOverrides, g as createMonorepoCommitlintConfig, h as MonorepoVitestProjectConfigResult, i as DefineVitestProjectConfigOptions, k as defineVitestProjectConfig, l as MonorepoStylelintConfig, m as MonorepoVitestProjectConfigOptions, n as DefineEslintConfigOptions, o as MonorepoEslintConfig, p as MonorepoVitestConfigResult, r as DefineVitestConfigOptions, s as MonorepoLintStagedConfig, t as DefineConfigOptions, u as MonorepoTsconfig, v as createMonorepoLintStagedConfig, w as defineEslintConfig, x as createMonorepoVitestConfig, y as createMonorepoStylelintConfig } from "./index-CJ0vJpBt.mjs";
|
|
2
|
+
export { DefineConfigOptions, DefineEslintConfigOptions, DefineVitestConfigOptions, DefineVitestProjectConfigOptions, MonorepoCommitlintConfig, MonorepoEslintConfig, MonorepoLintStagedConfig, MonorepoLintStagedConfigOptions, MonorepoStylelintConfig, MonorepoTsconfig, MonorepoVitestConfigOptions, MonorepoVitestConfigOverrides, MonorepoVitestConfigResult, MonorepoVitestProjectConfigOptions, MonorepoVitestProjectConfigResult, createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
|
package/dist/tooling-entry.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createMonorepoTsconfig, c as defineCommitlintConfig, d as defineStylelintConfig, f as defineTsconfigConfig, h as loadMonorepoToolingConfig, i as createMonorepoStylelintConfig, l as defineEslintConfig, m as defineVitestProjectConfig, n as createMonorepoEslintConfig, o as createMonorepoVitestConfig, p as defineVitestConfig, r as createMonorepoLintStagedConfig, s as createMonorepoVitestProjectConfig, t as createMonorepoCommitlintConfig, u as defineLintStagedConfig } from "./tooling-
|
|
1
|
+
import { a as createMonorepoTsconfig, c as defineCommitlintConfig, d as defineStylelintConfig, f as defineTsconfigConfig, h as loadMonorepoToolingConfig, i as createMonorepoStylelintConfig, l as defineEslintConfig, m as defineVitestProjectConfig, n as createMonorepoEslintConfig, o as createMonorepoVitestConfig, p as defineVitestConfig, r as createMonorepoLintStagedConfig, s as createMonorepoVitestProjectConfig, t as createMonorepoCommitlintConfig, u as defineLintStagedConfig } from "./tooling-D1Bjw6xy.mjs";
|
|
2
2
|
export { createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoLintStagedConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineLintStagedConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
|
|
@@ -142,12 +142,12 @@ const logger = createConsola();
|
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region package.json
|
|
144
144
|
var name = "@icebreakers/monorepo";
|
|
145
|
-
var version = "4.0.
|
|
145
|
+
var version = "4.0.6";
|
|
146
146
|
var dependencies = {
|
|
147
147
|
"@icebreakers/commitlint-config": "^2.0.0",
|
|
148
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
148
|
+
"@icebreakers/eslint-config": "^4.0.11",
|
|
149
149
|
"@icebreakers/monorepo-templates": "workspace:*",
|
|
150
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
150
|
+
"@icebreakers/stylelint-config": "^3.0.7",
|
|
151
151
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
152
152
|
"@pnpm/logger": "^1100.0.0",
|
|
153
153
|
"@pnpm/types": "^1101.0.0",
|
|
@@ -179,7 +179,7 @@ var devDependencies = {
|
|
|
179
179
|
//#region src/constants.ts
|
|
180
180
|
const require = createRequire(import.meta.url);
|
|
181
181
|
/**
|
|
182
|
-
* 用户默认看到的 CLI
|
|
182
|
+
* 用户默认看到的 CLI 名称,帮助文案和生成脚本都统一引导到 repo。
|
|
183
183
|
*/
|
|
184
184
|
const cliName = "repo";
|
|
185
185
|
/**
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.
|
|
5
|
-
"description": "Core engine
|
|
4
|
+
"version": "4.0.6",
|
|
5
|
+
"description": "Core engine behind the repoctl monorepo CLI",
|
|
6
6
|
"author": "ice breaker <hi@sonofmagic.top>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://repo.icebreaker.top",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"monorepo",
|
|
19
19
|
"repoctl",
|
|
20
20
|
"tooling",
|
|
21
|
-
"compatibility",
|
|
22
21
|
"icebreaker"
|
|
23
22
|
],
|
|
24
23
|
"sideEffects": false,
|
|
@@ -43,11 +42,8 @@
|
|
|
43
42
|
"module": "./dist/index.mjs",
|
|
44
43
|
"types": "./dist/index.d.mts",
|
|
45
44
|
"bin": {
|
|
46
|
-
"rc": "bin/rc.js",
|
|
47
45
|
"repo": "bin/repo.js",
|
|
48
|
-
"repoctl": "bin/repoctl.js"
|
|
49
|
-
"monorepo": "bin/monorepo.js",
|
|
50
|
-
"mo": "bin/mo.js"
|
|
46
|
+
"repoctl": "bin/repoctl.js"
|
|
51
47
|
},
|
|
52
48
|
"files": [
|
|
53
49
|
"bin",
|
|
@@ -58,10 +54,34 @@
|
|
|
58
54
|
"engines": {
|
|
59
55
|
"node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0"
|
|
60
56
|
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"@commitlint/cli": "^20.5.3",
|
|
59
|
+
"eslint": "^9.0.0 || ^10.0.0",
|
|
60
|
+
"stylelint": "^17.11.0",
|
|
61
|
+
"typescript": "^5.0.0 || ^6.0.0",
|
|
62
|
+
"vitest": "^4.1.5"
|
|
63
|
+
},
|
|
64
|
+
"peerDependenciesMeta": {
|
|
65
|
+
"@commitlint/cli": {
|
|
66
|
+
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"eslint": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"stylelint": {
|
|
72
|
+
"optional": true
|
|
73
|
+
},
|
|
74
|
+
"typescript": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"vitest": {
|
|
78
|
+
"optional": true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
61
81
|
"dependencies": {
|
|
62
82
|
"@icebreakers/commitlint-config": "^2.0.0",
|
|
63
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
64
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
83
|
+
"@icebreakers/eslint-config": "^4.0.11",
|
|
84
|
+
"@icebreakers/stylelint-config": "^3.0.7",
|
|
65
85
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
66
86
|
"@pnpm/logger": "^1100.0.0",
|
|
67
87
|
"@pnpm/types": "^1101.0.0",
|
|
@@ -82,7 +102,7 @@
|
|
|
82
102
|
"simple-git": "^3.36.0",
|
|
83
103
|
"vitest": "~4.1.5",
|
|
84
104
|
"yaml": "^2.8.4",
|
|
85
|
-
"@icebreakers/monorepo-templates": "1.0.
|
|
105
|
+
"@icebreakers/monorepo-templates": "1.0.5"
|
|
86
106
|
},
|
|
87
107
|
"devDependencies": {
|
|
88
108
|
"@types/klaw": "^3.0.7",
|
package/bin/mo.js
DELETED
package/bin/monorepo.js
DELETED
package/bin/rc.js
DELETED