@icebreakers/monorepo 0.4.7 → 0.5.0
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/assets/package.json +2 -2
- package/dist/{chunk-46UL2RFM.js → chunk-AFOCZ33U.js} +1 -57
- package/dist/cli.cjs +124 -15126
- package/dist/cli.js +122 -15114
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -2
package/assets/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"private": true,
|
|
6
|
-
"packageManager": "pnpm@9.
|
|
6
|
+
"packageManager": "pnpm@9.11.0",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@commitlint/config-conventional": "^19.5.0",
|
|
39
39
|
"@commitlint/prompt-cli": "^19.5.0",
|
|
40
40
|
"@commitlint/types": "^19.5.0",
|
|
41
|
-
"@icebreakers/eslint-config": "^0.5.
|
|
41
|
+
"@icebreakers/eslint-config": "^0.5.2",
|
|
42
42
|
"@icebreakers/monorepo": "workspace:*",
|
|
43
43
|
"@icebreakers/stylelint-config": "^0.0.3",
|
|
44
44
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -1,50 +1,4 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
-
}) : x)(function(x) {
|
|
10
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
-
});
|
|
13
|
-
var __esm = (fn, res) => function __init() {
|
|
14
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
15
|
-
};
|
|
16
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
17
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
18
|
-
};
|
|
19
|
-
var __copyProps = (to, from, except, desc) => {
|
|
20
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
21
|
-
for (let key of __getOwnPropNames(from))
|
|
22
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
23
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
24
|
-
}
|
|
25
|
-
return to;
|
|
26
|
-
};
|
|
27
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
28
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
33
|
-
mod
|
|
34
|
-
));
|
|
35
|
-
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.3.0_jiti@1.21.6_postcss@8.4.42_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/esm_shims.js
|
|
37
|
-
var init_esm_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.3.0_jiti@1.21.6_postcss@8.4.42_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/esm_shims.js"() {
|
|
39
|
-
"use strict";
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
// src/index.ts
|
|
44
|
-
init_esm_shims();
|
|
45
|
-
|
|
46
1
|
// src/lib.ts
|
|
47
|
-
init_esm_shims();
|
|
48
2
|
import process from "node:process";
|
|
49
3
|
import { fileURLToPath } from "node:url";
|
|
50
4
|
import checkbox from "@inquirer/checkbox";
|
|
@@ -59,15 +13,13 @@ import set from "set-value";
|
|
|
59
13
|
|
|
60
14
|
// package.json
|
|
61
15
|
var name = "@icebreakers/monorepo";
|
|
62
|
-
var version = "0.
|
|
16
|
+
var version = "0.5.0";
|
|
63
17
|
|
|
64
18
|
// src/logger.ts
|
|
65
|
-
init_esm_shims();
|
|
66
19
|
import { createConsola } from "consola";
|
|
67
20
|
var logger = createConsola();
|
|
68
21
|
|
|
69
22
|
// src/md5.ts
|
|
70
|
-
init_esm_shims();
|
|
71
23
|
import crypto from "node:crypto";
|
|
72
24
|
function getFileHash(data) {
|
|
73
25
|
const hashSum = crypto.createHash("md5");
|
|
@@ -86,7 +38,6 @@ function isFileChanged(src, dest) {
|
|
|
86
38
|
}
|
|
87
39
|
|
|
88
40
|
// src/monorepo/git.ts
|
|
89
|
-
init_esm_shims();
|
|
90
41
|
import get from "get-value";
|
|
91
42
|
import gitUrlParse from "git-url-parse";
|
|
92
43
|
import { simpleGit } from "simple-git";
|
|
@@ -136,7 +87,6 @@ var GitClient = class {
|
|
|
136
87
|
};
|
|
137
88
|
|
|
138
89
|
// src/scripts.ts
|
|
139
|
-
init_esm_shims();
|
|
140
90
|
var scripts = {
|
|
141
91
|
"script:init": "monorepo init",
|
|
142
92
|
"script:sync": "monorepo sync",
|
|
@@ -146,7 +96,6 @@ var scripts = {
|
|
|
146
96
|
var scriptsEntries = Object.entries(scripts);
|
|
147
97
|
|
|
148
98
|
// src/targets.ts
|
|
149
|
-
init_esm_shims();
|
|
150
99
|
function getTargets(raw) {
|
|
151
100
|
const list = [
|
|
152
101
|
".changeset",
|
|
@@ -181,7 +130,6 @@ function getTargets(raw) {
|
|
|
181
130
|
}
|
|
182
131
|
|
|
183
132
|
// src/utils.ts
|
|
184
|
-
init_esm_shims();
|
|
185
133
|
function escapeStringRegexp(str) {
|
|
186
134
|
return str.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
187
135
|
}
|
|
@@ -302,12 +250,8 @@ async function main(opts) {
|
|
|
302
250
|
}
|
|
303
251
|
|
|
304
252
|
export {
|
|
305
|
-
__require,
|
|
306
|
-
__commonJS,
|
|
307
|
-
__toESM,
|
|
308
253
|
name,
|
|
309
254
|
version,
|
|
310
|
-
init_esm_shims,
|
|
311
255
|
logger,
|
|
312
256
|
GitClient,
|
|
313
257
|
setPkgJson,
|