Skip to content

Commit

Permalink
chore(style): format
Browse files Browse the repository at this point in the history
  • Loading branch information
eoinsha committed Jan 2, 2025
1 parent ea244ea commit 7ec2287
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions src/bundling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import type { BundlingOptions, ICommandHooks } from './types';

export const HASHABLE_DEPENDENCIES_EXCLUDE = [
'*.pyc',
"cdk/**",
".git/**",
".venv/**",
'cdk/**',
'.git/**',
'.venv/**',
];

export const DEFAULT_ASSET_EXCLUDES = [
Expand Down Expand Up @@ -71,7 +71,7 @@ export interface BundlingProps extends BundlingOptions {
/**
* Glob patterns to exclude from asset hash fingerprinting used for source change
* detection
*
*
* @default HASHABLE_DEPENDENCIES_EXCLUDE
*/
readonly hashableAssetExclude?: string[];
Expand All @@ -82,7 +82,10 @@ export interface BundlingProps extends BundlingOptions {
*/
export class Bundling {
public static bundle(options: BundlingProps): AssetCode {
const { hashableAssetExclude = HASHABLE_DEPENDENCIES_EXCLUDE, ...bundlingOptions } = options;
const {
hashableAssetExclude = HASHABLE_DEPENDENCIES_EXCLUDE,
...bundlingOptions
} = options;
return Code.fromAsset(options.rootDir, {
assetHashType: AssetHashType.SOURCE,
exclude: hashableAssetExclude,
Expand Down Expand Up @@ -114,13 +117,13 @@ export class Bundling {
const bundlingCommands = props.skip
? []
: this.createBundlingCommands({
rootDir,
workspacePackage,
assetExcludes,
commandHooks,
inputDir: AssetStaging.BUNDLING_INPUT_DIR,
outputDir: AssetStaging.BUNDLING_OUTPUT_DIR,
});
rootDir,
workspacePackage,
assetExcludes,
commandHooks,
inputDir: AssetStaging.BUNDLING_INPUT_DIR,
outputDir: AssetStaging.BUNDLING_OUTPUT_DIR,
});

this.image = image ?? this.createDockerImage(props);

Expand Down

0 comments on commit 7ec2287

Please sign in to comment.