deploy-stack 0.17.3 → 0.17.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deploy-stack",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "description": "Provision production-ready AWS infrastructure and CI/CD pipelines in seconds.",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -8,9 +8,17 @@ WORKDIR /app
8
8
  COPY package*.json ./
9
9
  RUN npm ci
10
10
 
11
- # Copy source code and compile the SvelteKit application
11
+ # Copy source code
12
12
  COPY . .
13
- # Inject the bypass flag so the adapter doesn't trigger inside the container!
13
+
14
+ # ZERO-CLICK MAGIC: Automatically inject adapter-node if the user left adapter-auto in their config.
15
+ # This ensures the build/ directory is always generated without requiring manual code changes.
16
+ RUN npm install -D @sveltejs/adapter-node@latest && \
17
+ sed -i 's/@sveltejs\/adapter-auto/@sveltejs\/adapter-node/g' svelte.config.js 2>/dev/null || true && \
18
+ sed -i 's/@sveltejs\/adapter-auto/@sveltejs\/adapter-node/g' vite.config.ts 2>/dev/null || true && \
19
+ sed -i 's/@sveltejs\/adapter-auto/@sveltejs\/adapter-node/g' vite.config.js 2>/dev/null || true
20
+
21
+ # Inject the bypass flag and compile the SvelteKit application
14
22
  RUN DEPLOY_STACK_BYPASS=true npm run build
15
23
 
16
24
  # ==========================================