From a45315e52b884422615e8743fae524ea34473159 Mon Sep 17 00:00:00 2001 From: Yangshun Date: Tue, 17 Sep 2024 14:06:23 +0800 Subject: [PATCH] web: fix build for pnpm --- apps/website/.npmrc | 2 ++ apps/website/contents/algorithms/binary.md | 8 ++--- apps/website/contents/landscape.md | 2 +- pnpm-lock.yaml | 34 +++++++++------------- 4 files changed, 20 insertions(+), 26 deletions(-) create mode 100644 apps/website/.npmrc diff --git a/apps/website/.npmrc b/apps/website/.npmrc new file mode 100644 index 00000000..b9f5e497 --- /dev/null +++ b/apps/website/.npmrc @@ -0,0 +1,2 @@ +public-hoist-pattern[]=@docusaurus/theme-common* +public-hoist-pattern[]=@mdx-js/react diff --git a/apps/website/contents/algorithms/binary.md b/apps/website/contents/algorithms/binary.md index b9a2ec01..367049a1 100644 --- a/apps/website/contents/algorithms/binary.md +++ b/apps/website/contents/algorithms/binary.md @@ -46,10 +46,10 @@ Some helpful utility snippets: | Technique | Code | | --- | --- | -| Test kth bit is set | `num & (1 << k) != 0`. | -| Set kth bit | num |= (1 << k) | -| Turn off kth bit | `num &= ~(1 << k)`. | -| Toggle the kth bit | `num ^= (1 << k)`. | +| Test kth bit is set | `num & (1 << k) != 0` | +| Set kth bit | num |= (1 >> k) | +| Turn off kth bit | `num &= ~(1 << k)` | +| Toggle the kth bit | `num ^= (1 << k)` | | Multiply by 2k | `num << k` | | Divide by 2k | `num >> k` | | Check if a number is a power of 2 | `(num & num - 1) == 0` or `(num & (-num)) == num` | diff --git a/apps/website/contents/landscape.md b/apps/website/contents/landscape.md index fbe06e71..147f8005 100644 --- a/apps/website/contents/landscape.md +++ b/apps/website/contents/landscape.md @@ -73,7 +73,7 @@ Companies have different focuses depending on the stage they are at and the type | Dimension | Early-stage startup | Late-stage startup | Large company | | --- | --- | --- | --- | -| Company size | <100 | 100-1000 | >1000 | +| Company size | <100 | 100-1000 | >1000 | | Compensation | Base salary is a bit higher than big companies. Higher equity amount but its value is hard to judge as the company's valuation is unclear and stocks are not worth money yet. High risk, high return. | Base salary is a bit higher than big companies. Company valuation is clearer and stocks have higher chance of being worth money. | Depends on the prestige of the company. Compensation is usually market standard or better. Stocks are worth money if company has gone public. | | Types of work | Mainly product development. Engineers have to wear multiple hats - Front End, Back End, DevOps, Design, etc. | Product development and some infra. | Diverse roles and specialized work; dedicated people for each role. Infra and prod infra work is more common. More opportunities for internal transfers, sometimes even across the globe. | | Career ladder | Unstructured. No (or very vague) career levels. Not much formal mentorship nor training. | Somewhat structured. | Very structured. Well-defined career levels. | diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8cec14a0..904fea44 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -793,7 +793,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.10.4 + '@babel/helper-plugin-utils': 7.24.7 '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.12.9) '@babel/plugin-transform-parameters': 7.24.7(@babel/core@7.12.9) dev: false @@ -1948,7 +1948,7 @@ packages: '@slorber/static-site-generator-webpack-plugin': 4.0.7 '@svgr/webpack': 6.5.1 autoprefixer: 10.4.19(postcss@8.4.38) - babel-loader: 8.3.0(@babel/core@7.24.7)(webpack@5.92.1) + babel-loader: 8.4.1(@babel/core@7.24.7)(webpack@5.92.1) babel-plugin-dynamic-import-node: 2.3.3 boxen: 6.2.1 chalk: 4.1.2 @@ -4418,8 +4418,8 @@ packages: deep-equal: 2.2.3 dev: false - /babel-loader@8.3.0(@babel/core@7.24.7)(webpack@5.92.1): - resolution: {integrity: sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==} + /babel-loader@8.4.1(@babel/core@7.24.7)(webpack@5.92.1): + resolution: {integrity: sha512-nXzRChX+Z1GoE6yWavBQg6jDslyFF3SDjl2paADuoQtQW10JqShJt62R6eJQ5m/pjJFDT8xgKIWSP85OY8eXeA==} engines: {node: '>= 8.9'} peerDependencies: '@babel/core': ^7.0.0 @@ -4429,7 +4429,7 @@ packages: find-cache-dir: 3.3.2 loader-utils: 2.0.4 make-dir: 3.1.0 - schema-utils: 2.7.1 + schema-utils: 2.7.0 webpack: 5.92.1 dev: false @@ -6559,7 +6559,7 @@ packages: object-assign: 4.1.1 promise: 7.3.1 setimmediate: 1.0.5 - ua-parser-js: 1.0.38 + ua-parser-js: 1.0.39 transitivePeerDependencies: - encoding dev: false @@ -6880,14 +6880,14 @@ packages: resolution: {integrity: sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==} engines: {node: '>=6'} dependencies: - pump: 3.0.0 + pump: 3.0.2 dev: false /get-stream@5.2.0: resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==} engines: {node: '>=8'} dependencies: - pump: 3.0.0 + pump: 3.0.2 dev: false /get-stream@6.0.1: @@ -9611,8 +9611,8 @@ packages: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} dev: false - /pump@3.0.0: - resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} + /pump@3.0.2: + resolution: {integrity: sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==} dependencies: end-of-stream: 1.4.4 once: 1.4.0 @@ -10355,15 +10355,6 @@ packages: ajv-keywords: 3.5.2(ajv@6.12.6) dev: false - /schema-utils@2.7.1: - resolution: {integrity: sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==} - engines: {node: '>= 8.9.0'} - dependencies: - '@types/json-schema': 7.0.15 - ajv: 6.12.6 - ajv-keywords: 3.5.2(ajv@6.12.6) - dev: false - /schema-utils@3.3.0: resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==} engines: {node: '>= 10.13.0'} @@ -11320,8 +11311,9 @@ packages: engines: {node: '>=4.2.0'} hasBin: true - /ua-parser-js@1.0.38: - resolution: {integrity: sha512-Aq5ppTOfvrCMgAPneW1HfWj66Xi7XL+/mIy996R1/CLS/rcyJQm6QZdsKrUeivDFQ+Oc9Wyuwor8Ze8peEoUoQ==} + /ua-parser-js@1.0.39: + resolution: {integrity: sha512-k24RCVWlEcjkdOxYmVJgeD/0a1TiSpqLg+ZalVGV9lsnr4yqu0w7tX/x2xX6G4zpkgQnRf89lxuZ1wsbjXM8lw==} + hasBin: true dev: false /unbox-primitive@1.0.2: