diff --git a/.dockerignore b/.dockerignore index 61592c09b..7b98e3035 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,5 +2,10 @@ build/ dist/ .git/ node_modules/ -.yarn/ -.yarnrc.yml + +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..1355610e9 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: +- package-ecosystem: "npm" + directory: "/" + cooldown: + default-days: 10 + schedule: + interval: "daily" \ No newline at end of file diff --git a/.yarnrc.yml b/.yarnrc.yml index 3adb93697..7b135dac3 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -7,3 +7,9 @@ enableGlobalCache: false nodeLinker: node-modules yarnPath: .yarn/releases/yarn-4.12.0.cjs + +npmMinimalAgeGate: 7d + +npmPreapprovedPackages: + - "@raspberrypifoundation/design-system-react" + - "@raspberrypifoundation/design-system-core" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index aeddafadf..7d946f18a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,11 +9,7 @@ WORKDIR /app COPY package.json yarn.lock ./ COPY . /app -RUN corepack enable \ - && yarn set version 4.12.0 \ - && echo "nodeLinker: node-modules\n\n$(cat /app/.yarnrc.yml)" > /app/.yarnrc.yml \ - && cat /app/.yarnrc.yml \ - && printf "Switched to Yarn version: "; yarn --version +RUN corepack enable RUN chsh -s $(which zsh) ${USER}