Skip to content

Commit

Permalink
re-add index.js in cli as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kreddlear committed Feb 4, 2025
1 parent eb333e9 commit 1321ff5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/cli/src/utils/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ const writeZipFromPaths = (dir, zipPath, paths) => {
};

const makeZip = async (dir, zipPath, disableDependencyDetection) => {
const entryPoints = [path.resolve(dir, 'zapierwrapper.js'), dir];
const entryPoints = [
path.resolve(dir, 'zapierwrapper.js'),
path.resolve(dir, 'index.js'),
];

let paths;

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const getLocalAppHandler = async () => {
let appRaw, zapier;

try {
appRaw = await import(process.cwd());
appRaw = await import(`${process.cwd()}/index.js`);
zapier = require(corePackageDir);
} catch (err) {
// this err.stack doesn't give a nice traceback at all :-(
Expand Down

0 comments on commit 1321ff5

Please sign in to comment.