Skip to content

Commit d7dab3e

Browse files
vzaidmanfacebook-github-bot
authored andcommitted
update all website npm packages (#1381)
Summary: Update all packages to latest versions (including majors) and recreate yarn.lock. Updating Docosaurus to latest version (3.6.0) was the most challenging part of that. Changelog: [Internal] Pull Request resolved: #1381 Test Plan: Imported from GitHub, without a `Test Plan:` line. https://pxl.cl/5T6GS (Fixed the one line in the end that was not styled and made sure no more of these exist) {F1953671020} Reviewed By: robhogan Differential Revision: D65476719 Pulled By: vzaidman fbshipit-source-id: 20207c0ae651b2148882cd42106a1bc156352de7
1 parent 5ae946d commit d7dab3e

File tree

4 files changed

+5072
-5062
lines changed

4 files changed

+5072
-5062
lines changed

docs/LocalDevelopment.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Our recommended workflow is to use [`yarn link`][1] to register local `metro` pa
2323
From inside our `metro` clone, `yarn link` is responsible for registering local package folders to be linked to elsewhere.
2424

2525
We recommend using `npm exec --workspaces` to register all packages in the `metro` repo — these can be individually linked into the target project later.
26-
27-
npm exec --workspaces -- yarn link
28-
26+
```sh
27+
npm exec --workspaces -- yarn link
28+
```
2929
2. **Use `yarn link` to replace Metro packages in your target project**
3030

3131
From inside our target project folder, `yarn link <package-name>` can be used to apply our registered `metro` packages for that project only.
@@ -59,7 +59,9 @@ Our recommended workflow is to use [`yarn link`][1] to register local `metro` pa
5959

6060
Now we should be able to run Metro within our target project. Remember to restart this command after any code changes you make to `metro` or to the target project's `metro.config.js` file.
6161
62-
yarn react-native start
62+
```sh
63+
yarn react-native start
64+
```
6365
6466
4. **(Optional) Clean up with `yarn unlink`**
6567
@@ -70,7 +72,7 @@ Our recommended workflow is to use [`yarn link`][1] to register local `metro` pa
7072
Metro uses the [debug](https://www.npmjs.com/package/debug) package to write logs under named debug scopes (for example: `Metro:WatchmanWatcher`). Set the `DEBUG` environment variable before starting Metro to enable logs matching the supplied pattern.
7173
7274
The snippet below provides a pattern matching all Metro-defined messages.
73-
74-
DEBUG='Metro:*' yarn metro serve
75-
75+
```sh
76+
DEBUG='Metro:*' yarn metro serve
77+
```
7678
[1]: https://classic.yarnpkg.com/en/docs/cli/link

website/docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const siteConfig = {
142142
indexName: 'metro',
143143
},
144144
prism: {
145-
additionalLanguages: ['flow'],
145+
additionalLanguages: ['flow', 'bash', 'json', 'diff'],
146146
},
147147
},
148148
scripts: ['https://buttons.github.io/buttons.js'],

website/package.json

+14-18
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,21 @@
1212
"serve": "docusaurus serve"
1313
},
1414
"dependencies": {
15-
"@docusaurus/core": "2.4.3",
16-
"@docusaurus/preset-classic": "2.4.3",
17-
"classnames": "2.2.6",
18-
"docusaurus-plugin-internaldocs-fb": "1.18.5",
19-
"docusaurus-plugin-sass": "^0.2.1",
20-
"react": "17.0.2",
21-
"react-dom": "17.0.2",
22-
"react-github-btn": "1.1.1",
23-
"sass": "^1.46.0"
15+
"@docusaurus/core": "3.6.0",
16+
"@docusaurus/preset-classic": "3.6.0",
17+
"@mdx-js/react": "^3.1.0",
18+
"classnames": "2.5.1",
19+
"docusaurus-plugin-internaldocs-fb": "1.19.0",
20+
"docusaurus-plugin-sass": "^0.2.5",
21+
"prism-react-renderer": "^2.4.0",
22+
"react": "18.3.1",
23+
"react-dom": "18.3.1",
24+
"react-github-btn": "1.4.0",
25+
"sass": "^1.80.6"
2426
},
2527
"devDependencies": {
26-
"@docusaurus/module-type-aliases": "2.4.3",
27-
"prettier": "2.8.8"
28-
},
29-
"resolutions": {
30-
"@sideway/formula": "^3.0.1",
31-
"got": "^11.8.5",
32-
"http-cache-semantics": "^4.1.1",
33-
"terser": "^5.14.2",
34-
"trim": "^0.0.3"
28+
"@docusaurus/module-type-aliases": "3.6.0",
29+
"@docusaurus/types": "3.6.0",
30+
"prettier": "3.3.3"
3531
}
3632
}

0 commit comments

Comments
 (0)