cdk-nuxt 0.2.8 → 0.2.9

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/lib/cli/deploy.js CHANGED
@@ -13,13 +13,22 @@ shell.rm('-rf', deploymentFolder);
13
13
  shell.mkdir('-p', `${deploymentSourceFolder}/.nuxt/dist`);
14
14
  shell.mkdir('-p', deploymentLayerFolder);
15
15
 
16
+ // Prepare
17
+ shell.echo('Preparing the assets cleanup lambda function...');
18
+ shell.cd(path.join(__dirname, '../functions/assets_cleanup'));
19
+ if (shell.exec('yarn install-layer').code !== 0) {
20
+ shell.echo('Error: Installation of assets cleanup lambda function failed.');
21
+ shell.exit(1);
22
+ }
23
+ shell.cd('../../../../../..');
24
+
16
25
  // Copy our files required for SSR
17
- shell.echo('Copying ssr files...');
26
+ shell.echo('Copying ssr files for Nuxt app...');
18
27
  shell.cp('-r', '.nuxt/dist/server', `${deploymentSourceFolder}/.nuxt/dist`);
19
28
  shell.cp(path.join(__dirname, '../functions/app/index.js'), deploymentSourceFolder);
20
29
 
21
- // Prepare the Lambda layer for the node_modules required for SSR
22
- shell.echo('Preparing the lambda layer for the node_modules...');
30
+ // Prepare the Lambda layer for the node_modules required for SSR of the Nuxt app
31
+ shell.echo('Preparing the lambda layer for Nuxt app...');
23
32
  shell.cp('package.json', deploymentLayerFolder);
24
33
  shell.cp('yarn.lock', deploymentLayerFolder);
25
34
  shell.cd(deploymentLayerFolder);
@@ -2,10 +2,6 @@
2
2
  "name": "cdk-nuxt-assets-cleanup",
3
3
  "version": "0.1.2",
4
4
  "main": "index.js",
5
- "files": [
6
- "build",
7
- "node_modules"
8
- ],
9
5
  "license": "UNLICENSED",
10
6
  "private": true,
11
7
  "scripts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdk-nuxt",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "lib",