From 576bfbd9d5cc83f27a3d1ecdbdb05408079a96a6 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Thu, 25 Feb 2021 11:12:09 -0800 Subject: [PATCH] Use yarn resolutions to inject nightly TS version across whole workspace in fabric test (#42961) --- tests/cases/docker/office-ui-fabric/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/cases/docker/office-ui-fabric/Dockerfile b/tests/cases/docker/office-ui-fabric/Dockerfile index 075fb7af1ad..27cc5b10b73 100644 --- a/tests/cases/docker/office-ui-fabric/Dockerfile +++ b/tests/cases/docker/office-ui-fabric/Dockerfile @@ -12,9 +12,7 @@ COPY --from=typescript/typescript /typescript/typescript-*.tgz typescript.tgz WORKDIR /office-ui-fabric-react # Sync up all TS versions used internally to the new one (we use `npm` because `yarn` chokes on tarballs installed # into multiple places in a workspace in a short timeframe (some kind of data race)) -RUN npx lerna exec --stream --concurrency 1 -- npm install /typescript.tgz --exact --ignore-scripts +RUN sed -i -e 's/"resolutions": {/"resolutions": { "\*\*\/typescript": "file:\/typescript\.tgz",/g' package.json RUN npx yarn -# Perform scss task to generate scss code if present -RUN npx lerna exec --stream --concurrency 1 --bail=false -- yarn run just scss ENTRYPOINT [ "npx" ] CMD [ "lerna", "exec", "--stream", "--concurrency", "1", "--loglevel", "error", "--bail=false", "--", "yarn", "run", "just", "ts"] \ No newline at end of file