@kirschbaum-development/sst-laravel 0.0.10 → 0.0.13

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/README.md CHANGED
@@ -168,6 +168,8 @@ const app = new Laravel('MyLaravelApp', {
168
168
 
169
169
  The `DB_*`, `REDIS_*` and `AWS_*` environment variables will be automatically injected into your Laravel application.
170
170
 
171
+ You can also [import existing resources](https://sst.dev/docs/import-resources/) into SST, in case you already have resources like databases, buckets, etc. created and in use in your AWS account.
172
+
171
173
  #### Custom Environment Key Names
172
174
 
173
175
  If you need to customize the environment variable names for your resources, you can provide an object with the resource and a callback function in the `link` array:
package/laravel-sst.ts CHANGED
@@ -223,6 +223,14 @@ export class Laravel extends Component {
223
223
  // SST sets __dirname to the .sst/platform directory.
224
224
  const pluginBuildPath = path.resolve(__dirname, '../laravel');
225
225
 
226
+ if (!fs.existsSync(pluginBuildPath)) {
227
+ fs.mkdirSync(pluginBuildPath, { recursive: true });
228
+ }
229
+
230
+ if (!fs.existsSync(pluginBuildPath + '/deploy')) {
231
+ fs.mkdirSync(pluginBuildPath + '/deploy', { recursive: true });
232
+ }
233
+
226
234
  prepareEnvironmentFile();
227
235
  prepareDeploymentScript();
228
236
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kirschbaum-development/sst-laravel",
3
- "version": "0.0.10",
3
+ "version": "0.0.13",
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",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
26
- "url": "git+https://github.com/kirschbaumdevelopment/sst-laravel.git"
26
+ "url": "git+https://github.com/kirschbaum-development/sst-laravel.git"
27
27
  },
28
28
  "keywords": [
29
29
  "laravel",