|
42 | 42 | // Copy the following items into the `working-copy` folder. Make sure to reuse the `yarn.lock`. |
|
43 | 43 | //----------------------------------------------------------------------------------------------+
|
44 | 44 | mkdir('-p', path('..', workingCopy));
|
45 |
| - for (const name of ['arduino-ide-extension', 'electron-app', 'yarn.lock', 'package.json', 'lerna.json']) { |
| 45 | + for (const name of ['arduino-ide-extension', 'arduino-debugger-extension', 'electron-app', 'yarn.lock', 'package.json', 'lerna.json']) { |
46 | 46 | cp('-rf', path(rootPath, name), path('..', workingCopy));
|
47 | 47 | }
|
48 | 48 |
|
49 |
| - //-----------------------------------------------------+ |
| 49 | + //---------------------------------------------+ |
50 | 50 | // No need to build the `browser-app` example. |
|
51 |
| - //-----------------------------------------------------+ |
| 51 | + //---------------------------------------------+ |
52 | 52 | //@ts-ignore
|
53 | 53 | let pkg = require('../working-copy/package.json');
|
54 | 54 | const workspaces = pkg.workspaces;
|
|
72 | 72 | // We have to do it before changing the dependencies to `local-path`.
|
73 | 73 | const unusedDependencies = await utils.collectUnusedDependencies('../working-copy/electron-app/');
|
74 | 74 |
|
| 75 | + //-------------------------------------------------------------------------------------------------------------+ |
| 76 | + // Change the regular NPM dependencies to `local-paths`, so that we can build them without any NPM registries. | |
| 77 | + //-------------------------------------------------------------------------------------------------------------+ |
| 78 | + // @ts-ignore |
| 79 | + pkg = require('../working-copy/arduino-debugger-extension/package.json'); |
| 80 | + pkg.dependencies['arduino-ide-extension'] = 'file:../arduino-ide-extension'; |
| 81 | + fs.writeFileSync(path('..', workingCopy, 'arduino-debugger-extension', 'package.json'), JSON.stringify(pkg, null, 2)); |
| 82 | + |
75 | 83 | //------------------------------------------------------------------------------------+
|
76 | 84 | // Merge the `working-copy/package.json` with `electron/build/template-package.json`. |
|
77 | 85 | //------------------------------------------------------------------------------------+
|
|
0 commit comments