Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
fix: empty dir pathing issues when bundling with sst (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranbrown authored Sep 24, 2024
1 parent e92b212 commit d703cc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Empty file.
6 changes: 3 additions & 3 deletions src/laravel/packaging/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import * as pulumi from '@pulumi/pulumi';
import * as aws from '@pulumi/aws';
import { fileURLToPath } from 'url';
import { dirname } from 'path';

const asset = pulumi.asset;

Expand All @@ -13,7 +11,9 @@ export class Package extends pulumi.ComponentResource {

const { projectRoot } = args;

const emptyDirAsset = new asset.FileArchive(`${dirname(fileURLToPath(import.meta.url))}/empty`);
const emptyDirAsset = new asset.AssetArchive({
'.gitkeep': new asset.StringAsset("\n"),
});

this.bucketObject = new aws.s3.BucketObjectv2('Archive', {
bucket: new aws.s3.Bucket('Code', {
Expand Down

0 comments on commit d703cc6

Please sign in to comment.