Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit ad23935

Browse files
authored
fix: use yarn when forking to stackblitz (#1194)
Uses yarn instead of npm for the Stackblitz live examples to avoid the timeouts that we've been seeing and to speed up the installation. Also fixes some warnings.
1 parent fc36e90 commit ad23935

File tree

5 files changed

+6954
-20217
lines changed

5 files changed

+6954
-20217
lines changed

src/app/shared/stack-blitz/stack-blitz-writer.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const TEMPLATE_FILES = [
3636
'angular.json',
3737
'karma.conf.js',
3838
'package.json',
39-
'package-lock.json',
39+
'yarn.lock',
4040
'tsconfig.app.json',
4141
'tsconfig.json',
4242
'tsconfig.spec.json',
@@ -223,13 +223,6 @@ export class StackBlitzWriter {
223223
`declarations: [${joinedComponentNames}]`
224224
);
225225

226-
// Replace `entryComponents: [MaterialDocsExample]`
227-
// will be replaced as `entryComponents: [DialogContent]`
228-
fileContent = fileContent.replace(
229-
/entryComponents: \[MaterialDocsExample]/g,
230-
`entryComponents: [${joinedComponentNames}]`
231-
);
232-
233226
// Replace `bootstrap: [MaterialDocsExample]`
234227
// will be replaced as `bootstrap: [ButtonDemo]`
235228
// This assumes the first component listed in the main component

0 commit comments

Comments
 (0)