elrh-cosca 0.3.6 → 0.4.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/README.md +237 -99
- package/dist/chunks/magicast-B0ixXlDw.mjs +14033 -0
- package/dist/chunks/rolldown-runtime-Dqa2HsxW.mjs +20 -0
- package/dist/chunks/yaml-BwPmYYDT.mjs +4297 -0
- package/dist/elrh-cosca.mjs +328 -14157
- package/dist/types/src/_private/fetch-file.d.ts +1 -1
- package/dist/types/src/checks/get-package-manager.d.ts +2 -2
- package/dist/types/src/checks/has-json-key.d.ts +5 -3
- package/dist/types/src/checks/has-text.d.ts +6 -4
- package/dist/types/src/checks/has-yaml-key.d.ts +11 -0
- package/dist/types/src/checks/path-exists.d.ts +6 -4
- package/dist/types/src/functions/create-file-from-template.d.ts +10 -8
- package/dist/types/src/functions/create-file-from-web-template.d.ts +10 -8
- package/dist/types/src/functions/delete-path.d.ts +9 -7
- package/dist/types/src/functions/remove-from-json-file.d.ts +8 -6
- package/dist/types/src/functions/remove-from-text-file.d.ts +8 -6
- package/dist/types/src/functions/remove-from-yaml-file.d.ts +13 -0
- package/dist/types/src/functions/update-config-file.d.ts +13 -7
- package/dist/types/src/functions/update-json-file.d.ts +12 -10
- package/dist/types/src/functions/update-text-file.d.ts +11 -7
- package/dist/types/src/functions/update-yaml-file.d.ts +15 -0
- package/dist/types/src/main.d.ts +5 -1
- package/dist/types/src/terminal/prompt-user.d.ts +8 -8
- package/dist/types/src/terminal/show-error.d.ts +5 -3
- package/dist/types/src/terminal/show-message.d.ts +5 -3
- package/dist/types/src/types/data.d.ts +6 -0
- package/dist/types/src/types/functions.d.ts +99 -0
- package/dist/types/src/utils/get-env-value.d.ts +6 -4
- package/dist/types/src/utils/parse-qualified-path.d.ts +4 -2
- package/dist/types/src/utils/resolve-package-path.d.ts +7 -5
- package/dist/types/test/checks-has-yaml-key.test.d.ts +1 -0
- package/dist/types/test/functions-remove-from-yaml-file.test.d.ts +1 -0
- package/dist/types/test/functions-update-yaml-file.test.d.ts +1 -0
- package/dist/types/test/private-deep-merge-object.test.d.ts +1 -0
- package/dist/types/test/private-fetch-file.test.d.ts +1 -0
- package/dist/types/test/snapshots/created-config-file.d.ts +7 -0
- package/package.json +15 -11
- package/test/cosca-test.js +17 -17
- package/dist/types/src/types/json.d.ts +0 -6
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
|
|
3
|
+
let r = {};
|
|
4
|
+
for (var i in e) t(r, i, {
|
|
5
|
+
get: e[i],
|
|
6
|
+
enumerable: !0
|
|
7
|
+
});
|
|
8
|
+
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
+
}, c = (e, i, o, s) => {
|
|
10
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
11
|
+
get: ((e) => i[e]).bind(null, d),
|
|
12
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
|
+
});
|
|
14
|
+
return e;
|
|
15
|
+
}, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
|
|
16
|
+
value: n,
|
|
17
|
+
enumerable: !0
|
|
18
|
+
}) : a, n));
|
|
19
|
+
//#endregion
|
|
20
|
+
export { s as n, l as r, o as t };
|