Skip to content

Commit 576bfbd

Browse files
authored
Use yarn resolutions to inject nightly TS version across whole workspace in fabric test (#42961)
1 parent fc64b77 commit 576bfbd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/cases/docker/office-ui-fabric/Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ COPY --from=typescript/typescript /typescript/typescript-*.tgz typescript.tgz
1212
WORKDIR /office-ui-fabric-react
1313
# Sync up all TS versions used internally to the new one (we use `npm` because `yarn` chokes on tarballs installed
1414
# into multiple places in a workspace in a short timeframe (some kind of data race))
15-
RUN npx lerna exec --stream --concurrency 1 -- npm install /typescript.tgz --exact --ignore-scripts
15+
RUN sed -i -e 's/"resolutions": {/"resolutions": { "\*\*\/typescript": "file:\/typescript\.tgz",/g' package.json
1616
RUN npx yarn
17-
# Perform scss task to generate scss code if present
18-
RUN npx lerna exec --stream --concurrency 1 --bail=false -- yarn run just scss
1917
ENTRYPOINT [ "npx" ]
2018
CMD [ "lerna", "exec", "--stream", "--concurrency", "1", "--loglevel", "error", "--bail=false", "--", "yarn", "run", "just", "ts"]

0 commit comments

Comments
 (0)