We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ece3c8e commit 1bdf5bcCopy full SHA for 1bdf5bc
1 file changed
src/package.ts
@@ -10,11 +10,11 @@ export function packagePhpCode(
10
path: string | undefined = undefined,
11
options: AssetOptions = {}
12
): Code {
13
- path = path ?? functionDefaults.path;
+ const resolvedPath = path ?? functionDefaults.path;
14
// Prepend the PHP paths excluded by default
15
const exclude = [...functionDefaults.excludedPhpPaths, ...(options.exclude ?? [])];
16
17
- return Code.fromAsset(path, {
+ return Code.fromAsset(resolvedPath, {
18
...options,
19
exclude,
20
});
0 commit comments