@kitsy/cnos 0.0.1
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 -0
- package/README.md +3 -0
- package/dist/index.cjs +75 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +56 -0
- package/dist/plugin/basic-schema.cjs +24 -0
- package/dist/plugin/basic-schema.d.cts +6 -0
- package/dist/plugin/basic-schema.d.ts +6 -0
- package/dist/plugin/basic-schema.js +2 -0
- package/dist/plugin/cli-args.cjs +24 -0
- package/dist/plugin/cli-args.d.cts +1 -0
- package/dist/plugin/cli-args.d.ts +1 -0
- package/dist/plugin/cli-args.js +2 -0
- package/dist/plugin/dotenv.cjs +24 -0
- package/dist/plugin/dotenv.d.cts +1 -0
- package/dist/plugin/dotenv.d.ts +1 -0
- package/dist/plugin/dotenv.js +2 -0
- package/dist/plugin/env-export.cjs +24 -0
- package/dist/plugin/env-export.d.cts +1 -0
- package/dist/plugin/env-export.d.ts +1 -0
- package/dist/plugin/env-export.js +2 -0
- package/dist/plugin/filesystem.cjs +24 -0
- package/dist/plugin/filesystem.d.cts +1 -0
- package/dist/plugin/filesystem.d.ts +1 -0
- package/dist/plugin/filesystem.js +2 -0
- package/dist/plugin/process-env.cjs +24 -0
- package/dist/plugin/process-env.d.cts +1 -0
- package/dist/plugin/process-env.d.ts +1 -0
- package/dist/plugin/process-env.js +2 -0
- package/package.json +84 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 kitsy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
createCnos: () => createCnos,
|
|
24
|
+
defaultPlugins: () => defaultPlugins,
|
|
25
|
+
planDump: () => import_cnos_core3.planDump,
|
|
26
|
+
toEnv: () => import_cnos_core3.toEnv,
|
|
27
|
+
toPublicEnv: () => import_cnos_core3.toPublicEnv,
|
|
28
|
+
writeDump: () => import_cnos_core3.writeDump
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(index_exports);
|
|
31
|
+
|
|
32
|
+
// src/createCnos.ts
|
|
33
|
+
var import_cnos_core2 = require("@kitsy/cnos-core");
|
|
34
|
+
|
|
35
|
+
// src/defaultPlugins.ts
|
|
36
|
+
var import_cnos_core = require("@kitsy/cnos-core");
|
|
37
|
+
var import_cnos_plugin_basic_schema = require("@kitsy/cnos-plugin-basic-schema");
|
|
38
|
+
var import_cnos_plugin_cli_args = require("@kitsy/cnos-plugin-cli-args");
|
|
39
|
+
var import_cnos_plugin_dotenv = require("@kitsy/cnos-plugin-dotenv");
|
|
40
|
+
var import_cnos_plugin_env_export = require("@kitsy/cnos-plugin-env-export");
|
|
41
|
+
var import_cnos_plugin_filesystem = require("@kitsy/cnos-plugin-filesystem");
|
|
42
|
+
var import_cnos_plugin_process_env = require("@kitsy/cnos-plugin-process-env");
|
|
43
|
+
function defaultPlugins() {
|
|
44
|
+
return [
|
|
45
|
+
(0, import_cnos_plugin_filesystem.createFilesystemValuesPlugin)(),
|
|
46
|
+
(0, import_cnos_plugin_filesystem.createFilesystemSecretsPlugin)(),
|
|
47
|
+
(0, import_cnos_plugin_dotenv.createDotenvPlugin)(),
|
|
48
|
+
(0, import_cnos_plugin_process_env.createProcessEnvPlugin)(),
|
|
49
|
+
(0, import_cnos_plugin_cli_args.createCliArgsPlugin)(),
|
|
50
|
+
(0, import_cnos_plugin_basic_schema.createBasicSchemaPlugin)(),
|
|
51
|
+
(0, import_cnos_plugin_env_export.createEnvExportPlugin)(),
|
|
52
|
+
(0, import_cnos_plugin_env_export.createPublicEnvExportPlugin)(),
|
|
53
|
+
(0, import_cnos_core.createProvenanceInspector)()
|
|
54
|
+
];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// src/createCnos.ts
|
|
58
|
+
async function createCnos(options = {}) {
|
|
59
|
+
return (0, import_cnos_core2.createCnos)({
|
|
60
|
+
...options,
|
|
61
|
+
plugins: [...defaultPlugins(), ...options.plugins ?? []]
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// src/index.ts
|
|
66
|
+
var import_cnos_core3 = require("@kitsy/cnos-core");
|
|
67
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
+
0 && (module.exports = {
|
|
69
|
+
createCnos,
|
|
70
|
+
defaultPlugins,
|
|
71
|
+
planDump,
|
|
72
|
+
toEnv,
|
|
73
|
+
toPublicEnv,
|
|
74
|
+
writeDump
|
|
75
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CnosCreateOptions, CnosRuntime, CnosPlugin } from '@kitsy/cnos-core';
|
|
2
|
+
export { CnosCreateOptions, CnosPlugin, CnosRuntime, ConfigEntry, DumpOptions, DumpPlan, DumpPlanOptions, DumpResult, InspectResult, LoaderPlugin, LogicalKey, ManifestFile, NormalizedManifest, ToEnvOptions, ToPublicEnvOptions, planDump, toEnv, toPublicEnv, writeDump } from '@kitsy/cnos-core';
|
|
3
|
+
|
|
4
|
+
declare function createCnos(options?: CnosCreateOptions): Promise<CnosRuntime>;
|
|
5
|
+
|
|
6
|
+
declare function defaultPlugins(): CnosPlugin[];
|
|
7
|
+
|
|
8
|
+
export { createCnos, defaultPlugins };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CnosCreateOptions, CnosRuntime, CnosPlugin } from '@kitsy/cnos-core';
|
|
2
|
+
export { CnosCreateOptions, CnosPlugin, CnosRuntime, ConfigEntry, DumpOptions, DumpPlan, DumpPlanOptions, DumpResult, InspectResult, LoaderPlugin, LogicalKey, ManifestFile, NormalizedManifest, ToEnvOptions, ToPublicEnvOptions, planDump, toEnv, toPublicEnv, writeDump } from '@kitsy/cnos-core';
|
|
3
|
+
|
|
4
|
+
declare function createCnos(options?: CnosCreateOptions): Promise<CnosRuntime>;
|
|
5
|
+
|
|
6
|
+
declare function defaultPlugins(): CnosPlugin[];
|
|
7
|
+
|
|
8
|
+
export { createCnos, defaultPlugins };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// src/createCnos.ts
|
|
2
|
+
import {
|
|
3
|
+
createCnos as createCoreCnos
|
|
4
|
+
} from "@kitsy/cnos-core";
|
|
5
|
+
|
|
6
|
+
// src/defaultPlugins.ts
|
|
7
|
+
import { createProvenanceInspector } from "@kitsy/cnos-core";
|
|
8
|
+
import { createBasicSchemaPlugin } from "@kitsy/cnos-plugin-basic-schema";
|
|
9
|
+
import { createCliArgsPlugin } from "@kitsy/cnos-plugin-cli-args";
|
|
10
|
+
import { createDotenvPlugin } from "@kitsy/cnos-plugin-dotenv";
|
|
11
|
+
import {
|
|
12
|
+
createEnvExportPlugin,
|
|
13
|
+
createPublicEnvExportPlugin
|
|
14
|
+
} from "@kitsy/cnos-plugin-env-export";
|
|
15
|
+
import {
|
|
16
|
+
createFilesystemSecretsPlugin,
|
|
17
|
+
createFilesystemValuesPlugin
|
|
18
|
+
} from "@kitsy/cnos-plugin-filesystem";
|
|
19
|
+
import { createProcessEnvPlugin } from "@kitsy/cnos-plugin-process-env";
|
|
20
|
+
function defaultPlugins() {
|
|
21
|
+
return [
|
|
22
|
+
createFilesystemValuesPlugin(),
|
|
23
|
+
createFilesystemSecretsPlugin(),
|
|
24
|
+
createDotenvPlugin(),
|
|
25
|
+
createProcessEnvPlugin(),
|
|
26
|
+
createCliArgsPlugin(),
|
|
27
|
+
createBasicSchemaPlugin(),
|
|
28
|
+
createEnvExportPlugin(),
|
|
29
|
+
createPublicEnvExportPlugin(),
|
|
30
|
+
createProvenanceInspector()
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// src/createCnos.ts
|
|
35
|
+
async function createCnos(options = {}) {
|
|
36
|
+
return createCoreCnos({
|
|
37
|
+
...options,
|
|
38
|
+
plugins: [...defaultPlugins(), ...options.plugins ?? []]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// src/index.ts
|
|
43
|
+
import {
|
|
44
|
+
planDump,
|
|
45
|
+
toEnv,
|
|
46
|
+
toPublicEnv,
|
|
47
|
+
writeDump
|
|
48
|
+
} from "@kitsy/cnos-core";
|
|
49
|
+
export {
|
|
50
|
+
createCnos,
|
|
51
|
+
defaultPlugins,
|
|
52
|
+
planDump,
|
|
53
|
+
toEnv,
|
|
54
|
+
toPublicEnv,
|
|
55
|
+
writeDump
|
|
56
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/plugin/basic-schema.ts
|
|
18
|
+
var basic_schema_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(basic_schema_exports);
|
|
20
|
+
__reExport(basic_schema_exports, require("@kitsy/cnos-plugin-basic-schema"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@kitsy/cnos-plugin-basic-schema")
|
|
24
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/plugin/cli-args.ts
|
|
18
|
+
var cli_args_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(cli_args_exports);
|
|
20
|
+
__reExport(cli_args_exports, require("@kitsy/cnos-plugin-cli-args"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@kitsy/cnos-plugin-cli-args")
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@kitsy/cnos-plugin-cli-args';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@kitsy/cnos-plugin-cli-args';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/plugin/dotenv.ts
|
|
18
|
+
var dotenv_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(dotenv_exports);
|
|
20
|
+
__reExport(dotenv_exports, require("@kitsy/cnos-plugin-dotenv"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@kitsy/cnos-plugin-dotenv")
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@kitsy/cnos-plugin-dotenv';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@kitsy/cnos-plugin-dotenv';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/plugin/env-export.ts
|
|
18
|
+
var env_export_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(env_export_exports);
|
|
20
|
+
__reExport(env_export_exports, require("@kitsy/cnos-plugin-env-export"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@kitsy/cnos-plugin-env-export")
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@kitsy/cnos-plugin-env-export';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@kitsy/cnos-plugin-env-export';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/plugin/filesystem.ts
|
|
18
|
+
var filesystem_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(filesystem_exports);
|
|
20
|
+
__reExport(filesystem_exports, require("@kitsy/cnos-plugin-filesystem"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@kitsy/cnos-plugin-filesystem")
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@kitsy/cnos-plugin-filesystem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@kitsy/cnos-plugin-filesystem';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/plugin/process-env.ts
|
|
18
|
+
var process_env_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(process_env_exports);
|
|
20
|
+
__reExport(process_env_exports, require("@kitsy/cnos-plugin-process-env"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@kitsy/cnos-plugin-process-env")
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@kitsy/cnos-plugin-process-env';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@kitsy/cnos-plugin-process-env';
|
package/package.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kitsy/cnos",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Batteries-included CNOS runtime package wired with the official plugins.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./plugin/filesystem": {
|
|
16
|
+
"types": "./dist/plugin/filesystem.d.ts",
|
|
17
|
+
"import": "./dist/plugin/filesystem.js",
|
|
18
|
+
"require": "./dist/plugin/filesystem.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./plugin/dotenv": {
|
|
21
|
+
"types": "./dist/plugin/dotenv.d.ts",
|
|
22
|
+
"import": "./dist/plugin/dotenv.js",
|
|
23
|
+
"require": "./dist/plugin/dotenv.cjs"
|
|
24
|
+
},
|
|
25
|
+
"./plugin/process-env": {
|
|
26
|
+
"types": "./dist/plugin/process-env.d.ts",
|
|
27
|
+
"import": "./dist/plugin/process-env.js",
|
|
28
|
+
"require": "./dist/plugin/process-env.cjs"
|
|
29
|
+
},
|
|
30
|
+
"./plugin/cli-args": {
|
|
31
|
+
"types": "./dist/plugin/cli-args.d.ts",
|
|
32
|
+
"import": "./dist/plugin/cli-args.js",
|
|
33
|
+
"require": "./dist/plugin/cli-args.cjs"
|
|
34
|
+
},
|
|
35
|
+
"./plugin/basic-schema": {
|
|
36
|
+
"types": "./dist/plugin/basic-schema.d.ts",
|
|
37
|
+
"import": "./dist/plugin/basic-schema.js",
|
|
38
|
+
"require": "./dist/plugin/basic-schema.cjs"
|
|
39
|
+
},
|
|
40
|
+
"./plugin/env-export": {
|
|
41
|
+
"types": "./dist/plugin/env-export.d.ts",
|
|
42
|
+
"import": "./dist/plugin/env-export.js",
|
|
43
|
+
"require": "./dist/plugin/env-export.cjs"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"dist"
|
|
48
|
+
],
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "https://github.com/kitsyai/cnos.git",
|
|
53
|
+
"directory": "packages/cnos"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/kitsyai/cnos/tree/main/packages/cnos",
|
|
56
|
+
"bugs": {
|
|
57
|
+
"url": "https://github.com/kitsyai/cnos/issues"
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"cnos",
|
|
61
|
+
"config",
|
|
62
|
+
"runtime"
|
|
63
|
+
],
|
|
64
|
+
"publishConfig": {
|
|
65
|
+
"access": "public"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@kitsy/cnos-plugin-cli-args": "0.0.1",
|
|
69
|
+
"@kitsy/cnos-plugin-env-export": "0.0.1",
|
|
70
|
+
"@kitsy/cnos-core": "0.0.1",
|
|
71
|
+
"@kitsy/cnos-plugin-basic-schema": "0.0.1",
|
|
72
|
+
"@kitsy/cnos-plugin-dotenv": "0.0.1",
|
|
73
|
+
"@kitsy/cnos-plugin-filesystem": "0.0.1",
|
|
74
|
+
"@kitsy/cnos-plugin-process-env": "0.0.1"
|
|
75
|
+
},
|
|
76
|
+
"scripts": {
|
|
77
|
+
"build": "tsup src/index.ts src/plugin/*.ts --format esm,cjs --dts",
|
|
78
|
+
"clean": "rimraf dist",
|
|
79
|
+
"dev": "tsup src/index.ts src/plugin/*.ts --watch --format esm,cjs --dts",
|
|
80
|
+
"lint": "eslint src test",
|
|
81
|
+
"test": "vitest run",
|
|
82
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
83
|
+
}
|
|
84
|
+
}
|