@icebreakers/monorepo 0.2.2 → 0.2.4
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/.vscode/settings.json +8 -0
- package/assets/lint-staged.config.js +1 -1
- package/assets/package.json +22 -4
- package/assets/turbo.json +2 -1
- package/dist/{chunk-4NKENAXJ.js → chunk-GENB6U7R.js} +30 -25
- package/dist/cli.cjs +27 -22
- package/dist/cli.js +2 -2
- package/dist/index.cjs +30 -25
- package/dist/index.js +1 -1
- package/package.json +3 -2
package/assets/package.json
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"packageManager": "pnpm@9.9.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/sonofmagic/monorepo-template.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/sonofmagic/monorepo-template/issues"
|
|
13
|
+
},
|
|
7
14
|
"engines": {
|
|
8
15
|
"node": ">=20.0.0"
|
|
9
16
|
},
|
|
@@ -17,42 +24,52 @@
|
|
|
17
24
|
"publish-packages": "turbo run build lint test && changeset version && changeset publish",
|
|
18
25
|
"preinstall": "npx only-allow pnpm",
|
|
19
26
|
"prepare": "husky",
|
|
20
|
-
"commit": "commit"
|
|
27
|
+
"commit": "commit",
|
|
28
|
+
"script:init": "tsx scripts/init.ts",
|
|
29
|
+
"script:sync": "tsx scripts/sync.ts"
|
|
21
30
|
},
|
|
22
31
|
"devDependencies": {
|
|
23
32
|
"@changesets/changelog-github": "^0.5.0",
|
|
24
|
-
"@changesets/cli": "^2.27.
|
|
33
|
+
"@changesets/cli": "^2.27.8",
|
|
25
34
|
"@commitlint/cli": "^19.4.1",
|
|
26
35
|
"@commitlint/config-conventional": "^19.4.1",
|
|
27
36
|
"@commitlint/prompt-cli": "^19.4.1",
|
|
28
37
|
"@commitlint/types": "^19.0.3",
|
|
29
38
|
"@icebreakers/eslint-config": "^0.4.0",
|
|
30
39
|
"@icebreakers/stylelint-config": "^0.0.3",
|
|
40
|
+
"@pnpm/workspace.find-packages": "^4.0.9",
|
|
31
41
|
"@types/fs-extra": "^11.0.4",
|
|
32
42
|
"@types/get-value": "^3.0.5",
|
|
43
|
+
"@types/git-url-parse": "^9.0.3",
|
|
33
44
|
"@types/klaw": "^3.0.6",
|
|
34
45
|
"@types/lint-staged": "^13.3.0",
|
|
35
46
|
"@types/lodash": "^4.17.7",
|
|
36
47
|
"@types/lodash-es": "^4.17.12",
|
|
37
|
-
"@types/
|
|
48
|
+
"@types/micromatch": "^4.0.9",
|
|
49
|
+
"@types/node": "^22.5.3",
|
|
38
50
|
"@types/set-value": "^4.0.3",
|
|
39
51
|
"@vitest/coverage-v8": "^2.0.5",
|
|
40
52
|
"ci-info": "^4.0.0",
|
|
41
53
|
"cross-env": "^7.0.3",
|
|
42
54
|
"defu": "^6.1.4",
|
|
43
55
|
"eslint": "^9.9.1",
|
|
56
|
+
"execa": "^9.3.1",
|
|
57
|
+
"fast-glob": "^3.3.2",
|
|
44
58
|
"fs-extra": "^11.2.0",
|
|
45
59
|
"get-value": "^3.0.1",
|
|
60
|
+
"git-url-parse": "^15.0.0",
|
|
46
61
|
"husky": "^9.1.5",
|
|
47
62
|
"klaw": "^4.1.0",
|
|
48
63
|
"lint-staged": "^15.2.10",
|
|
49
64
|
"lodash": "^4.17.21",
|
|
50
65
|
"lodash-es": "^4.17.21",
|
|
66
|
+
"micromatch": "^4.0.8",
|
|
51
67
|
"only-allow": "^1.2.1",
|
|
52
68
|
"pathe": "^1.1.2",
|
|
53
69
|
"pkg-types": "^1.2.0",
|
|
54
70
|
"rimraf": "^6.0.1",
|
|
55
71
|
"set-value": "^4.1.0",
|
|
72
|
+
"simple-git": "^3.26.0",
|
|
56
73
|
"tslib": "^2.7.0",
|
|
57
74
|
"tsup": "^8.2.4",
|
|
58
75
|
"tsx": "^4.19.0",
|
|
@@ -60,7 +77,8 @@
|
|
|
60
77
|
"typescript": "^5.5.4",
|
|
61
78
|
"unbuild": "^2.0.0",
|
|
62
79
|
"vite-tsconfig-paths": "^5.0.1",
|
|
63
|
-
"vitest": "^2.0.5"
|
|
80
|
+
"vitest": "^2.0.5",
|
|
81
|
+
"yaml": "^2.5.1"
|
|
64
82
|
},
|
|
65
83
|
"publishConfig": {
|
|
66
84
|
"access": "public",
|
package/assets/turbo.json
CHANGED
|
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.42_tsx@4.19.0_typescript@5.5.4_yaml@2.5.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.42_tsx@4.19.0_typescript@5.5.4_yaml@2.5.1/node_modules/tsup/assets/esm_shims.js
|
|
31
31
|
var init_esm_shims = __esm({
|
|
32
|
-
"../../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.42_tsx@4.19.0_typescript@5.5.4_yaml@2.5.
|
|
32
|
+
"../../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.42_tsx@4.19.0_typescript@5.5.4_yaml@2.5.1/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
33
|
"use strict";
|
|
34
34
|
}
|
|
35
35
|
});
|
|
@@ -318,48 +318,53 @@ import klaw from "klaw";
|
|
|
318
318
|
import PQueue from "p-queue";
|
|
319
319
|
import checkbox from "@inquirer/checkbox";
|
|
320
320
|
|
|
321
|
-
//
|
|
322
|
-
init_esm_shims();
|
|
323
|
-
import { createConsola } from "consola";
|
|
324
|
-
var logger = createConsola();
|
|
325
|
-
|
|
326
|
-
// src/utils.ts
|
|
327
|
-
init_esm_shims();
|
|
328
|
-
function escapeStringRegexp(str) {
|
|
329
|
-
return str.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
330
|
-
}
|
|
331
|
-
function isMatch(str, arr) {
|
|
332
|
-
for (const reg of arr) {
|
|
333
|
-
if (reg.test(str)) {
|
|
334
|
-
return true;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
return false;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
// src/git.ts
|
|
321
|
+
// ../../scripts/git.ts
|
|
341
322
|
init_esm_shims();
|
|
342
323
|
var import_get_value = __toESM(require_get_value(), 1);
|
|
343
324
|
import { simpleGit } from "simple-git";
|
|
344
325
|
import gitUrlParse from "git-url-parse";
|
|
345
326
|
var GitClient = class {
|
|
346
327
|
client;
|
|
347
|
-
constructor(options) {
|
|
328
|
+
constructor(options = {}) {
|
|
348
329
|
this.client = simpleGit(options);
|
|
349
330
|
}
|
|
350
331
|
listConfig() {
|
|
351
332
|
return this.client.listConfig();
|
|
352
333
|
}
|
|
353
|
-
async
|
|
334
|
+
async getGitUrl() {
|
|
354
335
|
const listConfig = await this.listConfig();
|
|
355
336
|
const x = (0, import_get_value.default)(listConfig.all, "remote.origin.url");
|
|
356
337
|
if (x) {
|
|
357
|
-
|
|
338
|
+
return gitUrlParse(x);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
async getRepoName() {
|
|
342
|
+
const url = await this.getGitUrl();
|
|
343
|
+
if (url) {
|
|
358
344
|
return `${url.owner}/${url.name}`;
|
|
359
345
|
}
|
|
360
346
|
}
|
|
361
347
|
};
|
|
362
348
|
|
|
349
|
+
// src/logger.ts
|
|
350
|
+
init_esm_shims();
|
|
351
|
+
import { createConsola } from "consola";
|
|
352
|
+
var logger = createConsola();
|
|
353
|
+
|
|
354
|
+
// src/utils.ts
|
|
355
|
+
init_esm_shims();
|
|
356
|
+
function escapeStringRegexp(str) {
|
|
357
|
+
return str.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
358
|
+
}
|
|
359
|
+
function isMatch(str, arr) {
|
|
360
|
+
for (const reg of arr) {
|
|
361
|
+
if (reg.test(str)) {
|
|
362
|
+
return true;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return false;
|
|
366
|
+
}
|
|
367
|
+
|
|
363
368
|
// src/targets.ts
|
|
364
369
|
init_esm_shims();
|
|
365
370
|
function getTargets(raw) {
|
package/dist/cli.cjs
CHANGED
|
@@ -28,10 +28,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
mod
|
|
29
29
|
));
|
|
30
30
|
|
|
31
|
-
// ../../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.42_tsx@4.19.0_typescript@5.5.4_yaml@2.5.
|
|
31
|
+
// ../../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.42_tsx@4.19.0_typescript@5.5.4_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
|
|
32
32
|
var getImportMetaUrl, importMetaUrl;
|
|
33
33
|
var init_cjs_shims = __esm({
|
|
34
|
-
"../../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.42_tsx@4.19.0_typescript@5.5.4_yaml@2.5.
|
|
34
|
+
"../../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.42_tsx@4.19.0_typescript@5.5.4_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js"() {
|
|
35
35
|
"use strict";
|
|
36
36
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
37
37
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -316,7 +316,7 @@ var import_commander = require("commander");
|
|
|
316
316
|
|
|
317
317
|
// package.json
|
|
318
318
|
var name = "@icebreakers/monorepo";
|
|
319
|
-
var version = "0.2.
|
|
319
|
+
var version = "0.2.4";
|
|
320
320
|
|
|
321
321
|
// src/logger.ts
|
|
322
322
|
init_cjs_shims();
|
|
@@ -335,43 +335,48 @@ var import_klaw = __toESM(require("klaw"), 1);
|
|
|
335
335
|
var import_p_queue = __toESM(require("p-queue"), 1);
|
|
336
336
|
var import_checkbox = __toESM(require("@inquirer/checkbox"), 1);
|
|
337
337
|
|
|
338
|
-
//
|
|
339
|
-
init_cjs_shims();
|
|
340
|
-
function escapeStringRegexp(str) {
|
|
341
|
-
return str.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
342
|
-
}
|
|
343
|
-
function isMatch(str, arr) {
|
|
344
|
-
for (const reg of arr) {
|
|
345
|
-
if (reg.test(str)) {
|
|
346
|
-
return true;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
return false;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
// src/git.ts
|
|
338
|
+
// ../../scripts/git.ts
|
|
353
339
|
init_cjs_shims();
|
|
340
|
+
var import_get_value = __toESM(require_get_value(), 1);
|
|
354
341
|
var import_simple_git = require("simple-git");
|
|
355
342
|
var import_git_url_parse = __toESM(require("git-url-parse"), 1);
|
|
356
|
-
var import_get_value = __toESM(require_get_value(), 1);
|
|
357
343
|
var GitClient = class {
|
|
358
344
|
client;
|
|
359
|
-
constructor(options) {
|
|
345
|
+
constructor(options = {}) {
|
|
360
346
|
this.client = (0, import_simple_git.simpleGit)(options);
|
|
361
347
|
}
|
|
362
348
|
listConfig() {
|
|
363
349
|
return this.client.listConfig();
|
|
364
350
|
}
|
|
365
|
-
async
|
|
351
|
+
async getGitUrl() {
|
|
366
352
|
const listConfig = await this.listConfig();
|
|
367
353
|
const x = (0, import_get_value.default)(listConfig.all, "remote.origin.url");
|
|
368
354
|
if (x) {
|
|
369
|
-
|
|
355
|
+
return (0, import_git_url_parse.default)(x);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
async getRepoName() {
|
|
359
|
+
const url = await this.getGitUrl();
|
|
360
|
+
if (url) {
|
|
370
361
|
return `${url.owner}/${url.name}`;
|
|
371
362
|
}
|
|
372
363
|
}
|
|
373
364
|
};
|
|
374
365
|
|
|
366
|
+
// src/utils.ts
|
|
367
|
+
init_cjs_shims();
|
|
368
|
+
function escapeStringRegexp(str) {
|
|
369
|
+
return str.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
370
|
+
}
|
|
371
|
+
function isMatch(str, arr) {
|
|
372
|
+
for (const reg of arr) {
|
|
373
|
+
if (reg.test(str)) {
|
|
374
|
+
return true;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return false;
|
|
378
|
+
}
|
|
379
|
+
|
|
375
380
|
// src/targets.ts
|
|
376
381
|
init_cjs_shims();
|
|
377
382
|
function getTargets(raw) {
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
init_esm_shims,
|
|
3
3
|
logger,
|
|
4
4
|
main
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GENB6U7R.js";
|
|
6
6
|
|
|
7
7
|
// src/cli.ts
|
|
8
8
|
init_esm_shims();
|
|
@@ -13,7 +13,7 @@ import { program } from "commander";
|
|
|
13
13
|
|
|
14
14
|
// package.json
|
|
15
15
|
var name = "@icebreakers/monorepo";
|
|
16
|
-
var version = "0.2.
|
|
16
|
+
var version = "0.2.4";
|
|
17
17
|
|
|
18
18
|
// src/program.ts
|
|
19
19
|
program.name(name).version(version);
|
package/dist/index.cjs
CHANGED
|
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.42_tsx@4.19.0_typescript@5.5.4_yaml@2.5.
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.42_tsx@4.19.0_typescript@5.5.4_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var getImportMetaUrl, importMetaUrl;
|
|
38
38
|
var init_cjs_shims = __esm({
|
|
39
|
-
"../../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.42_tsx@4.19.0_typescript@5.5.4_yaml@2.5.
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.42_tsx@4.19.0_typescript@5.5.4_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
40
|
"use strict";
|
|
41
41
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
42
42
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -332,6 +332,34 @@ var import_klaw = __toESM(require("klaw"), 1);
|
|
|
332
332
|
var import_p_queue = __toESM(require("p-queue"), 1);
|
|
333
333
|
var import_checkbox = __toESM(require("@inquirer/checkbox"), 1);
|
|
334
334
|
|
|
335
|
+
// ../../scripts/git.ts
|
|
336
|
+
init_cjs_shims();
|
|
337
|
+
var import_get_value = __toESM(require_get_value(), 1);
|
|
338
|
+
var import_simple_git = require("simple-git");
|
|
339
|
+
var import_git_url_parse = __toESM(require("git-url-parse"), 1);
|
|
340
|
+
var GitClient = class {
|
|
341
|
+
client;
|
|
342
|
+
constructor(options = {}) {
|
|
343
|
+
this.client = (0, import_simple_git.simpleGit)(options);
|
|
344
|
+
}
|
|
345
|
+
listConfig() {
|
|
346
|
+
return this.client.listConfig();
|
|
347
|
+
}
|
|
348
|
+
async getGitUrl() {
|
|
349
|
+
const listConfig = await this.listConfig();
|
|
350
|
+
const x = (0, import_get_value.default)(listConfig.all, "remote.origin.url");
|
|
351
|
+
if (x) {
|
|
352
|
+
return (0, import_git_url_parse.default)(x);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
async getRepoName() {
|
|
356
|
+
const url = await this.getGitUrl();
|
|
357
|
+
if (url) {
|
|
358
|
+
return `${url.owner}/${url.name}`;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
|
|
335
363
|
// src/logger.ts
|
|
336
364
|
init_cjs_shims();
|
|
337
365
|
var import_consola = require("consola");
|
|
@@ -351,29 +379,6 @@ function isMatch(str, arr) {
|
|
|
351
379
|
return false;
|
|
352
380
|
}
|
|
353
381
|
|
|
354
|
-
// src/git.ts
|
|
355
|
-
init_cjs_shims();
|
|
356
|
-
var import_simple_git = require("simple-git");
|
|
357
|
-
var import_git_url_parse = __toESM(require("git-url-parse"), 1);
|
|
358
|
-
var import_get_value = __toESM(require_get_value(), 1);
|
|
359
|
-
var GitClient = class {
|
|
360
|
-
client;
|
|
361
|
-
constructor(options) {
|
|
362
|
-
this.client = (0, import_simple_git.simpleGit)(options);
|
|
363
|
-
}
|
|
364
|
-
listConfig() {
|
|
365
|
-
return this.client.listConfig();
|
|
366
|
-
}
|
|
367
|
-
async getRepoName() {
|
|
368
|
-
const listConfig = await this.listConfig();
|
|
369
|
-
const x = (0, import_get_value.default)(listConfig.all, "remote.origin.url");
|
|
370
|
-
if (x) {
|
|
371
|
-
const url = (0, import_git_url_parse.default)(x);
|
|
372
|
-
return `${url.owner}/${url.name}`;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
|
|
377
382
|
// src/targets.ts
|
|
378
383
|
init_cjs_shims();
|
|
379
384
|
function getTargets(raw) {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/monorepo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.4",
|
|
5
5
|
"description": "icebreaker's monorepo config generator",
|
|
6
6
|
"author": "sonofmagic",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://monorepo.icebreaker.top",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/sonofmagic/monorepo-template.git"
|
|
11
|
+
"url": "git+https://github.com/sonofmagic/monorepo-template.git",
|
|
12
|
+
"directory": "packages/monorepo"
|
|
12
13
|
},
|
|
13
14
|
"bugs": {
|
|
14
15
|
"url": "https://github.com/sonofmagic/monorepo-template/issues"
|