elrh-cosca 0.3.5 → 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/LICENSE +21 -21
- package/README.md +419 -265
- 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 +489 -15390
- package/dist/types/index.d.ts +1 -1
- package/dist/types/src/_private/fetch-file.d.ts +1 -0
- package/dist/types/src/checks/get-package-manager.d.ts +6 -0
- package/dist/types/src/checks/has-json-key.d.ts +11 -0
- package/dist/types/src/checks/has-text.d.ts +12 -0
- package/dist/types/src/checks/has-yaml-key.d.ts +11 -0
- package/dist/types/src/checks/path-exists.d.ts +10 -0
- package/dist/types/src/functions/create-file-from-template.d.ts +13 -0
- package/dist/types/src/functions/create-file-from-web-template.d.ts +13 -0
- package/dist/types/src/functions/delete-path.d.ts +12 -0
- package/dist/types/src/functions/remove-from-json-file.d.ts +13 -0
- package/dist/types/src/functions/remove-from-text-file.d.ts +13 -0
- package/dist/types/src/functions/remove-from-yaml-file.d.ts +13 -0
- package/dist/types/src/functions/update-config-file.d.ts +20 -0
- package/dist/types/src/functions/update-json-file.d.ts +15 -0
- package/dist/types/src/functions/update-text-file.d.ts +15 -0
- package/dist/types/src/functions/update-yaml-file.d.ts +15 -0
- package/dist/types/src/main.d.ts +23 -0
- package/dist/types/src/terminal/prompt-user.d.ts +11 -0
- package/dist/types/src/terminal/show-error.d.ts +9 -0
- package/dist/types/src/terminal/show-message.d.ts +9 -0
- 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 +10 -0
- package/dist/types/{utils → src/utils}/parse-qualified-path.d.ts +4 -2
- package/dist/types/src/utils/resolve-package-path.d.ts +12 -0
- package/dist/types/test/checks-get-package-manager.test.d.ts +1 -0
- package/dist/types/test/checks-has-json-key.test.d.ts +1 -0
- package/dist/types/test/checks-has-text.test.d.ts +1 -0
- package/dist/types/test/checks-has-yaml-key.test.d.ts +1 -0
- package/dist/types/test/checks-path-exists.test.d.ts +1 -0
- package/dist/types/test/cosca-test-setup.d.ts +1 -0
- package/dist/types/test/cosca-test-utils.d.ts +45 -0
- package/dist/types/test/fixtures/config-file-default.d.ts +10 -0
- package/dist/types/test/fixtures/config-file-named.d.ts +9 -0
- package/dist/types/test/functions-create-file-from-template.test.d.ts +1 -0
- package/dist/types/test/functions-create-file-from-web-template.test.d.ts +1 -0
- package/dist/types/test/functions-delete-path.test.d.ts +1 -0
- package/dist/types/test/functions-remove-from-json-file.test.d.ts +1 -0
- package/dist/types/test/functions-remove-from-text-file.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-config-file.test.d.ts +1 -0
- package/dist/types/test/functions-update-json-file.test.d.ts +1 -0
- package/dist/types/test/functions-update-text-file.test.d.ts +1 -0
- package/dist/types/test/functions-update-yaml-file.test.d.ts +1 -0
- package/dist/types/test/private-check-path.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/dist/types/test/snapshots/updated-config-file-default-1.d.ts +13 -0
- package/dist/types/test/snapshots/updated-config-file-default-2.d.ts +14 -0
- package/dist/types/test/snapshots/updated-config-file-default-3.d.ts +16 -0
- package/dist/types/test/snapshots/updated-config-file-default-4.d.ts +18 -0
- package/dist/types/test/snapshots/updated-config-file-named-1.d.ts +12 -0
- package/dist/types/test/snapshots/updated-config-file-named-2.d.ts +13 -0
- package/dist/types/test/snapshots/updated-config-file-named-3.d.ts +15 -0
- package/dist/types/test/snapshots/updated-config-file-named-4.d.ts +17 -0
- package/dist/types/test/terminal-prompt-user.test.d.ts +1 -0
- package/dist/types/test/terninal-show-error.test.d.ts +1 -0
- package/dist/types/test/terninal-show-message.test.d.ts +1 -0
- package/dist/types/test/utils-get-env-value.test.d.ts +1 -0
- package/dist/types/test/utils-parse-qualified-path.test.d.ts +1 -0
- package/dist/types/test/utils-resolve-package-path.test.d.ts +1 -0
- package/package.json +15 -11
- package/test/cosca-test.js +55 -55
- package/dist/types/_private/fetch-file.d.ts +0 -1
- package/dist/types/checks/get-package-manager.d.ts +0 -6
- package/dist/types/checks/has-json-key.d.ts +0 -9
- package/dist/types/checks/has-text.d.ts +0 -10
- package/dist/types/checks/path-exists.d.ts +0 -8
- package/dist/types/functions/create-file-from-template.d.ts +0 -11
- package/dist/types/functions/create-file-from-web-template.d.ts +0 -11
- package/dist/types/functions/delete-path.d.ts +0 -10
- package/dist/types/functions/remove-from-json-file.d.ts +0 -11
- package/dist/types/functions/update-config-file.d.ts +0 -14
- package/dist/types/functions/update-json-file.d.ts +0 -13
- package/dist/types/functions/update-text-file.d.ts +0 -11
- package/dist/types/main.d.ts +0 -18
- package/dist/types/terminal/prompt-user.d.ts +0 -11
- package/dist/types/terminal/show-error.d.ts +0 -7
- package/dist/types/terminal/show-message.d.ts +0 -7
- package/dist/types/types/json.d.ts +0 -6
- package/dist/types/utils/get-env-value.d.ts +0 -8
- package/dist/types/utils/resolve-package-path.d.ts +0 -10
- /package/dist/types/{_private → src/_private}/check-path.d.ts +0 -0
- /package/dist/types/{_private → src/_private}/deep-merge-object.d.ts +0 -0
|
@@ -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 };
|