@icebreakers/monorepo 0.6.21 → 0.6.24

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.
@@ -5,6 +5,8 @@ on:
5
5
  # branches: ['main']
6
6
  pull_request:
7
7
  types: [opened, synchronize]
8
+ branches-ignore:
9
+ - 'renovate/**'
8
10
  workflow_dispatch:
9
11
 
10
12
  permissions:
@@ -12,6 +14,7 @@ permissions:
12
14
 
13
15
  jobs:
14
16
  build:
17
+ if:
15
18
  name: Build and Test
16
19
  timeout-minutes: 15
17
20
  strategy:
@@ -18,7 +18,7 @@
18
18
  "scripts": {
19
19
  "build": "turbo run build",
20
20
  "dev": "turbo run dev --parallel",
21
- "test": "vitest run --coverage.enabled",
21
+ "test": "vitest run",
22
22
  "test:dev": "vitest",
23
23
  "lint": "turbo run lint",
24
24
  "release": "changeset",
@@ -33,49 +33,37 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@changesets/changelog-github": "^0.5.0",
36
- "@changesets/cli": "^2.27.11",
37
- "@commitlint/cli": "^19.6.1",
38
- "@commitlint/config-conventional": "^19.6.0",
39
- "@commitlint/prompt-cli": "^19.7.0",
36
+ "@changesets/cli": "^2.27.12",
37
+ "@commitlint/cli": "^19.7.1",
38
+ "@commitlint/config-conventional": "^19.7.1",
39
+ "@commitlint/prompt-cli": "^19.7.1",
40
40
  "@commitlint/types": "^19.5.0",
41
- "@icebreakers/eslint-config": "^0.7.8",
41
+ "@icebreakers/eslint-config": "^0.7.13",
42
42
  "@icebreakers/monorepo": "workspace:*",
43
- "@icebreakers/stylelint-config": "^0.1.3",
43
+ "@icebreakers/stylelint-config": "^0.1.4",
44
44
  "@types/fs-extra": "^11.0.4",
45
- "@types/get-value": "^3.0.5",
46
- "@types/git-url-parse": "^9.0.3",
47
- "@types/klaw": "^3.0.6",
48
- "@types/lint-staged": "^13.3.0",
49
- "@types/lodash": "^4.17.14",
50
- "@types/lodash-es": "^4.17.12",
51
- "@types/micromatch": "^4.0.9",
52
- "@types/node": "^22.10.5",
53
- "@types/set-value": "^4.0.3",
54
- "@vitest/coverage-v8": "~2.1.8",
45
+ "@types/node": "^22.13.1",
46
+ "@vitest/coverage-v8": "~3.0.5",
55
47
  "ci-info": "^4.1.0",
56
48
  "cross-env": "^7.0.3",
57
49
  "defu": "^6.1.4",
58
- "eslint": "^9.17.0",
50
+ "es-toolkit": "^1.32.0",
51
+ "eslint": "^9.20.0",
59
52
  "execa": "^9.5.2",
60
- "fs-extra": "^11.2.0",
61
- "get-value": "^3.0.1",
53
+ "fs-extra": "^11.3.0",
62
54
  "husky": "^9.1.6",
63
- "lint-staged": "^15.3.0",
64
- "lodash": "^4.17.21",
65
- "lodash-es": "^4.17.21",
66
- "micromatch": "^4.0.8",
55
+ "lint-staged": "^15.4.3",
67
56
  "only-allow": "^1.2.1",
68
- "pathe": "^2.0.0",
69
- "pkg-types": "^1.3.0",
57
+ "pathe": "^2.0.2",
58
+ "pkg-types": "^1.3.1",
70
59
  "rimraf": "^6.0.1",
71
- "set-value": "^4.1.0",
72
60
  "tslib": "^2.8.0",
73
- "tsup": "^8.3.5",
61
+ "tsup": "^8.3.6",
74
62
  "tsx": "^4.19.2",
75
- "turbo": "^2.3.3",
76
- "typescript": "^5.7.2",
77
- "unbuild": "^3.2.0",
78
- "vitest": "~2.1.8",
63
+ "turbo": "^2.4.0",
64
+ "typescript": "^5.7.3",
65
+ "unbuild": "^3.3.1",
66
+ "vitest": "~3.0.5",
79
67
  "yaml": "^2.7.0"
80
68
  },
81
69
  "publishConfig": {
@@ -0,0 +1,19 @@
1
+ import { defineConfig } from 'vitest/config'
2
+
3
+ export default defineConfig(
4
+ () => {
5
+ return {
6
+ test: {
7
+ workspace: [
8
+ 'packages/*',
9
+ 'apps/*',
10
+ ],
11
+ coverage: {
12
+ enabled: true,
13
+ all: false,
14
+ skipFull: true,
15
+ },
16
+ },
17
+ }
18
+ },
19
+ )
@@ -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.3.5_jiti@2.4.2_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js
30
+ // ../../node_modules/.pnpm/tsup@8.3.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js
31
31
  var init_esm_shims = __esm({
32
- "../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js"() {
32
+ "../../node_modules/.pnpm/tsup@8.3.6_jiti@2.4.2_postcss@8.5.0_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js"() {
33
33
  "use strict";
34
34
  }
35
35
  });
@@ -53,7 +53,7 @@ var require_isobject = __commonJS({
53
53
  "../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js"(exports, module) {
54
54
  "use strict";
55
55
  init_esm_shims();
56
- module.exports = function isObject(val) {
56
+ module.exports = function isObject2(val) {
57
57
  return val != null && typeof val === "object" && Array.isArray(val) === false;
58
58
  };
59
59
  }
@@ -64,9 +64,9 @@ var require_is_plain_object = __commonJS({
64
64
  "../../node_modules/.pnpm/is-plain-object@2.0.4/node_modules/is-plain-object/index.js"(exports, module) {
65
65
  "use strict";
66
66
  init_esm_shims();
67
- var isObject = require_isobject();
67
+ var isObject2 = require_isobject();
68
68
  function isObjectObject(o) {
69
- return isObject(o) === true && Object.prototype.toString.call(o) === "[object Object]";
69
+ return isObject2(o) === true && Object.prototype.toString.call(o) === "[object Object]";
70
70
  }
71
71
  module.exports = function isPlainObject2(o) {
72
72
  var ctor, prot;
@@ -91,7 +91,7 @@ var require_set_value = __commonJS({
91
91
  var { deleteProperty } = Reflect;
92
92
  var isPrimitive = require_is_primitive();
93
93
  var isPlainObject2 = require_is_plain_object();
94
- var isObject = (value) => {
94
+ var isObject2 = (value) => {
95
95
  return typeof value === "object" && value !== null || typeof value === "function";
96
96
  };
97
97
  var isUnsafeKey = (key) => {
@@ -159,7 +159,7 @@ var require_set_value = __commonJS({
159
159
  }
160
160
  return parts;
161
161
  };
162
- var split = (input, options) => {
162
+ var split2 = (input, options) => {
163
163
  if (options && typeof options.split === "function") return options.split(input);
164
164
  if (typeof input === "symbol") return [input];
165
165
  if (Array.isArray(input)) return input;
@@ -182,8 +182,8 @@ var require_set_value = __commonJS({
182
182
  return obj;
183
183
  };
184
184
  var setValue = (target, path9, value, options) => {
185
- if (!path9 || !isObject(target)) return target;
186
- const keys = split(path9, options);
185
+ if (!path9 || !isObject2(target)) return target;
186
+ const keys = split2(path9, options);
187
187
  let obj = target;
188
188
  for (let i = 0; i < keys.length; i++) {
189
189
  const key = keys[i];
@@ -197,14 +197,14 @@ var require_set_value = __commonJS({
197
197
  obj = obj[key] = [];
198
198
  continue;
199
199
  }
200
- if (!isObject(obj[key])) {
200
+ if (!isObject2(obj[key])) {
201
201
  obj[key] = {};
202
202
  }
203
203
  obj = obj[key];
204
204
  }
205
205
  return target;
206
206
  };
207
- setValue.split = split;
207
+ setValue.split = split2;
208
208
  setValue.cache = /* @__PURE__ */ new Map();
209
209
  setValue.clear = () => {
210
210
  setValue.cache = /* @__PURE__ */ new Map();
@@ -213,96 +213,6 @@ var require_set_value = __commonJS({
213
213
  }
214
214
  });
215
215
 
216
- // ../../node_modules/.pnpm/get-value@3.0.1/node_modules/get-value/index.js
217
- var require_get_value = __commonJS({
218
- "../../node_modules/.pnpm/get-value@3.0.1/node_modules/get-value/index.js"(exports, module) {
219
- "use strict";
220
- init_esm_shims();
221
- var isObject = require_isobject();
222
- module.exports = function(target, path9, options) {
223
- if (!isObject(options)) {
224
- options = { default: options };
225
- }
226
- if (!isValidObject(target)) {
227
- return typeof options.default !== "undefined" ? options.default : target;
228
- }
229
- if (typeof path9 === "number") {
230
- path9 = String(path9);
231
- }
232
- const isArray = Array.isArray(path9);
233
- const isString = typeof path9 === "string";
234
- const splitChar = options.separator || ".";
235
- const joinChar = options.joinChar || (typeof splitChar === "string" ? splitChar : ".");
236
- if (!isString && !isArray) {
237
- return target;
238
- }
239
- if (isString && path9 in target) {
240
- return isValid(path9, target, options) ? target[path9] : options.default;
241
- }
242
- let segs = isArray ? path9 : split(path9, splitChar, options);
243
- let len = segs.length;
244
- let idx = 0;
245
- do {
246
- let prop = segs[idx];
247
- if (typeof prop === "number") {
248
- prop = String(prop);
249
- }
250
- while (prop && prop.slice(-1) === "\\") {
251
- prop = join([prop.slice(0, -1), segs[++idx] || ""], joinChar, options);
252
- }
253
- if (prop in target) {
254
- if (!isValid(prop, target, options)) {
255
- return options.default;
256
- }
257
- target = target[prop];
258
- } else {
259
- let hasProp = false;
260
- let n = idx + 1;
261
- while (n < len) {
262
- prop = join([prop, segs[n++]], joinChar, options);
263
- if (hasProp = prop in target) {
264
- if (!isValid(prop, target, options)) {
265
- return options.default;
266
- }
267
- target = target[prop];
268
- idx = n - 1;
269
- break;
270
- }
271
- }
272
- if (!hasProp) {
273
- return options.default;
274
- }
275
- }
276
- } while (++idx < len && isValidObject(target));
277
- if (idx === len) {
278
- return target;
279
- }
280
- return options.default;
281
- };
282
- function join(segs, joinChar, options) {
283
- if (typeof options.join === "function") {
284
- return options.join(segs);
285
- }
286
- return segs[0] + joinChar + segs[1];
287
- }
288
- function split(path9, splitChar, options) {
289
- if (typeof options.split === "function") {
290
- return options.split(path9);
291
- }
292
- return path9.split(splitChar);
293
- }
294
- function isValid(key, target, options) {
295
- if (typeof options.isValid === "function") {
296
- return options.isValid(key, target);
297
- }
298
- return true;
299
- }
300
- function isValidObject(val) {
301
- return isObject(val) || Array.isArray(val) || typeof val === "function";
302
- }
303
- }
304
- });
305
-
306
216
  // src/monorepo/binaryMirror.ts
307
217
  init_esm_shims();
308
218
  import { parse, stringify } from "comment-json";
@@ -391,7 +301,96 @@ async function cleanProjects(cwd) {
391
301
 
392
302
  // src/monorepo/git.ts
393
303
  init_esm_shims();
394
- var import_get_value = __toESM(require_get_value(), 1);
304
+
305
+ // ../../node_modules/.pnpm/get-value@4.0.1/node_modules/get-value/dist/index.mjs
306
+ init_esm_shims();
307
+ var __defProp2 = Object.defineProperty;
308
+ var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
309
+ var isObject = /* @__PURE__ */ __name((v) => v !== null && typeof v === "object", "isObject");
310
+ var join = /* @__PURE__ */ __name((segs, joinChar, options) => {
311
+ if (typeof options.join === "function") {
312
+ return options.join(segs);
313
+ }
314
+ return segs[0] + joinChar + segs[1];
315
+ }, "join");
316
+ var split = /* @__PURE__ */ __name((path9, splitChar, options) => {
317
+ if (typeof options.split === "function") {
318
+ return options.split(path9);
319
+ }
320
+ return path9.split(splitChar);
321
+ }, "split");
322
+ var isValid = /* @__PURE__ */ __name((key, target = {}, options) => {
323
+ if (typeof options?.isValid === "function") {
324
+ return options.isValid(key, target);
325
+ }
326
+ return true;
327
+ }, "isValid");
328
+ var isValidObject = /* @__PURE__ */ __name((v) => {
329
+ return isObject(v) || typeof v === "function";
330
+ }, "isValidObject");
331
+ var getValue = /* @__PURE__ */ __name((target, path9, options = {}) => {
332
+ if (!isObject(options)) {
333
+ options = { default: options };
334
+ }
335
+ if (!isValidObject(target)) {
336
+ return typeof options.default !== "undefined" ? options.default : target;
337
+ }
338
+ if (typeof path9 === "number") {
339
+ path9 = String(path9);
340
+ }
341
+ const pathIsArray = Array.isArray(path9);
342
+ const pathIsString = typeof path9 === "string";
343
+ const splitChar = options.separator || ".";
344
+ const joinChar = options.joinChar || (typeof splitChar === "string" ? splitChar : ".");
345
+ if (!pathIsString && !pathIsArray) {
346
+ return target;
347
+ }
348
+ if (target[path9] !== void 0) {
349
+ return isValid(path9, target, options) ? target[path9] : options.default;
350
+ }
351
+ const segs = pathIsArray ? path9 : split(path9, splitChar, options);
352
+ const len = segs.length;
353
+ let idx = 0;
354
+ do {
355
+ let prop = segs[idx];
356
+ if (typeof prop !== "string") {
357
+ prop = String(prop);
358
+ }
359
+ while (prop && prop.slice(-1) === "\\") {
360
+ prop = join([prop.slice(0, -1), segs[++idx] || ""], joinChar, options);
361
+ }
362
+ if (target[prop] !== void 0) {
363
+ if (!isValid(prop, target, options)) {
364
+ return options.default;
365
+ }
366
+ target = target[prop];
367
+ } else {
368
+ let hasProp = false;
369
+ let n = idx + 1;
370
+ while (n < len) {
371
+ prop = join([prop, segs[n++]], joinChar, options);
372
+ if (hasProp = target[prop] !== void 0) {
373
+ if (!isValid(prop, target, options)) {
374
+ return options.default;
375
+ }
376
+ target = target[prop];
377
+ idx = n - 1;
378
+ break;
379
+ }
380
+ }
381
+ if (!hasProp) {
382
+ return options.default;
383
+ }
384
+ }
385
+ } while (++idx < len && isValidObject(target));
386
+ if (idx === len) {
387
+ return target;
388
+ }
389
+ return options.default;
390
+ }, "getValue");
391
+ var index_default = getValue;
392
+
393
+ // src/monorepo/git.ts
395
394
  import gitUrlParse from "git-url-parse";
396
395
  import { simpleGit } from "simple-git";
397
396
  var GitClient = class {
@@ -417,7 +416,7 @@ var GitClient = class {
417
416
  }
418
417
  async getGitUrl() {
419
418
  const config = await this.getConfig();
420
- const x = (0, import_get_value.default)(config, "remote.origin.url");
419
+ const x = index_default(config, "remote.origin.url");
421
420
  if (x) {
422
421
  return gitUrlParse(x);
423
422
  }
@@ -430,8 +429,8 @@ var GitClient = class {
430
429
  }
431
430
  async getUser() {
432
431
  const config = await this.getConfig();
433
- const name2 = (0, import_get_value.default)(config, "user.name");
434
- const email = (0, import_get_value.default)(config, "user.email");
432
+ const name2 = index_default(config, "user.name");
433
+ const email = index_default(config, "user.email");
435
434
  return {
436
435
  name: name2,
437
436
  email
@@ -728,9 +727,8 @@ import process from "node:process";
728
727
  import { fileURLToPath } from "node:url";
729
728
  import checkbox from "@inquirer/checkbox";
730
729
  import confirm from "@inquirer/confirm";
731
- var import_get_value2 = __toESM(require_get_value(), 1);
732
- var import_set_value4 = __toESM(require_set_value(), 1);
733
730
  import fs5 from "fs-extra";
731
+ var import_set_value4 = __toESM(require_set_value(), 1);
734
732
  import klaw from "klaw";
735
733
  import PQueue2 from "p-queue";
736
734
  import path8 from "pathe";
@@ -741,7 +739,7 @@ init_esm_shims();
741
739
 
742
740
  // package.json
743
741
  var name = "@icebreakers/monorepo";
744
- var version = "0.6.21";
742
+ var version = "0.6.24";
745
743
 
746
744
  // src/scripts.ts
747
745
  init_esm_shims();
@@ -776,7 +774,8 @@ function getAssetTargets(raw) {
776
774
  // turbo
777
775
  "turbo.json",
778
776
  // vitest
779
- "vitest.workspace.ts",
777
+ "vitest.config.ts",
778
+ // 'vitest.workspace.ts',
780
779
  // #region docker
781
780
  "Dockerfile",
782
781
  ".dockerignore"
@@ -800,11 +799,11 @@ function isWorkspace(version2) {
800
799
  return false;
801
800
  }
802
801
  function setPkgJson(sourcePkgJson, targetPkgJson) {
803
- const packageManager = (0, import_get_value2.default)(sourcePkgJson, "packageManager", { default: "" });
804
- const deps = (0, import_get_value2.default)(sourcePkgJson, "dependencies", { default: {} });
805
- const devDeps = (0, import_get_value2.default)(sourcePkgJson, "devDependencies", { default: {} });
806
- const targetDeps = (0, import_get_value2.default)(targetPkgJson, "dependencies", { default: {} });
807
- const targetDevDeps = (0, import_get_value2.default)(targetPkgJson, "devDependencies", { default: {} });
802
+ const packageManager = index_default(sourcePkgJson, "packageManager", { default: "" });
803
+ const deps = index_default(sourcePkgJson, "dependencies", { default: {} });
804
+ const devDeps = index_default(sourcePkgJson, "devDependencies", { default: {} });
805
+ const targetDeps = index_default(targetPkgJson, "dependencies", { default: {} });
806
+ const targetDevDeps = index_default(targetPkgJson, "devDependencies", { default: {} });
808
807
  (0, import_set_value4.default)(targetPkgJson, "packageManager", packageManager);
809
808
  Object.entries(deps).forEach((x) => {
810
809
  if (!isWorkspace(targetDeps[x[0]])) {
@@ -960,11 +959,11 @@ set-value/index.js:
960
959
  * Released under the MIT License.
961
960
  *)
962
961
 
963
- get-value/index.js:
962
+ get-value/dist/index.mjs:
964
963
  (*!
965
964
  * get-value <https://github.com/jonschlinkert/get-value>
966
965
  *
967
- * Copyright (c) 2014-2018, Jon Schlinkert.
966
+ * Copyright (c) 2014-present, Jon Schlinkert.
968
967
  * Released under the MIT License.
969
968
  *)
970
969
  */