puls-dev 0.2.3 → 0.2.4

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.
@@ -1,8 +1,5 @@
1
1
  import "reflect-metadata";
2
2
  import { Config } from "./config.js";
3
- import { listProxmoxVMs } from "../providers/proxmox/list.js";
4
- import { listDoResources } from "../providers/do/list.js";
5
- import { listAwsResources } from "../providers/aws/list.js";
6
3
  function clip(text, width) {
7
4
  return text.length > width
8
5
  ? text.slice(0, width - 1) + "…"
@@ -135,7 +132,8 @@ export class Checker {
135
132
  const tasks = [];
136
133
  console.log(`\nšŸ” Checking infrastructure...`);
137
134
  if (cfg.providers.proxmox?.url && cfg.providers.proxmox?.tokenSecret) {
138
- tasks.push(listProxmoxVMs()
135
+ tasks.push(import("../providers/proxmox/list.js")
136
+ .then((m) => m.listProxmoxVMs())
139
137
  .then((inv) => {
140
138
  result.proxmox = inv;
141
139
  })
@@ -144,7 +142,8 @@ export class Checker {
144
142
  }));
145
143
  }
146
144
  if (cfg.providers.do?.token) {
147
- tasks.push(listDoResources()
145
+ tasks.push(import("../providers/do/list.js")
146
+ .then((m) => m.listDoResources())
148
147
  .then((inv) => {
149
148
  result.do = inv;
150
149
  })
@@ -153,7 +152,8 @@ export class Checker {
153
152
  }));
154
153
  }
155
154
  if (cfg.providers.aws?.region) {
156
- tasks.push(listAwsResources()
155
+ tasks.push(import("../providers/aws/list.js")
156
+ .then((m) => m.listAwsResources())
157
157
  .then((inv) => {
158
158
  result.aws = inv;
159
159
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puls-dev",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Intent-driven infrastructure-as-code with eager discovery and no state files.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",