@cat-hou-se/pulumi 0.0.0-stage → 0.1.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 +4 -2
- package/dist/components/index.d.mts +1 -0
- package/dist/components/index.mjs +1 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +27 -0
- package/package.json +38 -3
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @cat-hou-se/pulumi
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Pulumi 프로젝트가 공유하는 스택 진입점 `collect()`와 공통 컴포넌트를 담는 패키지다.
|
|
4
|
+
|
|
5
|
+
[스택 결정 기록](docs/fixed/스택.md)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.mts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { pathToFileURL } from "node:url";
|
|
2
|
+
import fg from "fast-glob";
|
|
3
|
+
// src/collect.ts
|
|
4
|
+
async function collect({ cwd = process.cwd() } = {}) {
|
|
5
|
+
const paths = await fg("**/*.ts", {
|
|
6
|
+
cwd,
|
|
7
|
+
absolute: true,
|
|
8
|
+
ignore: [
|
|
9
|
+
"**/index.ts",
|
|
10
|
+
"**/ref.ts",
|
|
11
|
+
"**/*.test.ts",
|
|
12
|
+
"**/*.d.ts",
|
|
13
|
+
"**/node_modules/**"
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
const modules = await Promise.all(paths.map((path) => import(pathToFileURL(path).href)));
|
|
17
|
+
const outputs = /* @__PURE__ */ new Map();
|
|
18
|
+
for (const mod of modules) {
|
|
19
|
+
if (!mod.outputs) continue;
|
|
20
|
+
for (const [key, value] of Object.entries(mod.outputs)) {
|
|
21
|
+
if (outputs.has(key)) throw new Error(`[collect] outputs 키 충돌: "${key}"가 중복 정의됨`);
|
|
22
|
+
outputs.set(key, value);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return Object.fromEntries(outputs);
|
|
26
|
+
}
|
|
27
|
+
export { collect };
|
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-hou-se/pulumi",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "UNLICENSED",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.mts",
|
|
9
|
+
"import": "./dist/index.mjs"
|
|
10
|
+
},
|
|
11
|
+
"./components": {
|
|
12
|
+
"types": "./dist/components/index.d.mts",
|
|
13
|
+
"import": "./dist/components/index.mjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"fast-glob": "3.3.3"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@pulumi/pulumi": "^3.277.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@pulumi/pulumi": "3.277.0",
|
|
30
|
+
"@types/node": "26.6.6",
|
|
31
|
+
"tsdown": "0.23.7",
|
|
32
|
+
"typescript": "7.0.2",
|
|
33
|
+
"vitest": "5.1.1"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsdown",
|
|
37
|
+
"typecheck": "tsc --noEmit",
|
|
38
|
+
"lint": "biome check .",
|
|
39
|
+
"test": "vitest run"
|
|
40
|
+
}
|
|
6
41
|
}
|