@effortless-aws/cli 0.9.0 → 0.9.2
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/dist/cli/index.js +16 -3
- package/package.json +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -4141,7 +4141,17 @@ var bareName = (expr) => {
|
|
|
4141
4141
|
const dot = expr.lastIndexOf(".");
|
|
4142
4142
|
return dot === -1 ? expr : expr.slice(dot + 1);
|
|
4143
4143
|
};
|
|
4144
|
-
var getProp = (obj, name) =>
|
|
4144
|
+
var getProp = (obj, name) => {
|
|
4145
|
+
for (const p of obj.getProperties()) {
|
|
4146
|
+
if (p.getKind() === SyntaxKind.PropertyAssignment && p.getName() === name) {
|
|
4147
|
+
return p.getInitializer();
|
|
4148
|
+
}
|
|
4149
|
+
if (p.getKind() === SyntaxKind.ShorthandPropertyAssignment && p.getName() === name) {
|
|
4150
|
+
return p.getNameNode();
|
|
4151
|
+
}
|
|
4152
|
+
}
|
|
4153
|
+
return void 0;
|
|
4154
|
+
};
|
|
4145
4155
|
var findDefineCalls = (sourceFile, defineFn) => {
|
|
4146
4156
|
const results = [];
|
|
4147
4157
|
const tryAdd = (callExpr, exportName) => {
|
|
@@ -4433,6 +4443,7 @@ var bundle = (input) => Effect24.gen(function* () {
|
|
|
4433
4443
|
const awsExternals = ["@aws-sdk/*", "@smithy/*"];
|
|
4434
4444
|
const nodeExternals = builtinModules.flatMap((m) => [m, `node:${m}`]);
|
|
4435
4445
|
const allExternals = [.../* @__PURE__ */ new Set([...awsExternals, ...nodeExternals, ...externals])];
|
|
4446
|
+
const format = input.format ?? "esm";
|
|
4436
4447
|
const result = yield* Effect24.tryPromise({
|
|
4437
4448
|
try: () => esbuild.build({
|
|
4438
4449
|
stdin: {
|
|
@@ -4446,9 +4457,11 @@ var bundle = (input) => Effect24.gen(function* () {
|
|
|
4446
4457
|
write: false,
|
|
4447
4458
|
minify: false,
|
|
4448
4459
|
sourcemap: false,
|
|
4449
|
-
format
|
|
4460
|
+
format,
|
|
4450
4461
|
external: allExternals,
|
|
4451
|
-
metafile: true
|
|
4462
|
+
metafile: true,
|
|
4463
|
+
// CJS packages bundled into ESM need a `require` function for Node.js builtins
|
|
4464
|
+
...format === "esm" ? { banner: { js: "import { createRequire } from 'module'; const require = createRequire(import.meta.url);" } } : {}
|
|
4452
4465
|
}),
|
|
4453
4466
|
catch: (error) => new Error(`esbuild failed: ${error}`)
|
|
4454
4467
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effortless-aws/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "CLI and deploy tooling for effortless-aws",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"esbuild": "^0.25.0",
|
|
40
40
|
"glob": "^13.0.0",
|
|
41
41
|
"ts-morph": "^27.0.2",
|
|
42
|
-
"effortless-aws": "0.24.
|
|
42
|
+
"effortless-aws": "0.24.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@effect-ak/aws-sdk": "1.0.0-rc.3",
|