|
32 | 32 | * 4. Run `lb4 copyright` to update `LICENSE` and copyright headers for `*.ts` |
33 | 33 | * and `*.js`. |
34 | 34 | * |
35 | | - * 5. Run `lerna bootstrap --scope <full-package-name>` to link its local |
| 35 | + * 5. Run `npm install --workspace <full-package-name>` to link its local |
36 | 36 | * dependencies. |
37 | 37 | * |
38 | 38 | * 6. Run `update-ts-project-refs` to update TypeScript project references |
| 39 | + * (via NPM `postinstall` hook) |
39 | 40 | * |
40 | 41 | * 7. Remind to update `CODEOWNERS` and `docs/site/MONOREPO.md` |
41 | 42 | */ |
|
44 | 45 | const path = require('node:path'); |
45 | 46 | const fse = require('fs-extra'); |
46 | 47 | const build = require('../packages/build'); |
47 | | -const {runMain, updateTsProjectRefs} = require('./script-util'); |
| 48 | +const {runMain} = require('./script-util'); |
48 | 49 |
|
49 | 50 | const cwd = process.cwd(); |
50 | 51 |
|
@@ -115,7 +116,6 @@ async function createPackage(name) { |
115 | 116 | await fixupProject(project); |
116 | 117 | await updateCopyrightAndLicense(project, options); |
117 | 118 | await bootstrapProject(project); |
118 | | - await updateTsProjectRefs({dryRun: false}); |
119 | 119 |
|
120 | 120 | promptActions(project); |
121 | 121 | } |
@@ -152,8 +152,8 @@ async function bootstrapProject({repoRoot, name}) { |
152 | 152 | process.chdir(repoRoot); |
153 | 153 | // Run `npx lerna bootstrap --scope @loopback/<name>` |
154 | 154 | const shell = build.runShell( |
155 | | - 'npx', |
156 | | - ['lerna', 'bootstrap', '--scope', `@loopback/${name}`], |
| 155 | + 'npm', |
| 156 | + ['install', '--workspace', `@loopback/${name}`], |
157 | 157 | { |
158 | 158 | cwd: repoRoot, |
159 | 159 | }, |
|
0 commit comments