Use yarn resolutions to inject nightly TS version across whole workspace in fabric test (#42961)

This commit is contained in:
Wesley Wigham 2021-02-25 11:12:09 -08:00 committed by GitHub
parent fc64b77b52
commit 576bfbd9d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]