Skip to content

Commit a621119

Browse files
author
Matija Petrunic
committed
Remove ignore script in production yarn install
1 parent a73e49f commit a621119

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ WORKDIR /usr/app
77
# Install node dependencies - done in a separate step so Docker can cache it.
88
COPY yarn.lock .
99
COPY package.json .
10+
COPY .env.sample .
1011

1112
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
1213

@@ -28,6 +29,6 @@ RUN chown -R node: .
2829

2930
USER node
3031

31-
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile --production && yarn cache clean
32+
RUN yarn install --non-interactive --frozen-lockfile --production && yarn cache clean
3233

3334
CMD ["node", "index.js"]

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"test:unit": "NODE_ENV=test nyc --all --include \"src/**/*.ts\" mocha -r ts-node/register \"test/unit/**/*.spec.ts\"",
2727
"test:unit:ci": "NODE_ENV=test nyc --reporter=lcov --all --include \"src/**/*.ts\" mocha -r ts-node/register \"test/unit/**/*.spec.ts\"",
2828
"test:e2e": "SERVER_PORT=0 mocha --timeout 30000 -r ts-node/register -r dotenv/config \"test/e2e/**/*.spec.ts\"",
29-
"postinstall": "env-prompt -d .env.sample && task build",
29+
"prepare": "env-prompt -d .env.sample && task build",
3030
"init": "mkdir dist",
3131
"prebuild": "yarn run clean && yarn run init",
3232
"build": "tsc -p tsconfig.build.json --sourceMap --outDir dist",

src/config/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable @typescript-eslint/naming-convention */
2-
import { fasitfyEnvOpt } from "fastify-env";
2+
import { fastifyEnvOpt } from "fastify-env";
33

4-
export const config: fasitfyEnvOpt = {
4+
export const config: fastifyEnvOpt = {
55
schema: {
66
type: "object",
77
properties: {

0 commit comments

Comments
 (0)