@beesolve/cdk-constructs 0.1.7 → 0.1.9
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/index.js +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
import { buildSync } from "esbuild";
|
|
184
184
|
import { execSync } from "node:child_process";
|
|
185
185
|
import { resolve } from "node:path";
|
|
186
|
-
|
|
186
|
+
import { cwd } from "node:process";
|
|
187
187
|
|
|
188
188
|
class Nodejs24Function extends Function {
|
|
189
189
|
constructor(scope, id, props) {
|
|
@@ -199,10 +199,9 @@ class Nodejs24Function extends Function {
|
|
|
199
199
|
revision = true,
|
|
200
200
|
...rest
|
|
201
201
|
} = props;
|
|
202
|
-
const outDir = resolve(`${
|
|
203
|
-
console.log({ outDir });
|
|
202
|
+
const outDir = resolve(`${cwd()}/cdk.out/bundling.${id}.beesolve-nodejs.${Date.now()}`);
|
|
204
203
|
const buildResult = buildSync({
|
|
205
|
-
entryPoints: [entry],
|
|
204
|
+
entryPoints: [`${cwd()}/${entry}`],
|
|
206
205
|
banner: {
|
|
207
206
|
js: `/* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */`
|
|
208
207
|
},
|