Skip to content

Commit 6b785d2

Browse files
committed
fix: replace npm ci with npm install for flexible dependency resolution
- Replace 'npm ci' with 'npm install --no-audit --prefer-offline' - Allow builds without package-lock.json - Skip security audit for faster builds - Use offline cache when available - Affects: React, Next.js, Vue.js templates LP-492
1 parent d3cc40b commit 6b785d2

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

templates/nextjs/template.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /app
44

55
{{ if eq .package_manager "npm" }}
66
COPY package*.json ./
7-
RUN npm ci
7+
RUN npm install --no-audit --prefer-offline
88
{{ else if eq .package_manager "yarn" }}
99
COPY package.json yarn.lock ./
1010
RUN yarn install --frozen-lockfile

templates/react/template.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /app
44

55
{{ if eq .package_manager "npm" }}
66
COPY package*.json ./
7-
RUN npm ci
7+
RUN npm install --no-audit --prefer-offline
88
{{ else if eq .package_manager "yarn" }}
99
COPY package.json yarn.lock ./
1010
RUN yarn install --frozen-lockfile

templates/vuejs/template.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ WORKDIR /app
33

44
{{ if eq .package_manager "npm" }}
55
COPY package*.json ./
6-
RUN npm ci
6+
RUN npm install --no-audit --prefer-offline
77
{{ else if eq .package_manager "yarn" }}
88
COPY package.json yarn.lock ./
99
RUN yarn install --frozen-lockfile

0 commit comments

Comments
 (0)