@skuba-lib/api 3.0.0-add-cdk-NodejsFunction-20260618233139 → 3.0.0-add-cdk-NodejsFunction-20260620003026

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.
@@ -35,9 +35,9 @@ const findUp = (name, directory = process.cwd()) => {
35
35
  if (absoluteDirectory === root) return;
36
36
  return findUp(name, path.dirname(absoluteDirectory));
37
37
  };
38
- const extractDependencies = (pkgPath, modules) => {
38
+ const extractDependencies = (resolveFrom, modules) => {
39
39
  const result = {};
40
- const base = pathToFileURL(pkgPath);
40
+ const base = pathToFileURL(resolveFrom);
41
41
  for (const mod of modules) {
42
42
  let modPkgPath;
43
43
  try {
@@ -245,7 +245,7 @@ var Bundling = class Bundling {
245
245
  if (!nearestPackageJson) throw new ValidationError("Cannot find a package.json. Using nodeModules requires a package.json.");
246
246
  this.runHooks(this.props.commandHooks?.beforeInstall(this.props.projectRoot, outputDir) ?? [], this.props.projectRoot);
247
247
  writeOutputPackageJson(outputDir, {
248
- dependencies: extractDependencies(nearestPackageJson, nodeModules),
248
+ dependencies: extractDependencies(this.props.entry, nodeModules),
249
249
  packageManager: packageManagerField
250
250
  });
251
251
  const stagedFiles = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skuba-lib/api",
3
- "version": "3.0.0-add-cdk-NodejsFunction-20260618233139",
3
+ "version": "3.0.0-add-cdk-NodejsFunction-20260620003026",
4
4
  "description": "Node.js development API for skuba",
5
5
  "homepage": "https://github.com/seek-oss/skuba#readme",
6
6
  "bugs": {