From f6a57f298ef9bf88ec9192708223ca12f4c6d298 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Thu, 25 Feb 2021 10:19:13 -0800 Subject: [PATCH] Use yarn resolutions to inject nightly TS version across whole workspace in fabric test --- 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 075fb7af1ad79..27cc5b10b7355 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