implement sign service for web (#182815)

* signing: implement signing service on the web

* update distro
This commit is contained in:
Connor Peet
2023-05-17 16:52:56 -07:00
committed by GitHub
parent 751fdcb904
commit 0c94abc4a5
10 changed files with 187 additions and 79 deletions
+7
View File
@@ -394,6 +394,13 @@ export function acquireWebNodePaths() {
const root = path.join(__dirname, '..', '..');
const webPackageJSON = path.join(root, '/remote/web', 'package.json');
const webPackages = JSON.parse(fs.readFileSync(webPackageJSON, 'utf8')).dependencies;
const distroWebPackageJson = path.join(root, '.build/distro/npm/remote/web/package.json');
if (fs.existsSync(distroWebPackageJson)) {
const distroWebPackages = JSON.parse(fs.readFileSync(distroWebPackageJson, 'utf8')).dependencies;
Object.assign(webPackages, distroWebPackages);
}
const nodePaths: { [key: string]: string } = {};
for (const key of Object.keys(webPackages)) {
const packageJSON = path.join(root, 'node_modules', key, 'package.json');