@kirschbaum-development/sst-laravel 0.0.20 → 0.0.21

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.
package/laravel-sst.ts CHANGED
@@ -4,12 +4,12 @@ import * as path from 'path';
4
4
  import * as fs from 'fs';
5
5
  import { Component } from "../../../.sst/platform/src/components/component.js";
6
6
  import { FunctionArgs } from "../../../.sst/platform/src/components/aws/function.js";;
7
- import { ComponentResourceOptions, Output, all, output } from "../../../.sst/platform/node_modules/@pulumi/pulumi";
7
+ import { ComponentResourceOptions, Output, all, output } from "@pulumi/pulumi";
8
8
  import { Input } from "../../../.sst/platform/src/components/input.js";
9
9
  import { ClusterArgs } from "../../../.sst/platform/src/components/aws/cluster.js";
10
10
  import { ServiceArgs } from "../../../.sst/platform/src/components/aws/service.js";
11
11
  import { Dns } from "../../../.sst/platform/src/components/dns.js";
12
- import { applyLinkedResourcesEnv, EnvCallback, EnvCallbacks } from "./src/laravel-env.js";
12
+ import { applyLinkedResourcesEnv, EnvCallback, EnvCallbacks } from "./src/laravel-env";
13
13
 
14
14
  // duplicate from cluster.ts
15
15
  type Port = `${number}/${"http" | "https" | "tcp" | "udp" | "tcp_udp" | "tls"}`;
@@ -484,12 +484,12 @@ export class LaravelService extends Component {
484
484
  };
485
485
 
486
486
  const envFile = path.resolve(pluginBuildPath, 'deploy', '.env');
487
-
487
+
488
488
  all(Object.entries(resourcesEnvVars)).apply(entries => {
489
489
  const envContent = entries
490
490
  .map(([key, value]) => `${key}=${value}`)
491
491
  .join('\n');
492
-
492
+
493
493
  if (envContent) {
494
494
  fs.appendFileSync(envFile, '\n' + envContent);
495
495
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kirschbaum-development/sst-laravel",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "type": "module",
5
5
  "description": "An unofficial extension of SST to deploy containerized Laravel applications to AWS Fargate.",
6
6
  "main": "laravel-sst.ts",
@@ -46,6 +46,8 @@
46
46
  "dependencies": {
47
47
  "@aws-sdk/client-ecs": "^3.0.0",
48
48
  "@inquirer/prompts": "^7.0.0",
49
+ "@pulumi/aws": "^7.8.0",
50
+ "@pulumi/pulumi": "^3.203.0",
49
51
  "commander": "^12.0.0"
50
52
  },
51
53
  "devDependencies": {
@@ -2,8 +2,8 @@ import { Email } from "../../../../.sst/platform/src/components/aws/email.js";
2
2
  import { Mysql } from "../../../../.sst/platform/src/components/aws/mysql.js";
3
3
  import { Postgres } from "../../../../.sst/platform/src/components/aws/postgres.js";
4
4
  import { Redis } from "../../../../.sst/platform/src/components/aws/redis.js";
5
- import { Output } from "../../../../.sst/platform/node_modules/@pulumi/pulumi";
6
- import * as pulumiAws from "../../../../.sst/platform/node_modules/@pulumi/aws";
5
+ import { Output } from "@pulumi/pulumi";
6
+ import * as pulumiAws from "@pulumi/aws";
7
7
  import { Queue } from "../../../../.sst/platform/src/components/aws/queue.js";
8
8
  import { Aurora } from "../../../../.sst/platform/src/components/aws/aurora.js";
9
9
  import { Bucket } from "../../../../.sst/platform/src/components/aws/bucket.js";
@@ -128,7 +128,6 @@ export function applyRedisEnv(database: Redis): EnvType {
128
128
  };
129
129
  }
130
130
 
131
- // TODO
132
131
  export function applyEmailEnv(mail: Email): EnvType {
133
132
  return {
134
133
  MAIL_MAILER: 'ses',
@@ -136,13 +135,11 @@ export function applyEmailEnv(mail: Email): EnvType {
136
135
  };
137
136
  }
138
137
 
139
- // TODO
140
138
  export function applyQueueEnv(queue: Queue): EnvType {
141
139
  const queueUrl: Output<string> = queue.url;
142
140
 
143
141
  return {
144
142
  SQS_QUEUE: queue.url,
145
- // MAIL_FROM_ADDRESS: link.sender,
146
143
  };
147
144
  }
148
145