Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies. #1079

Merged
merged 26 commits into from
Mar 23, 2023
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2b3d032
Remove internal packages to bypass lerna nonsense.
wjhsf Mar 21, 2023
ea204d2
Disable build scripts to make changing deps easier.
wjhsf Mar 21, 2023
1585845
Update root deps.
wjhsf Mar 21, 2023
0623150
Fix typescript issue.
wjhsf Mar 21, 2023
b295d7f
Create restore script to restore internal deps/scripts.
wjhsf Mar 21, 2023
83c3b0b
Update commerce-sdk-react deps.
wjhsf Mar 21, 2023
dce6b8c
Update test-commerce-sdk-react deps.
wjhsf Mar 21, 2023
7ecae98
Update template-typescript-minimal deps
wjhsf Mar 21, 2023
cfe320a
Improve restore script.
wjhsf Mar 21, 2023
421d44a
Fix trailing comma.
wjhsf Mar 21, 2023
4385246
Update template-retail-react-app deps
wjhsf Mar 21, 2023
24538c2
npm prune everything
wjhsf Mar 21, 2023
427b510
Update pwa-kit-runtime deps
wjhsf Mar 22, 2023
568e39c
Update pwa-kit-react-sdk deps
wjhsf Mar 22, 2023
027d8a7
Update pwa-kit-create-app deps
wjhsf Mar 22, 2023
b9d7020
Update pwa-kit-dev deps (except eslint)
wjhsf Mar 22, 2023
783f739
Update pwa-kit-dev eslint deps
wjhsf Mar 22, 2023
70d02ae
Update internal-lib-build deps (except eslint)
wjhsf Mar 22, 2023
9c723ab
Update pwa-kit eslint deps
wjhsf Mar 22, 2023
5c18f1b
Restore internal deps.
wjhsf Mar 22, 2023
4fdc9e9
Restore build scripts.
wjhsf Mar 22, 2023
950dc0d
Remove temporary helper files.
wjhsf Mar 22, 2023
3c932c2
Bump ua-parser-js to avoid vulnerable version.
wjhsf Mar 22, 2023
b78d7cb
Anchor cross-env common dep to version used by internal-lib-build.
wjhsf Mar 22, 2023
d3c16b4
Re-enable eslint.
wjhsf Mar 22, 2023
7d71e13
Merge branch 'develop' into wjh/update-deps
wjhsf Mar 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create restore script to restore internal deps/scripts.
wjhsf committed Mar 21, 2023

Verified

This commit was signed with the committer’s verified signature.
commit b295d7f70839c1d0a688b2eee6a0b4f7c3d25b0e
21 changes: 21 additions & 0 deletions restore.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2023, Salesforce, Inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
const fs = require("fs");
const depMap = require("./output.json");
const packages = fs.readdirSync("./packages/");
const { version } = require("./package.json");
for (const name of packages) {
const path = `./packages/${name}/package.json`;
const file = fs.readFileSync(path, "utf8");
const spaces = file.match(/ +/)[0].length;
const pkg = JSON.parse(file);
if (pkg.build) pkg.build = pkg.build.replace(/^echo '(.*)'$/, "$1");
const { deps = [], devDeps = [] } = depMap[name] ?? {};
for (const dep of deps) pkg.dependencies[dep] = version;
for (const dep of devDeps) pkg.devDependencies[dep] = version;
fs.writeFileSync(path, JSON.stringify(pkg, null, spaces));
}