Skip to content

Commit fee2714

Browse files
authored
chore: update deps and adopt import defer (#12259)
Co-authored-by: Jack-Works <[email protected]>
1 parent 49844fc commit fee2714

File tree

542 files changed

+17831
-16963
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

542 files changed

+17831
-16963
lines changed

.changeset/plenty-buckets-tease.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@masknet/encryption': patch
3+
'@masknet/base': patch
4+
---
5+
6+
Update TypeScript definition to only accept Uint8Array<ArrayBuffer>

.github/workflows/changeset.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- run: pnpm install
3030
- uses: changesets/action@v1
3131
with:
32-
publish: npx gulp changeset-release
32+
publish: pnpm exec gulp changeset-release
3333
commit: "chore: changeset release"
3434
title: "chore: changeset release"
3535
env:

.github/workflows/compile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
registry: true
4848
- run: git config --global url."https://github.com/".insteadOf [email protected]
4949
- run: pnpm install
50-
- run: npx gulp build-ci
50+
- run: pnpm exec gulp build-ci
5151
# See https://github.com/getsentry/action-release/issues/187
5252
- name: Change git configuration
5353
shell: bash

.github/workflows/linters.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ jobs:
3737
with:
3838
registry: true
3939
- run: pnpm install
40-
- run: npx anti-trojan-source --files='packages/**/src/**/*.{ts,tsx,js}'
41-
- run: npx markdownlint-cli --fix .
42-
- run: npx gulp codegen
40+
- run: pnpx anti-trojan-source --files='packages/**/src/**/*.{ts,tsx,js}'
41+
- run: pnpx markdownlint-cli --fix .
42+
- run: pnpm exec gulp codegen
4343
- run: pnpm run lingui:extract
4444
- run: pnpm run lingui:compile
45-
- run: npx gulp sync-languages
46-
- run: npx gulp lint-package-json
47-
- run: npx gulp fix-plugins-tsconfig
48-
- run: npx prettier@3.5.3 --write .
45+
- run: pnpm exec gulp sync-languages
46+
- run: pnpm exec gulp lint-package-json
47+
- run: pnpm exec gulp fix-plugins-tsconfig
48+
- run: pnpx prettier@3.6.2 --write .
4949
- uses: EndBug/add-and-commit@v9
5050
with:
5151
message: 'fix: linter'
@@ -64,8 +64,8 @@ jobs:
6464
registry: true
6565
- run: git config --global url."https://github.com/".insteadOf [email protected]
6666
- run: pnpm install
67-
- run: npx gulp codegen
68-
- run: npx gulp typescript
67+
- run: pnpm exec gulp codegen
68+
- run: pnpm exec gulp typescript
6969
test:
7070
runs-on: ubuntu-latest
7171
steps:
@@ -81,8 +81,8 @@ jobs:
8181
registry: true
8282
- run: git config --global url."https://github.com/".insteadOf [email protected]
8383
- run: pnpm install
84-
- run: npx gulp codegen
85-
- run: npx gulp polyfill
84+
- run: pnpm exec gulp codegen
85+
- run: pnpm exec gulp polyfill
8686
- run: pnpm run test
8787
eslint:
8888
runs-on: ubuntu-latest
@@ -115,7 +115,7 @@ jobs:
115115
restore-keys: linter-v2-
116116
- run: git config --global url."https://github.com/".insteadOf [email protected]
117117
- run: pnpm install
118-
- run: npx gulp codegen
118+
- run: pnpm exec gulp codegen
119119
- name: Run Eslint
120120
run: |
121121
export NODE_OPTIONS="--max-old-space-size=8192"

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname $0)/_/husky.sh"
33

4-
npx --no-install commitlint --edit $1
4+
pnpm exec --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx lint-staged
1+
pnpm exec lint-staged

.pnpmfile.cjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
/** @type {Map<string, RegExp | string | (string | RegExp)[]>} */
77
const approvedList = new Map()
88

9-
approvedList.set('webpack', ['npm:@magic-works/[email protected]'])
10-
119
approvedList.set('@types/react', ['npm:types-react@beta'])
1210
approvedList.set('@types/react-dom', ['npm:types-react-dom@beta'])
1311

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# https://github.com/prettier/prettier/issues/17784
2+
packages/theme/src/UIHelper/makeStyles.ts
3+
14
.github/
25
.husky/
36
package.json

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
{
1111
"files": ["*rc", "package.json", "tsconfig*", "*.md", "*.yaml", "*.yml"],
1212
"options": { "tabWidth": 2 }
13+
},
14+
{
15+
"files": ["*.ts", "*.tsx"],
16+
"options": { "parser": "babel-ts" }
1317
}
1418
]
1519
}

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ const avoidMistakeRules = {
154154
// Problematic language features
155155
/// API with trap
156156
radix: 'warn', // parseInt('1', _required_)
157+
'unicorn/no-instanceof-builtins': 'warn', // bans `expr instanceof String` etc
157158
'unicorn/require-array-join-separator': 'warn', // Array.join(_required_)
158159
// This rule breaks BigNumber class which has different .toFixed() default value.
159160
// 'unicorn/require-number-to-fixed-digits-argument': 'warn', // Number#toFixed(_required_)
160161
'react/dom/no-missing-button-type': 'error', // default type is "submit" which refresh the page
161162
'@typescript-eslint/require-array-sort-compare': 'error', // Array#sort(_required_)
162-
'@masknet/type-no-instanceof-wrapper': 'warn', // bans `expr instanceof String` etc
163163
/// Footgun language features
164164
'no-compare-neg-zero': 'error', // x === -0 is wrong
165165
'no-new-wrappers': 'error', // wrapper objects are bad

0 commit comments

Comments
 (0)